OFFSET
0,2
LINKS
Vincenzo Librandi, 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).
G.f.: -x*(1+x)*(4*x^2-5*x+4)/(x-1)^5.
E.g.f.: x*(16 +22*x +6*x^2 +x^3)*exp(x)/4. - G. C. Greubel, May 19 2018
MAPLE
seq(n^2*(n^2+15)/4, n=0..80)
MATHEMATICA
CoefficientList[Series[-x*(1 + x)*(4*x^2 - 5*x + 4)/(x-1)^5, {x, 0, 40}], x] (* Vincenzo Librandi, Dec 18 2012 *)
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 4, 19, 54, 124}, 40] (* Harvey P. Dale, May 30 2016 *)
PROG
(Magma) [n^2 * (n^2 + 15)/4: n in [0..40]]; // Vincenzo Librandi, Dec 18 2012
(PARI) for(n=0, 30, print1(n^2*(n^2 +15)/4, ", ")) \\ G. C. Greubel, May 19 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Apr 23 2009
STATUS
approved