OFFSET
1,2
REFERENCES
C. Suriano, Miniature Matematiche, unpublished, 2009, section 30
EXAMPLE
a(1)=1 since 1^2=1; a(2)=8 since the period contains 8 numbers: 4,16,37,58,89,145,42,20 the following being 4 again.
a(5)=11 since the sequence runs as follows:
25,29, 85, 89, 145, 42, 20, 4, 16, 37, 58 the next term being 89 that is already there.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Carmine Suriano, May 29 2009
STATUS
approved