OFFSET
0,3
COMMENTS
REFERENCES
E. Deza and M. M. Deza, Figurate numbers, World Scientific Publishing (2012), page 93 (23rd row of the table).
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: x*(1 + 22*x)/(1 - x)^4.
a(n) = 4*a(n-1)-6*a(n-2)+4*a(n-3)-a(n-4) for n>3. - Colin Barker, Apr 07 2015
MATHEMATICA
Table[n (n + 1) (23 n - 20)/6, {n, 0, 40}]
LinearRecurrence[{4, -6, 4, -1}, {0, 1, 26, 98}, 40] (* Vincenzo Librandi, Apr 08 2015 *)
PROG
(PARI) concat(0, Vec(x*(1 + 22*x)/(1 - x)^4 + O(x^100))) \\ Colin Barker, Apr 07 2015
(Magma) k:=25; [n*(n+1)*((k-2)*n-(k-5))/6: n in [0..40]]; // Vincenzo Librandi, Apr 08 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luciano Ancora, Apr 07 2015
STATUS
approved