A339368 Number of partitions of n into an even number of cubes.
1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 3, 2, 3, 2, 4, 2, 4, 3, 4, 3, 4, 3, 4, 4, 4, 4, 5, 4, 5, 4, 6, 4, 6, 5, 6, 5, 7, 5, 7, 6, 7, 6, 8, 6, 8, 7, 9, 8, 9, 9, 9, 9, 10, 9, 11, 10, 11, 10, 12, 10, 12, 11, 13, 12, 14, 13, 14, 13
Offset: 0
Keywords
Examples
a(16) = 2 because we have [8, 8] and [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]