OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Chai Wah Wu, Oct 15 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.: x*(3*x^3 - 23*x^2 + x - 5)/(x - 1)^5. (End)
MATHEMATICA
Table[n^4+4n, {n, 0, 40}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 5, 24, 93, 272}, 40] (* Harvey P. Dale, Jun 12 2017 *)
PROG
(PARI) a(n) = n^4 + 4*n; \\ Michel Marcus, Jan 11 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Aug 30 2010
EXTENSIONS
a(0) corrected by R. J. Mathar, Sep 19 2010
STATUS
approved