OFFSET
0,2
COMMENTS
Conjecture: a(n) > 0 for every natural number n. This has been verified for n <= 2*10^5.
It seems that a(n) = 1 only for n = 0, 26, 74, 123, 251, 2714, 3707, 4047.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 0..10000
EXAMPLE
a(74) = 1 since 74 = ((3-1)/2)^4 + 1^2 + 2*6^2 + 3*0^2 with 3 prime, and 2*1 and 2*6 both practical.
a(251) = 1 since 251 = ((1-1)/2)^4 + 0^2 + 2*2^2 + 3*9^2 with 2*2 and 2*9 both practical.
a(3707) = 1 since 3707 = ((13-1)/2)^4 + 24^2 + 2*16^2 + 3*21^2 with 13 prime, and 2*24, 2*16, 2*21 all practical.
a(4047) = 1 since 4047 = ((13-1)/2)^4 + 50^2 + 2*2^2 + 3*9^2 with 13 prime, and 2*50, 2*2, 2*9 all practical.
MATHEMATICA
f[n_]:=f[n]=FactorInteger[n];
Pow[n_, i_]:=Pow[n, i]=Part[Part[f[n], i], 1]^(Part[Part[f[n], i], 2]);
Con[n_]:=Con[n]=Sum[If[Part[Part[f[n], s+1], 1]<=DivisorSigma[1, Product[Pow[n, i], {i, 1, s}]]+1, 0, 1], {s, 1, Length[f[n]]-1}];
pr[n_]:=pr[n]=n>0&&(n<3||Mod[n, 2]+Con[n]==0);
qq[n_]:=qq[n]=IntegerQ[n]&&(n==0||pr[2n]);
pq[n_]:=pq[n]=(n==0||PrimeQ[2n+1]);
tab={}; Do[m=0; Do[If[pq[x]&&qq[y]&&qq[z]&&qq[Sqrt[n-x^4-2y^2-3z^2]], m=m+1], {x, 0, n^(1/4)},
{y, 0, Sqrt[(n-x^4)/2]}, {z, 0, Sqrt[(n-x^4-2y^2)/3]}]; tab=Append[tab, m], {n, 0, 100}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Nov 19 2025
STATUS
approved
