OFFSET
0,2
COMMENTS
Number of ways to write n as an ordered sum of 5 pentagonal numbers (A000326).
a(n) > 0 for all n >= 0.
Every number is the sum of at most 5 pentagonal numbers.
Every number is the sum of at most k k-gonal numbers (Fermat's polygonal number theorem).
LINKS
Ilya Gutkovskiy, Extended graphical example
Eric Weisstein's World of Mathematics, Pentagonal Number
FORMULA
G.f.: (Sum_{k>=0} x^(k*(3*k-1)/2))^5.
EXAMPLE
a(5) = 6 because we have:
[5, 0, 0, 0, 0]
[0, 5, 0, 0, 0]
[0, 0, 5, 0, 0]
[0, 0, 0, 5, 0]
[0, 0, 0, 0, 5]
[1, 1, 1, 1, 1]
MATHEMATICA
nmax = 76; CoefficientList[Series[Sum[x^(k (3 k - 1)/2), {k, 0, nmax}]^5, {x, 0, nmax}], x]
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 10 2017
STATUS
approved