OFFSET
1,4
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Colin Barker, Dec 29 2015: (Start)
a(n) = (n^4+30*n^3-205*n^2+390*n-216)/24.
a(n) = 5*a(n-1)-10*a(n-2)+10*a(n-3)-5*a(n-4)+a(n-5) for n>5.
G.f.: x^4*(10-9*x) / (1-x)^5.
(End)
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 0, 0, 10, 41}, 50] (* Harvey P. Dale, Nov 18 2024 *)
PROG
(PARI) concat(vector(3), Vec(x^4*(10-9*x)/(1-x)^5 + O(x^50))) \\ Colin Barker, May 05 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe A.J.G. Chevalier, Dec 29 2015
STATUS
approved