problems / two-squares-gap

Also in this folder: compute/ · figures/

Walkthrough — a smaller constant in the two-squares gap

Discovery notes, not a paper.

0. What was actually missing

The missing degree of freedom was not a new sieve and not the Landau–Ramanujan counting function. Bambah–Chowla already give G(n)<22 n1/4+1G(n)<2\sqrt{2}\,n^{1/4}+1. Jameson already shaved the +1+1 to −2-2. Shiu isolated the next increment: a=3a=3, i.e. G(n)<22 n1/4−3G(n)<2\sqrt{2}\,n^{1/4}-3, and produced an infinite family of nn on which the two obvious lattice points — the Bambah–Chowla point and (u+1)2(u+1)^2 — both sit just on the wrong side of Φ−3\Phi-3.

On that family the two obvious points give leftover exactly 2m2m, while 2m+2<Φ<2m+32m+2<\Phi<2m+3. So a=3a=3 is the existence of some other lattice point in [n,n+2m)[n,n+2m). That is a search, not a new exponent.

Green’s 1/101/10 is a much smaller multiplicative target. It is not the published proven constant, and a gap table does not prove it.

1. Named false starts

Claiming Bloom #143. The proposed-50 list says Erdős #143. Fetched: #143 is primitive-set sparsity. Green’s comments say Erdős 1957 Problem 15. Bloom’s matching page is #222. Numbering error, recorded and moved on.

Landau–Ramanujan ⇒ 1/101/10. Average gaps ≍log⁡X\asymp\sqrt{\log X} would make 1/10 X1/41/10\,X^{1/4} look generous for large XX. House rule: do not claim the density. Average gaps are not a max-gap bound.

Richards / DEKKM as a new bound. lim sup⁡G/log⁡sn≥0.868\limsup G/\log s_n\ge 0.868 is real and later than Richards’s 1/41/4. The gaps live at X=exp⁡(Θ(k))X=\exp(\Theta(k)) and are logarithmic. They do not constrain the X1/4X^{1/4} coefficient and they do not kill 1/101/10 at that XX.

Hoping the Shiu family is empty. If (u2+m2,u2+(m+1)2)(u^2+m^2,u^2+(m+1)^2) were empty for infinitely many even mm with 2u+1=(m+1)22u+1=(m+1)^2, then lim sup⁡G(n)/n1/4=22\limsup G(n)/n^{1/4}=2\sqrt{2} and Bambah–Chowla would be sharp. Checked even m≤8000m\le 8000: the only empty open interval is m=2m=2 (n=21n=21). For m=4m=4 one already has 92+92=162=n+19^2+9^2=162=n+1. Occupied.

A bounded p=u−u′p=u-u' for every even mm. Least-pp search through m=8000m=8000 has max p=40p=40, attained at Shiu’s own example m=2862m=2862. Success measure for a fixed pp is ∼1/1+p\sim 1/\sqrt{1+p}. Independence of 1+p\sqrt{1+p} would make the bad box nonempty for any fixed PP, so bounded pp is not a proof for the tail.

Hypothesis H / any α>0\alpha>0. Shiu’s fractional-part hypothesis would give every positive coefficient. It is exactly the hard equidistribution statement he left open. Not tonight.

Empty ladders as an infinite family. Empty interiors of (u2+m2,u2+(m+1)2)(u^2+m^2,u^2+(m+1)^2) exist (the ratio champion 1493→15081493\to 1508, m=7m=7, u=38u=38). Through u=1500u=1500 they only occur for m≤14m\le 14. Small-mm leftover, not an infinite X1/4X^{1/4} lower bound.

2. The useful failure

The Shiu family is occupied, not empty. That kills the dream of a sharp 222\sqrt{2} lower bound from this family, and it is also the opening: a=3a=3 on the only infinite two-point obstruction is a search for one extra lattice point in an interval of length 2m2m.

The other useful failure is two-point a=3a=3 itself. Jameson’s a=2a=2 already holds from min⁡(hBC,(u+1)2−n)\min(h_{\mathrm{BC}},(u+1)^2-n) for every nn we checked (and Jameson proved it for all nn). The only nn that need a third point are the ladder tops sitting in a short integer window k∈[2m−2,3m+2]k\in[2m-2,3m+2]. That set is enumerable in mm.

3. The click

Write the two-point failure test as (min⁡(h,h2)+3)4≥64n(\min(h,h_2)+3)^4\ge 64n. Expand. Then:

Also m≤2 n1/4m\le\sqrt{2}\,n^{1/4}, so a bound m≤Mm\le M is a bound n≤(M/2)4n\le(M/\sqrt{2})^4. The infinite-looking problem is a finite (m,k)(m,k)-search. For each top, scan lattice points near the circle for leftover <Φ−3< \Phi-3.

The four exceptions 3,6,21,913,6,21,91 are the only unsaved tops. They are small and exact.

4. The argument, in the order it was found

  1. Fetch Green #66 and (after the #143 miss) Bloom #222. Record the published proven constant: 222\sqrt{2}, additive −2-2 (Jameson), open increment a=3a=3 (Shiu).
  2. Replay the elementary Bambah–Chowla leftover <22 n1/4+1<2\sqrt{2}\,n^{1/4}+1 on n≤105n\le 10^5. Zero failures. Two-point a=2a=2 zero failures. Two-point a=3a=3 fails on a thin set.
  3. Hunt a third lattice point on that thin set, first by scanning n≤2⋅105n\le 2\cdot 10^5. Unsaved: 3,6,21,913,6,21,91.
  4. Switch from scanning nn to enumerating Shiu ladders (u,m,t)(u,m,t). Through u=20000u=20000 (n≤4⋅108n\le 4\cdot 10^8) the unsaved set is still those four, and every saved failure has t=0t=0.
  5. Prove the integer classification: only tops, only k∈[2m−2,3m+2]k\in[2m-2,3m+2]. Check t>0t>0 count is zero through u=5000u=5000, then do the expansions.
  6. Enumerate danger-zone tops by (m,k)(m,k). Save each by a near-circle lattice search. m≤2000m\le 2000: 1 002 9931\,002\,993 tops, zero unsaved, stored witnesses independently checked. m≤8000m\le 8000: 16 011 99316\,011\,993 tops, zero unsaved.
  7. Exhaustive G(n)G(n) from a two-square table on [1,5⋅106][1,5\cdot 10^6]: a=3a=3 fails exactly at {1,3,6,21,91}\{1,3,6,21,91\}; a=2a=2 fails nowhere.

The range m≤8000m\le 8000 is n≤1.024⋅1015n\le 1.024\cdot 10^{15}.

Replay commands: compute/README.md.

6. What is proved vs still open

Proved (computer-assisted, this folder). G(n)<22 n1/4−3G(n)<2\sqrt{2}\,n^{1/4}-3 for 2≤n≤1.024⋅10152\le n\le 1.024\cdot 10^{15} except {3,6,21,91}\{3,6,21,91\}. Classification is exact. Witnesses for m≤2000m\le 2000 are independently checked. The m≤8000m\le 8000 search uses the same integer lattice scan.

Still open.

We did not beat 1/101/10. We did beat Jameson’s published additive −2-2, on an explicit range, with four exact exceptions and a replayable checker.