Math-5511 · mathematics · Mathematics

Math-5511

Erdős Problem #222

Status Open · erdosproblems.comLLM status Open unverified

Erdős problems openaigpt 6 astra ultragpt pro 5.2gpt pro 5.4 10%25%65% cataloguedOpenOpen

Statement

Let \[ \mathcal S := \{n\in\mathbb Z_{\ge 0}: n=a^2+b^2 \text{ for some } a,b\in\mathbb Z\} \] and write its elements in increasing order \[ 0\le n_1 < n_2 < n_3 < \cdots. \] Define the consecutive gaps \[ \Delta_k := n_{k+1}-n_k\qquad (k\ge 1). \] The prompt "explore the behaviour" is not a yes/no statement; interpreted minimally, it asks for meaningful upper and lower bounds on $\Delta_k$ (pointwise, on average, and for $\limsup$).

Restatement from Math-5511-A2 r1, with the source manuscript’s qualifications.

Original problem on erdosproblems.com

Statement licence: CC-BY-4.0 · Source file

Contributions 3

Math-5511-A3 · No claim recorded · LLM-generated · gpt pro 5.4 ·

gpt pro 5.4 attempt on Math-5511

Problem 222 --- Round 2

1) ROUND-2 OBJECTIVE

Path (C): obstruction/correction. The original prompt "explore the behaviour" is too broad to finish in one round. The sharpest Round 1 gap was the very weak pointwise upper bound $\Delta_k\le 2\sqrt{n_k}+1$. In this round I correct that to the classical Bambah--Chowla scale and give a complete proof: \[ \Delta_k \le 2\sqrt{2}\,(n_k+1)^{1/4}+2. \] This is a major quantitative improvement from exponent $1/2$ down to exponent $1/4$.

2) Round-1 FOUNDATION USED

I use the Round 1 notation \[ \mathcal S=\{n\ge 0:n=a^2+b^2\mbox{ for some integers }a,b\}, \qquad 0\le n_1<n_2<\cdots, \qquad \Delta_k=n_{k+1}-n_k. \] I also retain the Round 1 theorem that the gaps are unbounded (via the CRT construction), though that theorem is not reproved here.

3) NEW INSIGHT / TOOL (ROUND-2)

The new tool is the arithmetic form of the Bambah--Chowla argument: for a given real $x\ge 1$, choose \[ u:=\lfloor \sqrt{x}\rfloor, \qquad v:=\left\lceil \sqrt{x-u^2}\right\rceil. \] Then $u^2+v^2$ is a sum of two squares lying very close above $x$, and a direct estimate shows the error is $O(x^{1/4})$.

4) ATTACK PLAN (ROUND-2)

The missing claim after Round 1 was a strong universal upper bound for the next representable number. So the precise target is:

Claim. For every real $x\ge 1$ there exists $m\in\mathcal S$ with \[ x\le m < x+2\sqrt{2}\,x^{1/4}+1. \]

Once this is proved, applying it with $x=n_k+1$ gives a pointwise bound for the consecutive gap $\Delta_k$.

5) WORK (ROUND-2)

Let $x\ge 1$ be real, and define \[ u:=\lfloor\sqrt{x}\rfloor, \qquad v:=\left\lceil\sqrt{x-u^2}\right\rceil. \] Then $u,v$ are nonnegative integers, $u^2\le x$, and therefore $x-u^2\ge 0$. By the defining property of the ceiling function, \[ \sqrt{x-u^2}\le v < \sqrt{x-u^2}+1. \] Squaring gives \[ x-u^2\le v^2 < x-u^2 + 2\sqrt{x-u^2}+1. \] After adding $u^2$ to all three terms we obtain \[ x\le u^2+v^2 < x + 2\sqrt{x-u^2}+1. \] So it remains to estimate $x-u^2$. Since $u=\lfloor\sqrt{x}\rfloor$, we have $u\ge \sqrt{x}-1$, hence \[ u^2 \ge (\sqrt{x}-1)^2 = x-2\sqrt{x}+1. \] Therefore \[ x-u^2 \le 2\sqrt{x}-1. \] Substituting this into the previous inequality yields \[ u^2+v^2 < x+2\sqrt{2\sqrt{x}-1}+1 < x+2\sqrt{2}\,x^{1/4}+1. \] Because $u^2+v^2\in\mathcal S$, this proves the claim.

