OFFSET
0,3
REFERENCES
T. A. Gulliver, Sequences from Cubes of Integers, Int. Math. Journal, 4 (2003), 439-445.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
G.f.: x*(1 + 20*x + 88*x^2 + 65*x^3 + 6*x^4)/(1 - x)^7. - Ilya Gutkovskiy, Feb 24 2017
E.g.f.: exp(x)*x*(24 + 300*x + 712*x^2 + 459*x^3 + 97*x^4 + 6*x^5)/24. - Stefano Spezia, Sep 10 2022
MATHEMATICA
Table[(n (1+n)^2 (2+n (3+n (-5+6 n))))/24, {n, 0, 40}] (* or *) LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {0, 1, 27, 256, 1325, 4815, 13916}, 40] (* Harvey P. Dale, Jun 20 2021 *)
PROG
(Magma) [n*(n+1)^2*(6*n^3-5*n^2+3*n+2)/24: n in [0..40]]; // Vincenzo Librandi, Jun 15 2011
(PARI) a(n)=n*(n+1)^2*(6*n^3-5*n^2+3*n+2)/24 \\ Charles R Greathouse IV, Feb 24 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 15 2005
STATUS
approved