OFFSET
0,1
COMMENTS
Also the decimal expansion of 82848614/333333333 or the continued fraction rep. of (252629+sqrt(142904412730))/281217.
Palindromic symmetry: a(9k+i) = a(9k+8-i).
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
FORMULA
a(n) = a(n-9).
G.f.: -(2+4*x+8*x^2+5*x^3+4*x^4+5*x^5+8*x^6+4*x^7+2*x^8) / ((x-1) * (1+x+x^2) * (x^6+x^3+1)) .
a(n) = n^2 + n + 2 (mod 9). [Arkadiusz Wesolowski, Jul 03 2012]
MATHEMATICA
Flatten@Table[{2, 4, 8, 5, 4, 5, 8, 4, 2}, {10}] (* Arkadiusz Wesolowski, Jul 03 2012 *)
PadRight[{}, 120, {2, 4, 8, 5, 4, 5, 8, 4, 2}] (* Harvey P. Dale, Jan 25 2016 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 27 2008
EXTENSIONS
Unrelated comments removed by R. J. Mathar, Sep 07 2009
STATUS
approved