OFFSET
1,2
EXAMPLE
a(4)=12 because the sum of last four *digits* of the sequence beginning with 0,0,0,3, (three zeros followed by a 3) enters in a loop whose length is 12 terms; so a(4)=12
a(5)=171 because "Sum of last five digits" beginning with 0,0,0,0,3 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