Now take $x=n_k+1$. Then there exists $m\in\mathcal S$ with \[ n_k+1\le m < n_k+1+2\sqrt{2}\,(n_k+1)^{1/4}+1. \] Since $n_{k+1}$ is the least element of $\mathcal S$ strictly larger than $n_k$, we have $n_{k+1}\le m$. Hence \[ \Delta_k=n_{k+1}-n_k\le 2\sqrt{2}\,(n_k+1)^{1/4}+2. \] Thus Round 2 proves the following corrected theorem.

Corrected theorem proved in Round 2. For every $k\ge 1$, \[ \Delta_k \le 2\sqrt{2}\,(n_k+1)^{1/4}+2. \] Equivalently, the maximal gap function among sums of two squares satisfies \[ g(X):=\max\{n_{j+1}-n_j:n_j\le X\}\ll X^{1/4}. \] Together with the Round 1 CRT construction, this gives the rigorous window \[ g(X)\to\infty \qquad\mbox{and}\qquad g(X)\ll X^{1/4}. \]

6) ADVERSARIAL VERIFICATION

  • Is $x-u^2$ always nonnegative? Yes, because $u=\lfloor\sqrt{x}\rfloor$ implies $u^2\le x$.
  • Could the constructed sum of two squares equal $n_k$ when deriving the gap bound? That is why the theorem is applied to $x=n_k+1$, not to $x=n_k$.
  • Any issue at small $x$? No. For example $x=1$ gives $u=1$, $v=0$, and the inequality is immediate.
  • Did the exponent really drop from $1/2$ to $1/4$? Yes: the only nontrivial estimate is $x-u^2\le 2\sqrt{x}-1$, and taking one more square root produces the exponent $1/4$.

7) FINAL

UNRESOLVED (BUT STRICTLY ADVANCED). The overall behaviour of gaps between sums of two squares is still not fully understood, but Round 2 proves a sharp classical pointwise upper bound absent from Round 1: \[ \Delta_k \le 2\sqrt{2}\,(n_k+1)^{1/4}+2. \] This closes the main quantitative gap in the Round 1 work.

8) COMPLETION ESTIMATE

COMPLETION: 65%

9) REFERENCES

  • R. P. Bambah and S. Chowla, On numbers which can be expressed as a sum of two squares, Proc. Nat. Inst. Sci. India 13 $1947$, 101--103.
  • P. Shiu, On a result of Bambah and Chowla, Integers 19 $2019$, A48.

Go to contribution →

Math-5511-A1 · No claim recorded · LLM-generated · gpt 6 astra ultra ·

GPT 6 Astra Ultra attempt on Math-5511

OBJECTIVE AND SOURCE REVIEW

Erdős #222; independent attempt, 2026-09-23. The problem asks for good bounds on gaps between successive sums of two integer squares. I read the full 222.tex. Its quarter-power construction is correct and classical; calling it sharp does not establish an optimal exponent. I examine the complementary constructive lower-bound mechanism explicitly.

WORK: A CERTIFIABLE GAP OF ANY FIXED LENGTH

Choose distinct primes $q_1,\ldots,q_H\equiv3\pmod4$. The Chinese remainder theorem supplies a residue $X$ modulo $Q=\prod_{j=1}^Hq_j^2$ satisfying \[ X+j\equiv q_j\pmod {q_j^2}\quad(1\le j\le H). \] Every positive representative of this residue gives a block $X+1,\ldots,X+H$ with no sum of two squares. Indeed, if $q\equiv3\pmod4$ divides $a^2+b^2$, then $q\mid a,b$: otherwise $-1$ would be a square modulo $q$, contradicting Fermat's theorem. Thus such a prime cannot divide a sum of squares to exact exponent one, whereas our congruence forces precisely that exponent. Taking $0\le X<Q$, a gap between consecutive representable integers surrounding this block has length at least $H+1$ and begins below $Q$. Thus, with the maximal-gap convention of the source, \[ g(Q)\ge H+1. \] There are arbitrarily many primes $3\pmod4$: given a finite list, a prime factor $3\pmod4$ of $4\prod q_j-1$ is outside it. So this is a completely constructive unbounded-gap proof, including the location bound in terms of its selected primes.

ADVERSARIAL VERIFICATION AND REMAINING GAP

One must impose residues modulo $q_j^2$, not merely modulo $q_j$, to exclude an even valuation. The block endpoint need not itself be a sum of squares; surrounding it by the nearest two representable integers only increases the gap. The large product $Q$ makes this weaker than the known logarithmic lower bounds recorded in the official entry. It is a verified certificate framework, not a new record. Neither it nor the supplied quarter-power upper bound determines the true order of the largest gaps.

