OFFSET
1,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (5, -10, 10, -5, 1).
FORMULA
a(n) = 1/2*n*(n^3 - 9*n + 6), n>=3.
G.f.: x^3*(4*x^4 - 19*x^3 + 35*x^2 - 23*x - 9)/(x-1)^5.
MATHEMATICA
CoefficientList[Series[x^2*(4*x^4 - 19*x^3 + 35*x^2 - 23*x - 9)/(x - 1)^5, {x, 0, 50}], x] (* Wesley Ivan Hurt, Dec 27 2023 *)
PROG
(PARI) a(n)=if(n>2, n*(n^3-9*n+6)/2, 0) \\ Charles R Greathouse IV, May 26 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vaclav Kotesovec, Aug 31 2011
STATUS
approved
