login
A101377
a(n) = n^2*(n^3-n+2)/2.
1
0, 1, 16, 117, 496, 1525, 3816, 8281, 16192, 29241, 49600, 79981, 123696, 184717, 267736, 378225, 522496, 707761, 942192, 1234981, 1596400, 2037861, 2571976, 3212617, 3974976, 4875625, 5932576, 7165341, 8594992, 10244221, 12137400, 14300641, 16761856, 19550817
OFFSET
0,3
REFERENCES
T. A. Gulliver, Sequences from Cubes of Integers, Int. Math. Journal, 4 (2003), 439-445.
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
Sequence in context: A044729 A251423 A279163 * A302897 A145216 A200173
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 15 2005
STATUS
approved