A352259 Number of ways to write n as w^6 + x^2 + 2*y^2 + 3*z^2 + x*y*z, where w,x,y,z are nonnegative integers.
1, 2, 2, 3, 4, 3, 2, 3, 3, 3, 2, 3, 6, 4, 3, 2, 2, 5, 5, 5, 4, 3, 4, 2, 1, 5, 5, 4, 6, 5, 3, 3, 4, 5, 4, 5, 7, 5, 4, 5, 4, 3, 3, 3, 4, 3, 3, 5, 6, 7, 6, 5, 7, 6, 4, 4, 4, 7, 5, 4, 4, 3, 7, 5, 5, 6, 6, 10, 8, 3, 3, 4, 5, 8, 4, 9, 13, 12, 8, 2, 7, 10, 9, 10, 9, 7, 5, 3, 3, 8, 5, 10, 10, 6, 7, 8, 6, 10, 9, 11, 10
Offset: 0
Keywords
Examples
a(24) = 1 with 24 = 0^6 + 4^2 + 2*2^2 + 3*0^2 + 4*2*0. a(106) = 1 with 106 = 2^6 + 1^2 + 2*2^2 + 3*3^2 + 1*2*3.
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 0..10000
Programs
-
Mathematica
SQ[n_]:=SQ[n]=IntegerQ[Sqrt[n]]; tab={};Do[r=0;Do[If[SQ[4(n-w^6-2y^2-3z^2)+y^2*z^2],r=r+1],{w,0,n^(1/6)},{z,0,Sqrt[(n-w^6)/3]},{y,0,Sqrt[(n-w^6-3z^2)/2]}];tab=Append[tab,r],{n,0,100}];Print[tab]
Comments