OFFSET
0,3
COMMENTS
The n-th centered n-gonal pyramidal number.
REFERENCES
E. Deza and M. M. Deza, Figurate numbers, World Scientific Publishing (2012), 142.
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
EXAMPLE
MATHEMATICA
Table[n (Binomial[n + 1, 3] + 1), {n, 0, 40}]
nmax = 40; CoefficientList[Series[x (1 - x + 5 x^2 - x^3)/(1 - x)^5, {x, 0, nmax}], x]
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 4, 15, 44}, 41]
PROG
(Magma) [ n*(Binomial(n+1, 3)+1):n in [0..40]]; // Marius A. Burtea, Nov 15 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 41); [0] cat Coefficients(R!(x*(1-x+5*x^2-x^3)/(1-x)^5)); // Marius A. Burtea, Nov 15 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Nov 15 2019
STATUS
approved