OFFSET
1,3
LINKS
EXAMPLE
A030124(1)=2 (counted as the first iteration)
A030124(2)=4 (counted as the second iteration)
A030124(4)=6 (counted as the third iteration)
Thus a(4)=2 as we reached 4 in two iterations, but a(5) = a(6) = 3, as three iterations of A030124 are needed to reach a number that is larger than or equivalent to 5, or respectively, 6.
PROG
(Scheme, with Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 04 2013
STATUS
approved