OFFSET
0,2
LINKS
Nian Hong Zhou, Yalin Sun, Counting the number of solutions to certain infinite Diophantine equations, arXiv:1910.07884 [math.NT], 2019.
FORMULA
a(n) = [q^n] Product_{j>0} Product_{n>0} (1 - (-1)^n*q^(n*j^r)) / (1 + (-1)^n*q^(n*j^r)) with r = 3 (see Proposition 1.1 in Zhou and Sun).
EXAMPLE
a(9) = 6 since there are 6 integer solutions to 1^3*k1^2 + 2^3*k2^2 + ... = 9:
k1 = +-3 and k_j = 0 for j > 1;
k1 = -1, k2 = +-1 and k_j = 0 for j > 2;
k1 = 1, k2 = +-1 and k_j = 0 for j > 2.
MATHEMATICA
nmax=85; r=3; CoefficientList[Series[Product[Product[(1-(-1)^n*q^(n*j^r))/(1+(-1)^n*q^(n*j^r)), {n, 1, nmax}], {j, 1, nmax}], {q, 0, nmax}], q]
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Nov 09 2019
STATUS
approved