OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-8,0,14,-14,0,8,-5,1).
FORMULA
a(n) = (2*n^6 + 54*n^5 + 575*n^4 + 3060*n^3 + 8468*n^2 + 11376*n + 5760) / 5760 for n even.
a(n) = (2*n^6 + 54*n^5 + 575*n^4 + 3060*n^3 + 8468*n^2 + 11286*n + 5355) / 5760 for n odd.
a(n) = 5*a(n-1) - 8*a(n-2) + 14*a(n-4) - 14*a(n-5) + 8*a(n-7) - 5*a(n-8) + a(n-9) for n>8.
MATHEMATICA
CoefficientList[Series[1/((1 - x)^7 (1 + x)^2), {x, 0, 40}], x] (* or *) LinearRecurrence[{5, -8, 0, 14, -14, 0, 8, -5, 1}, {1, 5, 17, 45, 103, 211, 399, 707, 1190}, 41] (* Robert G. Wilson v, Feb 07 2018 *)
PROG
(PARI) Vec(1 / ((1 - x)^7*(1 + x)^2) + O(x^40))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Feb 07 2018
STATUS
approved