Erdős Problem a Daythe open tracker
ERDŐS #773 · READER SUBMISSION

A verified partial result (a case, a bound, an exact value)

VERIFIED2026-11-27 · Adrian Tušar
Community database OPENas of 2025-08-31tags number theory, sidon sets, squaresproblem page · erdosproblems.com/773
Our review · 2026-11-28

Verdict: VERIFIED (by reading and by computation; not machine-checked). A modest negative result about one family of constructions, correct for all sufficiently large k (the threshold is astronomically large). Problem #773 itself is untouched. Reviewed 28 November 2026.

The theorem. Let Q be the product of the first k primes ≡ 1 mod 4. Choose, at each such prime, one member of every ± pair of nonzero squares, and keep the roots a ≤ Q whose squares are chosen at every prime. Every such filter still leaves at least Q²e^(−Ck) = Q^(2−o(1)) four-element sets with a² + b² = c² + d². So random thinning plus one deletion per collision cannot push this route past the N^(2/3) exponent.

What we checked. The identity (mu−v)² + (u+mv)² = (mu+v)² + (mv−u)² (symbolically) and its non-parallel condition (determinants m² + 1, 2m, m² − 1); the vanishing of odd and pair terms (g(ix) = −g(x)); β_p ≥ (1+Λ)/16 − 4/p; |Λ| ≤ ‖g‖_U³ (generalized von Neumann); ‖f‖_U²⁴ ≤ a² + (1−a)²/2 and hence ‖g‖_U³⁸ ≤ 3/4; the multiplier m with log m = O(log² k); the Fourier transfer from residues to an integer box; distinctness of the four roots. By brute force at p = 13…73 the local bounds never failed (largest ‖g‖_U³⁸ = 0.22, smallest β_p = 0.026). The worked example holds: 11² + 186² = 74² + 171² = 34717 with all four roots passing the lower-representative filter at 5, 13, 17. Minimum over all filters of the number of collision sets: 0 at Q = 65 (so "k large" is really needed), 123 at Q = 1105 (all 256 filters), and 21,874 among 2,626 of the 32,768 filters at Q = 32,045 (not exhaustive).

To fix in a write-up. Say which variable lives in [T, 2T) and which in [4T, 5T); spell out the arc step that gives ρ; λ is really O(log log k).

Credit and the world. We could not find who proposed the prime-filter route: not in Bosio–Riblet–Tarr (arXiv:2607.02728 v2), Gowers–Wolf (0711.0185), Croot–Mao–Pohoata–Sheffer–Yip (2606.17487 v2), Formal Conjectures, Tao's blog, or our own #773 pages; erdosproblems.com was not read. With Q = N, the kept set has the same shape as the CMPSY upper bound N·exp(−(log 2/2 − o(1)) log N/log log N), which is what makes this obstruction worth recording. Lefmann–Thiele's N^(2/3) remains the best lower bound.

Provenance (added 29 November, from the submitter). The prime-filter route came out of his own work with OpenAI Codex: asked for a construction for #773, it proposed the lower-half residue filter and then allowing either member of each pair of opposite squares, and he asked whether every such choice still leaves many collisions. His project's records name no earlier source for using this filter on #773. A later literature check of his found the same single-prime choices in work of Liskovets and Pöschel on circulant graphs; we have not read that work, and who first tried the filter for #773 is not known to him or to us.

Tools, as declared by the submitter: I directed this project using OpenAI Codex. Codex agents developed and wrote the mathematical argument and Python experiments. A fresh Codex agent audited the proof, checked prior work, reran the experiments and independently counted collisions via equal differences of squares. GPT 6.2 Astra was used. The mathematical and computational checks described here were performed by AI agents.

The submission

A limit on prime filters for Sidon subsets of the squares Adrian Tušar, with AI assistance

Erdős #773 asks how many of the first N squares can be chosen with all unordered pair sums distinct, including diagonal sums. A known lower bound is a constant times N^(2/3). This submission proves an obstruction to one proposed improvement. The general problem remains open.

Theorem. Let Q be the product of the first k primes congruent to 1 modulo 4. For each p dividing Q and each pair {t,−t} of nonzero square residues modulo p, choose exactly one member. Keep a positive integer a ≤ Q if its square is chosen at every p. For some absolute C and all sufficiently large k, every such choice leaves at least Q² exp(−Ck) distinct four-element sets of roots admitting an equality a²+b²=c²+d² over the integers. Choices may vary with k. Since Q ≥ k!, this is Q^(2−o(1)). For a small example, at Q=1105 choosing the lower representative at every prime admits 11²+186²=74²+171²=34717.

