OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
FORMULA
G.f.: (x+5x^2+3x^3+4x^4+8x^5+6x^6+7x^7+2x^8)/(1-x^9); a(n)=mod(n(3n-1)/2, 9)=mod(A000326(n), 9).
MATHEMATICA
PadRight[{}, 120, {0, 1, 5, 3, 4, 8, 6, 7, 2}] (* Harvey P. Dale, Feb 22 2018 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Aug 19 2005
STATUS
approved