OFFSET
0,3
COMMENTS
For n > 2, a(n) is the n-th term of the partial sums of n-gonal pyramidal numbers (in other words, a(n) is the n-th 4-dimensional n-gonal number).
LINKS
FORMULA
O.g.f.: x*(1 - 2*x + 6*x^2)/(1 - x)^6.
E.g.f.: exp(x)*x*(24 + 24*x + 24*x^2 + 10*x^3 + x^4)/24.
a(n) = [x^n] x*(1 - 3*x + n*x)/(1 - x)^5.
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6).
MATHEMATICA
Table[(n^2 - 3 n + 6) Binomial[n + 2, 3]/4, {n, 0, 40}]
nmax = 40; CoefficientList[Series[x (1 - 2 x + 6 x^2)/(1 - x)^6, {x, 0, nmax}], x]
nmax = 40; CoefficientList[Series[Exp[x] x (24 + 24 x + 24 x^2 + 10 x^3 + x^4)/24, {x, 0, nmax}], x] Range[0, nmax]!
Table[SeriesCoefficient[x (1 - 3 x + n x)/(1 - x)^5, {x, 0, n}], {n, 0, 40}]
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {0, 1, 4, 15, 50, 140}, 41]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Mar 29 2018
STATUS
approved