OFFSET
0,3
LINKS
Ray Chandler, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
FORMULA
a(n<12) = n mod 10, a(n>11) = a(n-1)+a(i+1) mod 10, where i (< n-1) is the first position to left of n-1 where a(n-1) occurs.
MAPLE
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Laurent Dorey (laurentdorey(AT)wanadoo.fr) and Antti Karttunen, Feb 21 2003
STATUS
approved