Proof. Use the four forms A=mu−v, B=u+mv, C=mu+v and D=mv−u. They satisfy A²+B²=C²+D². The proof counts parameter pairs in a box on which the four positive roots are distinct.

  1. Uniform local density. At a prime p where the four directions are pairwise nonparallel, give accepted roots sign +1, other nonzero roots sign −1, and set g(0)=0. Multiplication by a square root of −1 reverses the sign. In the expansion of the average of ∏(1+g(L))/2 over the four forms (one factor (1+g(L))/2 for each L), all odd terms vanish. Two different forms are independent, so the pair terms vanish too. The probability β_p that all four pass is at least (1+Λ)/16−4/p, where Λ is the mean product of the four signs. Three Cauchy–Schwarz steps give |Λ|≤‖g‖_{U³}: for each of the first three forms choose a vector in its kernel on which D takes value 1, express the uniform parameter pair as the sum of those vectors times three independent uniform scalars, and eliminate the three factors successively.

For real |f|≤1, write a=|mean f|². The nonzero normalized Fourier coefficients come in conjugate pairs. Parseval gives ‖f‖_{U²}⁴≤a²+(1−a)²/2≤(1+a)/2. Thus ‖g‖_{U²}⁴≤1/2. Apply the same bound to f(x)=g(x)g(x+h) and average over h. The average of |mean f|² is ‖g‖_{U²}⁴, so ‖g‖_{U³}⁸≤3/4. Consequently β_p≥b for an absolute b>0 at all sufficiently large primes.

  1. Short multiplier. Fix a cutoff P large enough for step 1 and p>4/b. Let M be 8 times the product of the primes congruent to 1 modulo 4 up to P. Take m=Mj, avoiding m=0, ±1, ±√(−1) at each larger prime dividing Q. These exclusions make the determinants 2m, m²−1 and m²+1 nonzero. At small primes m=0 modulo p and β_p=((p−1)/(2p))²≥b after decreasing b if necessary. Here is a size bound for j. Put λ=∑5/p over the larger primes; λ=O(log(2k)). Their avoidance density is V=∏(1−5/p)≥exp(−2λ). Truncate inclusion–exclusion for 1≤j≤X after an odd r between 10(λ+log(2k))+1 and 10(λ+log(2k))+3. The omitted main coefficient has absolute value at most ∑_{s>r}λ^s/s!<V/2 for large k. CRT gives total rounding error at most E=(r+1)(5k)^r. Taking X=ceil(4(E+1)exp(2λ)) makes the Bonferroni lower bound positive. Hence log m=O(log²(2k))=o(k).
  1. From residues to integers. Write H_p for the local indicator on parameter pairs and H for their product modulo Q, of mean β=∏β_p≥b^k. For a nonzero local frequency, conditioning on H_p=1 puts probability at most 1/(bp) on each value of its linear phase. An arc of half-angle πb/4 in the mean direction contains at most bp/4+1 phase values. For p>P at most half the mass lies there. Thus every nonzero local Fourier coefficient has modulus at most ρβ_p, with ρ=(1+cos(πb/4))/2<1. Set K=ceil(k(12m)^5). For a nonzero frequency pair with both coordinates of absolute value ≤K, at most log₂K=o(k) primes divide both coordinates. The CRT factorization bounds each such coefficient of H by βρ^(k−o(k)); all others are bounded by β.

Put T=floor(Q/(6m)) and J=floor(T/3). In each of [T,2T) and [4T,5T) place a triangular weight centered at its integer midpoint c: W(x)=#{0≤r,s<J : x=c+r−s}/J. It is supported inside the interval, lies between 0 and 1, and has mean ℓ=J/Q of order 1/m. Its normalized Fourier coefficients have absolute values |∑_{r<J} exp(2πihr/Q)|²/(JQ), summing to 1, with tail O(1/(ℓK)) for |h|>K by the geometric-sum bound. In the weighted box count the zero frequency contributes βℓ². The errors from low and high frequencies are O(βρ^(k−o(k))) and O(β/(ℓK)), respectively. Both are o(βℓ²). At least (1−o(1))βJ² parameter pairs therefore pass. In this box 0<A<C<D<B≤Q since m≥8. The two smallest roots recover u=(A+C)/(2m) and v=(C−A)/2. This proves the bound for distinct supports.

Consequence. If n roots survive and e₃,e₄ count three- and four-root collisions, independent retention with probability θ and charging one deletion per collision gives the guarantee θn−θ³e₃−θ⁴e₄. Its maximum is at most O((n⁴/e₄)^(1/3))≤Q^(2/3+o(1)). Coordinated deletions can remove several collisions at once; their performance remains open.

Checks and priority. At Q=32045 the first three primes were fixed to the lower-half rule and all 128 choices at p=29 were tested. A separate difference-of-squares count reproduced all collision counts. Local selectors have precedents in work on self-complementary circulant graphs (Liskovets–Pöschel, Proposition 2.2). An independent AI review found no earlier proof of this uniform integer count in its search. I would welcome a reference to any earlier result that implies it.

Reviewed by Claude with Patrick White — an AI and a regular dude, not mathematicians. The verdict says what was checked; it is not community acceptance. ← problem page