OFFSET
0,5
LINKS
Eric Weisstein's World of Mathematics, Pyramidal Number
FORMULA
a(n) = [x^p(n,n)] (Sum_{k=1..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(4) = 6 because the fourth square pyramidal number is 30 and we have [14, 14, 1, 1], [14, 1, 14, 1], [14, 1, 1, 14], [1, 14, 14, 1], [1, 14, 1, 14] and [1, 1, 14, 14].
MATHEMATICA
Join[{1}, Table[SeriesCoefficient[Sum[x^(k (k + 1) (k (n - 2) - n + 5)/6), {k, 1, n}]^n, {x, 0, n (n + 1) (n^2 - 3 n + 5)/6}], {n, 1, 22}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 04 2020
STATUS
approved