OFFSET
1,2
EXAMPLE
a(4)=50 because the sum of last four *digits* of the sequence beginning with 0,0,0,2, (three zeros followed by a 2) enters in a loop whose length is 50 terms; so a(4)=50
a(5)=171 because "Sum of last five digits" beginning with 0,0,0,0,2 enters in a cycle of 171 terms.
Computed by Michael D Beeler.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Alexandre Wajnberg, Dec 17 2005
STATUS
approved