OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,1,0,3,0,1,0,0,0,-1).
FORMULA
G.f.: (-2*x^14 + 3*x^12 + 3*x^11 + 6*x^10 + 6*x^9 + 9*x^8 + 9*x^7 + 9*x^6 + 9*x^5 + 7*x^4 + 6*x^3 + 4*x^2 + 3*x + 1)/(x^12 - x^8 - 3*x^6 - x^4 +1).
a(n) = a(n-4) + 3*a(n-6) + a(n-8) - a(n-12) for n>12. - Colin Barker, Feb 06 2018
PROG
(Magma) // See Magma program in A298805.
(PARI) Vec((1 + 3*x + 4*x^2 + 6*x^3 + 7*x^4 + 9*x^5 + 9*x^6 + 9*x^7 + 9*x^8 + 6*x^9 + 6*x^10 + 3*x^11 + 3*x^12 - 2*x^14) / ((1 - x + x^2)*(1 + x + x^2)*(1 - x^2 - x^4 - x^6 + x^8)) + O(x^60)) \\ Colin Barker, Feb 06 2018
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
John Cannon and N. J. A. Sloane, Feb 06 2018
STATUS
approved