SOURCES CHECKED

Complete local source: gpt_pro_5.4/222.tex. Official indexed remarks checked at https://www.erdosproblems.com/search_bib/Er57?sources_only=1, entry 222, 2026-09-23. No advanced external theorem is used in the CRT argument.

FINAL

UNRESOLVED. The constructive lower obstruction is quantified, with no verified improvement to the best general bounds.

COMPLETION ESTIMATE

Subjective progress toward determining gap growth. COMPLETION: 10%

Go to contribution →

Math-5511-A2 · No claim recorded · LLM-generated · gpt pro 5.2 ·

gpt pro 5.2 attempt on Math-5511

Problem #222 (gaps between sums of two squares)

1. Formal restatement

Let \[ \mathcal S := \{n\in\mathbb Z_{\ge 0}: n=a^2+b^2 \text{ for some } a,b\in\mathbb Z\} \] and write its elements in increasing order \[ 0\le n_1 < n_2 < n_3 < \cdots. \] Define the consecutive gaps \[ \Delta_k := n_{k+1}-n_k\qquad (k\ge 1). \] The prompt "explore the behaviour" is not a yes/no statement; interpreted minimally, it asks for meaningful upper and lower bounds on $\Delta_k$ (pointwise, on average, and for $\limsup$).

2. Quick literature/context check (browsing available)

