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 (6,-15,20,-15,6,-1).
FORMULA
G.f.: x*(1 + 10*x + 36*x^2 + 14*x^3 - x^4)/(1 - x)^6. - Ilya Gutkovskiy, Feb 24 2017
MATHEMATICA
Table[n^2 (n^3-n+2)/2, {n, 0, 40}] (* or *) LinearRecurrence[{6, -15, 20, -15, 6, -1}, {0, 1, 16, 117, 496, 1525}, 40] (* Harvey P. Dale, Jan 29 2021 *)
PROG
(Magma) [n^2*(n^3-n+2)/2: n in [0..40]]; // Vincenzo Librandi, Jun 15 2011
(PARI) a(n)=n^2*(n^3-n+2)/2 \\ Charles R Greathouse IV, Feb 24 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 15 2005
STATUS
approved