Heres my code run it:
def mySeq(n):
seq = 1
currentNumber = 1
tickIn = False
for x in range(0,n):
if (tickIn == True):
currentNumber = (currentNumber / 4)
tickIn = False
else:
currentNumber = currentNumber + 6
tickIn = True
print(currentNumber)
Output of mySeq(75):
mySeq(75) 7 1.75 7.75 1.9375 7.9375 1.984375 7.984375 1.99609375 7.99609375 1.9990234375 7.9990234375 1.999755859375 7.999755859375 1.99993896484375 7.99993896484375 1.9999847412109375 7.9999847412109375 1.9999961853027344 7.999996185302734 1.9999990463256836 7.999999046325684 1.999999761581421 7.999999761581421 1.9999999403953552 7.999999940395355 1.9999999850988388 7.999999985098839 1.9999999962747097 7.99999999627471 1.9999999990686774 7.999999999068677 1.9999999997671694 7.999999999767169 1.9999999999417923 7.999999999941792 1.999999999985448 7.999999999985448 1.999999999996362 7.999999999996362 1.9999999999990905 7.9999999999990905 1.9999999999997726 7.999999999999773 1.9999999999999432 7.999999999999943 1.9999999999999858 7.999999999999986 1.9999999999999964 7.9999999999999964 1.9999999999999991 7.999999999999999 1.9999999999999998 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0 2.0 8.0
Now why does it do this to a limit but then break into whole numbers? - Mathematically? I've tried this with another pair of commons and it produces the same type of output reaching a LIMIT.