OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,3,0,0,-3,0,0,1).
FORMULA
From Colin Barker, Mar 08 2017: (Start)
G.f.: 3*(1 + x + 7*x^2 + 10*x^3 + 4*x^4 + 10*x^5 + 7*x^6 + x^7 + x^8) / ((1 - x)^3*(1 + x + x^2)^3).
a(n) = 3*a(n-3) - 3*a(n-6) + a(n-9) for n>8.
(End)
MATHEMATICA
Table[LCM[3, n^2+n+1], {n, 0, 60}] (* Harvey P. Dale, Mar 03 2017 *)
PROG
(PARI) a(n) = lcm(3, n^2+n+1) \\ Michel Marcus, Jul 11 2013
(PARI) Vec(3*(1 + x + 7*x^2 + 10*x^3 + 4*x^4 + 10*x^5 + 7*x^6 + x^7 + x^8) / ((1 - x)^3*(1 + x + x^2)^3) + O(x^100)) \\ Colin Barker, Mar 08 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
W. Neville Holmes, Jul 04 2007
EXTENSIONS
Corrected by Harvey P. Dale, Mar 03 2017
STATUS
approved