OFFSET
0,3
LINKS
Eric Weisstein's World of Mathematics, Pyramidal Number
FORMULA
a(n) = [x^p(n,n)] (Sum_{k=0..n} x^p(n,k))^n, where p(n,k) = k * (k + 1) * (k * (n - 2) - n + 5) / 6 is the k-th n-gonal pyramidal number.
EXAMPLE
a(3) = 3 because the third tetrahedral (or triangular pyramidal) number is 10 and we have [10, 0, 0], [0, 10, 0] and [0, 0, 10].
MATHEMATICA
Table[SeriesCoefficient[Sum[x^(k (k + 1) (k (n - 2) - n + 5)/6), {k, 0, n}]^n, {x, 0, n (n + 1) (n^2 - 3 n + 5)/6}], {n, 0, 22}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 04 2020
STATUS
approved