OFFSET
0,3
REFERENCES
T. A. Gulliver, Sequences from Arrays of Integers, Int. Math. Journal, Vol. 1, No. 4, pp. 323-332, 2002.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
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), n > 4, a(0)=0, a(1)=0, a(2)=2, a(3)=11, a(4)=36. - Yosu Yurramendi, Sep 03 2013
From G. C. Greubel, Aug 06 2024: (Start)
G.f.: x^2*(2 + x + x^2)/(1 - x)^5.
E.g.f.: (1/6)*x^2*(6 + 5*x + x^2)*exp(x). (End)
MATHEMATICA
Table[n(n-1)(n^2+2)/6, {n, 0, 50}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 0, 2, 11, 36}, 50] (* Harvey P. Dale, Nov 27 2022 *)
PROG
(Magma) [n*(n-1)*(n^2+2)/6: n in [0..40]]; // Vincenzo Librandi, Jun 14 2011
(PARI) a(n)=n*(n-1)*(n^2+2)/6; \\ Joerg Arndt, Sep 04 2013
(SageMath)
def A071244(n): return binomial(n, 2)*(n^2+2)//3
[A071244(n) for n in range(41)] # G. C. Greubel, Aug 06 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 12 2002
STATUS
approved