OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
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), with a(0)=0, a(1)=4, a(2)=26, a(3)=94, a(4)=251. - Harvey P. Dale, Oct 12 2012
G.f.: (-x^4-4*x^3-6*x^2-4*x)/(x-1)^5. - Harvey P. Dale, Oct 12 2012
MATHEMATICA
Table[(15n^4+22n^3+45n^2+14n)/24, {n, 0, 40}] (* or *) LinearRecurrence[ {5, -10, 10, -5, 1}, {0, 4, 26, 94, 251}, 40] (* Harvey P. Dale, Oct 12 2012 *)
PROG
(Magma)[(15*n^4+22*n^3+45*n^2+14*n) / 24: n in [0..40]]; // Vincenzo Librandi, Dec 26 2010
(PARI) a(n)=(15*n^4+22*n^3+45*n^2+14*n)/24 \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Dec 03 2004
STATUS
approved