OFFSET
0,1
COMMENTS
Greatest common divisor of (n+1)^2-1 and (n+1)^2+8. - Bruno Berselli, Mar 08 2017
LINKS
Colin Barker, 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,1).
FORMULA
a(n) = A147674(n)/9.
From Colin Barker, Dec 21 2017: (Start)
G.f.: (9 + 3*x + x^2 + 3*x^3 + 3*x^4 + x^5 + 3*x^6 + 9*x^7 + x^8) / ((1 - x)*(1 + x + x^2)*(1 + x^3 + x^6)).
a(n) = a(n-9) for n>8.
(End)
MATHEMATICA
With[{n=5}, PadLeft[{}, 9n, {9, 3, 1, 3, 3, 1, 3, 9, 1}]] (* Harvey P. Dale, Oct 22 2011 *)
PROG
(PARI) Vec((9 + 3*x + x^2 + 3*x^3 + 3*x^4 + x^5 + 3*x^6 + 9*x^7 + x^8) / ((1 - x)*(1 + x + x^2)*(1 + x^3 + x^6)) + O(x^100)) \\ Colin Barker, Dec 21 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 13 2009
STATUS
approved