OFFSET
0,3
COMMENTS
The sequence has period: {0,1,2,3,6,2,2,1,5,8,5,0,4,0,4,8,3,6,8,8,4,2,5,2,0,7,0,7,5,3,6,5,5,7,8,2,8,0,1} of length = 39.
LINKS
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,1).
FORMULA
a(n) = mod(a(n-1)+a(n-2)+a(n-3), 9); a(1)=0, a(2)=1, a(3)=2.
MATHEMATICA
s={a=0, b=1, c=2}; Do[d=Mod[a+b+c, 9]; s=Append[s, d]; a=b; b=c; c=d, {m, 200}]; s
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, May 25 2005
STATUS
approved