OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = n (n + 1) (n^2 - 3 n + 4)/2. - corrected by Eric Rowland, Aug 15 2017
From Chai Wah Wu, Jul 29 2016: (Start)
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) for n > 4.
G.f.: 2*x*(1 - 2*x + 7*x^2)/(1 - x)^5. (End)
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 2, 6, 24, 80}, 50] (* Harvey P. Dale, Jan 02 2020 *)
PROG
(PARI) a(n)=n*(n+1)*(n^2-3*n+4)/2 \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 11 2006
STATUS
approved