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