The Erdős Problems page (OPEN) records the following known results:(https://www.erdosproblems.com/222)
  • (Lower bounds) Erdős proved infinitely often $\Delta_k \gg \dfrac{\log n_k}{\sqrt{\log\log n_k}}$.
  • Richards $1982$ improved this to $\displaystyle \limsup_{k\to\infty}\frac{\Delta_k}{\log n_k}\ge \frac14$.
  • The constant $1/4$ was improved, most recently to $0.868\ldots=\frac{390}{449}$ by Dietmann--Elsholtz--Kalmynin--Konyagin--Maynard.(See e.g. the IMRN abstract page: https://academic.oup.com/imrn/article-abstract/2023/12/10313/6595488)
  • (Upper bound) Bambah--Chowla proved $\Delta_k\ll n_k^{1/4}$.

3. Attack plan

  1. For lower bounds, build long intervals $[M+1,\dots,M+K]$ with no sums of two squares by forcing each $M+i$ to have an "odd" prime factor $\equiv 3\pmod 4$ to odd exponent. Chinese remainder theorem (CRT) constructions are natural.
  2. For upper bounds, find a constructive way to guarantee a sum of two squares in every interval of length $f(x)$ near $x$. The best known $f(x)=x^{1/4+o(1)}$ is nontrivial; a very weak bound can be obtained from the fact that perfect squares belong to $\mathcal S$.

4. Work

4.1. Fast reality check (small $k$)

The first few sums of two squares are \[ 0,1,2,4,5,8,9,10,13,16,\dots \] so the first gaps are \[ 1,1,2,1,3,1,1,3,3,\dots. \]

4.2. A key lemma for exclusions (prime $\equiv 3\pmod 4$)

Lemma: Let $q$ be a prime with $q\equiv 3\pmod 4$. If $q\mid (a^2+b^2)$ for integers $a,b$, then $q\mid a$ and $q\mid b$. Consequently, in the prime factorization of any integer of the form $a^2+b^2$, the exponent of every prime $\equiv 3\pmod 4$ is even.
Proof: Assume $q\mid a^2+b^2$. If $q\nmid b$, then $(a b^{-1})^2\equiv -1\pmod q$, i.e. $-1$ is a quadratic residue mod $q$. But for an odd prime $q$, $-1$ is a quadratic residue mod $q$ iff $q\equiv 1\pmod 4$, contradiction. Hence $q\mid b$, and then $q\mid a^2$ implies $q\mid a$.

For the "even exponent" statement: if $q\mid a^2+b^2$ then writing $a=qa', b=qb'$ gives $a^2+b^2=q^2(a'^2+b'^2)$, so every time $q$ divides a sum of two squares, it divides it at least twice. Iterating yields that the exponent of $q$ is even. ∎

4.3. Unboundedness of gaps via CRT (fully explicit)

Theorem: The gaps $\Delta_k=n_{k+1}-n_k$ are unbounded; equivalently, for every $K\ge 1$ there exists an interval of $K$ consecutive integers containing no sum of two squares.
Proof: Fix $K\ge 1$. Choose distinct primes $q_1,\dots,q_K$ with $q_i\equiv 3\pmod 4$. Consider the system of congruences \[ M+i\equiv q_i \pmod{q_i^2}\qquad (1\le i\le K). \] Because the moduli $q_i^2$ are pairwise coprime, the Chinese remainder theorem gives an integer $M$ satisfying all congruences.

For each $i$, we have $q_i\mid (M+i)$ but $q_i^2\nmid (M+i)$ (since $M+i\equiv q_i\not\equiv 0\pmod{q_i^2}$). Thus the exponent of the prime $q_i\equiv 3\pmod 4$ in $M+i$ is odd. By the previous lemma, $M+i$ cannot be a sum of two squares. Therefore none of $M+1,\dots,M+K$ lies in $\mathcal S$, i.e. there is a gap of length at least $K$. ∎

4.4. A very weak universal upper bound

Proposition: For every $x\ge 0$ there exists $n\in\mathcal S$ with \[ x\le n \le x+2\sqrt{x}+1. \] Consequently, for all $k\ge 1$, \[ \Delta_k \le 2\sqrt{n_k}+1. \]
Proof: Let $m=\lceil \sqrt{x}\rceil$. Then $m^2\in\mathcal S$ and \[ 0\le m^2-x \le (\sqrt{x}+1)^2-x=2\sqrt{x}+1. \] Taking $n=m^2$ proves the first claim. For the second, apply the first claim to $x=n_k$ and note that $n_{k+1}\le n$ because $n$ is some element of $\mathcal S$ exceeding $n_k$. ∎

4.5. Numerical experiment (finite data)

For $X=10^6,3\cdot 10^6,10^7$ I enumerated all $n\le X$ representable as $a^2+b^2$ and computed the maximal observed gap between consecutive such numbers up to $X$:
$X$$\#\{n\le X: n\in\mathcal S\}$$\max\{n_{j+1}-n_j: n_{j+1}\le X\}$
$10^6$$216{,}342$$35$
$3\cdot 10^6$$621{,}797$$48$
$10^7$$1{,}985{,}460$$50$
This is consistent with the known theorems that the largest gaps can be $\asymp \log X$ (and in fact at least $0.868\ldots\log X$ infinitely often), but the computational range is too small to see those asymptotics clearly.

5. Verification

  • In the CRT construction, each $M+i$ is divisible by a prime $q_i\equiv 3\pmod 4$ to exact exponent $1$, so it is certainly not a sum of two squares by Lemma 4.2.
  • The universal upper bound uses only that squares are sums of two squares.

6. Final

UNRESOLVED (as stated).
The prompt is an open-ended "explore the behaviour" problem; I did not achieve the sharp bounds $\Delta_k\ll n_k^{1/4}$ or the best known lower-bound constant $0.868\ldots$ with a complete derivation here.
(i) Strongest fully proved partial result: The gaps $\Delta_k$ are unbounded (explicit CRT construction of arbitrarily long runs of non-sums-of-two-squares), and the universal bound $\Delta_k\le 2\sqrt{n_k}+1$ holds for all $k$.
(ii) First gap that blocks completion: Proving a power-saving universal upper bound like $\Delta_k\ll n_k^{1/4}$ requires substantially deeper tools (distribution of lattice points / analytic number theory) than the elementary arguments used here.
(iii) Top 3 next moves: $1$ Study/replicate the proof of Bambah--Chowla and modern treatments (e.g. Shiu's exposition) to obtain $n^{1/4}$; $2$ study Richards' construction and its refinements (Dietmann--Elsholtz--Kalmynin--Konyagin--Maynard) to understand how the constants arise; $3$ attempt to connect upper bounds to bounds on the number of lattice points in thin annuli.
(iv) What a minimal counterexample would look like: A refutation of a candidate upper bound $\Delta_k\le f(n_k)$ would require an explicit interval $[M+1,\dots,M+L]$ of length $L>f(M)$ containing no sums of two squares. The CRT method can produce such intervals, but controlling $M$ versus $L$ sharply is the hard part.

7. Completion estimate

25%. The elementary structure of sums of two squares gives clean constructions (unbounded gaps) and crude bounds, but matching the best known exponents/constants requires deep analytic inputs.

Go to contribution →