OFFSET
1,5
COMMENTS
Conjecture: We have a(n) > 0 except for n = 23. In other words, any positive integer n not equal to 23 can be written as w^2 + x^2 + y^2 + z^2 + 3*x*y*z, where w is a positive integer and x,y,z are nonnegative integers.
It seems that a(n) > 1 for all n > 695.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(60) = 1 with 60 = 2^2 + 1^2 + 1^2 + 6^2 + 3*1*1*6.
a(128) = 1 with 128 = 8^2 + 0^2 + 0^2 + 8^2 + 3*0*0*8.
a(303) = 1 with 303 = 11^2 + 1^2 + 1^2 + 12^2 + 3*1*1*12.
a(359) = 1 with 359 = 3^2 + 1^2 + 5^2 + 12^2 + 3*1*5*12.
a(383) = 1 with 383 = 11^2 + 1^2 + 3^2 + 12^2 + 3*1*3*12.
a(695) = 1 with 695 = 17^2 + 1^2 + 9^2 + 9^2 + 3*1*9*9.
MATHEMATICA
SQ[n_]:=SQ[n]=n>0&&IntegerQ[Sqrt[n]];
tab={}; Do[r=0; Do[If[SQ[n-x^2-y^2-z^2-3*x*y*z], r=r+1], {x, 0, Sqrt[n/3]}, {y, x, Sqrt[(n-x^2)/2]}, {z, y, Sqrt[n-x^2-y^2]}]; tab=Append[tab, r], {n, 1, 100}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Feb 25 2022
STATUS
approved