A339369 Number of partitions of n into an odd number of cubes.
0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 3, 2, 3, 2, 3, 2, 4, 2, 4, 3, 4, 3, 4, 4, 4, 4, 5, 4, 5, 4, 5, 4, 6, 4, 6, 5, 6, 5, 7, 6, 7, 6, 8, 6, 8, 7, 8, 8, 9, 8, 9, 9, 9, 9, 10, 10, 11, 10, 12, 10, 12, 11, 12, 12, 14, 12, 14, 13, 14
Offset: 0
Keywords
Examples
a(17) = 2 because we have [8, 8, 1] and [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].
Links
Programs
-
Mathematica
nmax = 85; CoefficientList[Series[(1/2) (Product[1/(1 - x^(k^3)), {k, 1, Floor[nmax^(1/3)] + 1}] - Product[1/(1 + x^(k^3)), {k, 1, Floor[nmax^(1/3)] + 1}]), {x, 0, nmax}], x]