OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Elmo R. Oliveira, Sep 03 2025: (Start)
G.f.: x*(1 + 29*x + 35*x^2 - x^3)/(1 - x)^5.
E.g.f.: x*(3 + 48*x + 48*x^2 + 8*x^3)*exp(x)/3.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5). (End)
MATHEMATICA
Table[(4n^2+2n-3)(2n-1)n/3, {n, 0, 40}] (* Harvey P. Dale, Sep 18 2019 *)
PROG
(PARI) a(n)=(4*n^2+2*n-3)*(2*n-1)*n/3 \\ Charles R Greathouse IV, Oct 21 2022
(PARI) concat(0, Vec(-x*(1+29*x+35*x^2-x^3)/(x-1)^5 + O(x^35))) \\ Elmo R. Oliveira, Sep 03 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 26 2000
EXTENSIONS
More terms from Elmo R. Oliveira, Sep 03 2025
STATUS
approved
