A213024 The number of solutions to x^2 + y^2 + 2*z^2 = n in positive integers x,y,z.
0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 2, 0, 2, 2, 0, 2, 1, 0, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 6, 0, 0, 4, 0, 2, 4, 2, 3, 4, 2, 2, 2, 0, 6, 4, 2, 4, 0, 4, 2, 4, 2, 0, 8, 2, 2, 6, 0, 2, 8, 2, 6, 4, 0, 6, 1, 0, 4, 6, 4, 4, 6, 2, 2, 6, 2, 4, 8, 4, 0, 4, 2, 2, 10, 4, 6, 4, 2, 6, 2, 2, 8, 6, 6, 6, 0, 2, 0, 8, 6, 2, 9
Offset: 0
Keywords
Crossrefs
Cf. A156384
Programs
-
PARI
N=166; x='x+O('x^N); T(x)=sum(k=1, 1+sqrtint(N), x^(k*k) ); gf=T(x)^2 * T(x^2); v=Vec('a0 + gf ); v[1]=0; v /* Joerg Arndt, Oct 01 2012 */