OFFSET
1,2
COMMENTS
This accumulates the length of the "transient" or "pre-periodic" part of the trajectory started at n^2 plus the length of the first period.
EXAMPLE
a(5)=11 since the trajectory starting at x=5^2 is 25, 29, 85, 89, 145, 42, 20, 4, 16, 37, 58 the next term 89 is already there.
a(10)= 2 since the trajectory starting at x=10^2 is 100,1 and the next term is again the 1.
a(11)= 18 because the trajectory is 121, 6, 36, 45, 41, 17, 50, 25, 29, 85, 89, 145, 42, 20, 4, 16, 37, 58, the next 89 is already there.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
R. J. Mathar, Sep 16 2009
STATUS
approved