OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = (1/45) * (2n^6 + 50n^4 + 173 + 45).
G.f.: -x*(x^6 - x^5 + 16*x^4 - 10*x^3 + 25*x^2 - 5*x + 6) / (x-1)^7. - Colin Barker, Nov 24 2014
MATHEMATICA
LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {6, 37, 158, 529, 1486, 3653, 8086}, 40] (* Harvey P. Dale, Jun 15 2018 *)
PROG
(PARI) Vec(-x*(x^6-x^5+16*x^4-10*x^3+25*x^2-5*x+6)/(x-1)^7 + O(x^100)) \\ Colin Barker, Nov 24 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Nov 24 2014
STATUS
approved