OFFSET
1,2
COMMENTS
Conjecture: For any c = 1, 5, 7, every positive integer n can be written as c*((p-1)/2)^4 + (q-1)^2/2 + (r-1)^2/4 + (s+1)^2/4, where each of p,q,r,s is either 1 or an odd prime.
This has been verified for n <= 5*10^5 in the case c = 1, and for n <= 3*10^5 when c is 5 or 7.
See also A391038 for a smilar conjecture.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 since 1 = ((1-1)/2)^4 + (1-1)^2/2 + (1-1)^2/4 + (1+1)^2/4.
a(30) = 1 since 30 = ((3-1)/2)^4 + (1-1)^2/2 + (11-1)^2/4 + (3+1)^2/4 with 3 and 11 prime.
MATHEMATICA
pp[n_]:=pp[n]=IntegerQ[n]&&(n==1||PrimeQ[2n-1]); pq[n_]:=pq[n]=(n==0||PrimeQ[2n+1]);
tab={}; Do[m=0; Do[If[pq[x]&&pq[y]&&pq[z]&&pp[Sqrt[n-x^4-2y^2-z^2]], m=m+1], {x, 0, (n-1)^(1/4)},
{y, 0, Sqrt[(n-1-x^4)/2]}, {z, 0, Sqrt[n-1-x^4-2y^2]}]; tab=Append[tab, m], {n, 1, 100}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Nov 26 2025
STATUS
approved
