Assuming I've guessed the pattern correctly (alternating increments of 1 and 3), this should produce the desired result:
def sequence():
res = []
diff = 1
x = 1
while x <= 100:
res.append(x)
x += diff
diff = 3 if diff == 1 else 1
return ', '.join(res)