OFFSET
0,2
COMMENTS
Also binomial transform of the quasi-finite sequence 1,6,28,48,24,0 (0 continued).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1)
FORMULA
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5).
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) + 24 -> 4th differences are 24 = A010863(n).
G.f.: (-1 - 2*x - 16*x^2 - 6*x^3 + x^4)/(x-1)^5.
MATHEMATICA
Table[1+2n+n^2+2n^3+n^4, {n, 0, 50}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {1, 7, 41, 151, 409}, 50] (* Harvey P. Dale, Nov 13 2021 *)
PROG
(Magma) [1 +2*n +n^2 +2*n^3 +n^4: n in [0..40] ]; // Vincenzo Librandi, Aug 06 2011
(PARI) a(n)=1+2*n+n^2+2*n^3+n^4 \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Sep 22 2009
EXTENSIONS
Edited and extended by R. J. Mathar, Sep 25 2009
STATUS
approved