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