OFFSET
0,3
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,-2,-3,0,6,0,-3,-2,1,2,-1).
FORMULA
a(n) = A000041(n), 0 <= n <= 15.
a(n) = A330640(n), 0 <= n <= 8.
From Colin Barker, Dec 31 2019: (Start)
G.f.: (1 - x - x^2 + 2*x^4 + x^5 - 2*x^6 - x^7 + x^8 + x^9 - x^11 + x^12) / ((1 - x)^6*(1 + x)^2*(1 + x + x^2)^2).
a(n) = 2*a(n-1) + a(n-2) - 2*a(n-3) - 3*a(n-4) + 6*a(n-6) - 3*a(n-8) - 2*a(n-9) + a(n-10) + 2*a(n-11) - a(n-12) for n>12. (End)
PROG
(PARI) seq(n)={Vec((1 - x - x^2 + 2*x^4 + x^5 - 2*x^6 - x^7 + x^8 + x^9 - x^11 + x^12) / ((1 - x)^6*(1 + x)^2*(1 + x + x^2)^2) + O(x*x^n))} \\ Andrew Howroyd, Dec 27 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Dec 22 2019
STATUS
approved