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,1,2,3,5,3,2,1,0,-1).
FORMULA
G.f.: (-2*x^11 + 3*x^10 + 6*x^9 + 9*x^8 + 12*x^7 + 15*x^6 + 15*x^5 + 13*x^4 + 10*x^3 + 7*x^2 + 4*x + 1)/(x^10 - x^8 - 2*x^7 - 3*x^6 - 5*x^5 - 3*x^4 - 2*x^3 - x^2 + 1).
a(n) = a(n-2) + 2*a(n-3) + 3*a(n-4) + 5*a(n-5) + 3*a(n-6) + 2*a(n-7) + a(n-8) - a(n-10) for n>11. - Colin Barker, Feb 06 2018
PROG
(Magma) // See Magma program in A298805.
(PARI) Vec((1 + 4*x + 7*x^2 + 10*x^3 + 13*x^4 + 15*x^5 + 15*x^6 + 12*x^7 + 9*x^8 + 6*x^9 + 3*x^10 - 2*x^11) / ((1 + x + x^2 + x^3 + x^4)*(1 - x - x^2 - x^3 - x^4 - x^5 + x^6)) + O(x^40)) \\ Colin Barker, Feb 06 2018
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
John Cannon and N. J. A. Sloane, Feb 04 2018
STATUS
approved