>>> from divtri import successio >>> it = successio(120) >>> next(it) 120 >>> next(it) 60 >>> next(it) 30 >>> for i in range(15): ... a = next(it) >>> next(it) 4 >>> next(it) 2 >>> next(it) 1 >>> it = successio(10) >>> next(it) 10 >>> next(it) 5 >>> next(it) 16 >>> next(it) 8 >>> next(it) 4 >>> next(it) 2 >>> next(it) 1 >>> next(it) Traceback (most recent call last): File "", line 1, in StopIteration