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 (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) for n>4. - Harvey P. Dale, Sep 28 2012
EXAMPLE
From Bruno Berselli, Oct 30 2017: (Start)
After 0:
1 = -(0) + (1);
8 = -(0 + 1) + (2 + 3 + 2^2);
39 = -(0 + 1 + 2) + (3 + 4 + 5 + 6 + 7 + 8 + 3^2);
124 = -(0 + 1 + 2 + 3) + (4 + 5 + 6 + 7 + ... + 15 + 4^2);
305 = -(0 + 1 + 2 + 3 + 4) + (5 + 6 + 7 + 8 + ... + 24 + 5^2);
636 = -(0 + 1 + 2 + 3 + 4 + 5) + (6 + 7 + 8 + 9 + ... + 35 + 6^2), etc. (End)
MATHEMATICA
Table[n (n^3 - n + 2)/2, {n, 0, 50}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 8, 39, 124}, 50] (* Harvey P. Dale, Sep 28 2012 *)
PROG
(Magma) [n*(n^3-n+2)/2: n in [0..40]]; // Vincenzo Librandi, May 26 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 15 2005
STATUS
approved