OFFSET
2,2
LINKS
Heinrich Ludwig, Table of n, a(n) for n = 2..1000
Index entries for linear recurrences with constant coefficients, signature (4,-3,-8,14,0,-14,8,3,-4,1).
FORMULA
a(n) = (n^6 + 3*n^5 - 5*n^4 + 6*n^3 - 68*n^2 + 72*n + IF(MOD(n, 2) = 1)*(27*n^2 - 81*n + 45))/288.
G.f.: x^3*(2*x^5-5*x^4+x^3-8*x^2-7*x-3) / ((x-1)^7*(x+1)^3). - Colin Barker, May 30 2014
MATHEMATICA
Drop[CoefficientList[Series[x^3*(2*x^5-5*x^4+x^3-8*x^2-7*x-3) / ((x-1)^7*(x+1)^3), {x, 0, 40}], x], 2] (* Vaclav Kotesovec, May 31 2014 after Colin Barker *)
PROG
(PARI) concat(0, Vec(x^3*(2*x^5-5*x^4+x^3-8*x^2-7*x-3)/((x-1)^7*(x+1)^3) + O(x^100))) \\ Colin Barker, May 30 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, May 30 2014
STATUS
approved