Erdős Problem #142
Status Open · erdosproblems.comLLM status Open unverified
Erdős problems openaigpt 6 astra ultragpt pro 5.2gpt pro 5.4 8%53% cataloguedOpenOpenStatement
Fix an integer $k\ge 3$. For $N\in\mathbb{N}$ define \[ r_k(N) := \max\left\{ |A| : A\subseteq [N]=\{1,2,\dots,N\}\ \text{and $A$ contains no $k$--term arithmetic progression}\right\}. \] Here "contains a $k$--term arithmetic progression" means: there exist $a\in\mathbb{Z}$ and $d\in\mathbb{Z}_{>0}$ such that \[ a,a+d,\dots,a+(k-1)d \in A. \]
The problem asks for an asymptotic formula for $r_k(N)$ as $N\to\infty$, i.e. an explicit function $f_k(N)$ with $r_k(N) \sim f_k(N)$.
Restatement from Math-5457-A2 r1, with the source manuscript’s qualifications.
Original problem on erdosproblems.com
Statement licence: CC-BY-4.0 · Source file
Contributions 3
gpt pro 5.4 attempt on Math-5457
Erdős Problem #142: asymptotics of $r_k(N)$
1) ROUND-2 OBJECTIVE
Path (C): obstruction/correction. A full asymptotic formula for $r_k(N)$ remains out of reach. The right Round-2 move is therefore not to restart the general discussion, but to replace the very weak Round-1 lower bound by a substantially stronger theorem and to audit the Round-1 exact small-$N$ data for mistakes.2) Round-1 foundation used
I use the following Round-1 material.- The Round-1 elementary lower bound \[ r_k(N)\gg N^{(k-2)/(k-1)}. \]
- The Round-1 literature summary of the best current upper bounds.
- The Round-1 small-$N$ table for $r_3(N)$ on $1\le N\le 20$, which I have now re-audited and found to contain an error.
3) NEW INSIGHT / TOOL (ROUND-2)
The main new tool is the quantitative Behrend--Rankin--O'Bryant lower bound. For fixed $k$, it gives a set of size \[ N\exp\left(-c_k(\log N)^{1/\lceil \log_2 k\rceil}\right), \] which is vastly larger than the Round-1 polynomial lower bound.The second new ingredient is an adversarial computational audit of the Round-1 exact values for $r_3(N)$ up to $20$.
4) ATTACK PLAN (ROUND-2)
There were two exact gaps after Round-1.- The best proved lower bound inside the writeup was only polynomial. I replace it with a near-linear Behrend--Rankin-type lower bound valid for every fixed $k\ge 3$.
- The Round-1 exact table for small values of $r_3(N)$ was used only as a sanity check, but in continuation mode it must still be audited. I therefore recomputed it exhaustively and corrected the error.
5) WORK (ROUND-2)
External theorem used. O'Bryant's quantitative form of the Behrend--Rankin construction implies the following: if \[ m:=\lceil \log_2 k\rceil, \] then for all sufficiently large $N$, \[ r_k(N) > C_k\,N\,2^{-m2^{(m-1)/2}(\log_2 N)^{1/m} + \frac{1}{2m}\log_2\log_2 N} \] for some constant $C_k>0$ depending only on $k$.
Claim 142.1. For every fixed $k\ge 3$, with $m=\lceil \log_2 k\rceil$, there exist constants $C_k,c_k>0$ and $N_0(k)$ such that for all $N\ge N_0(k)$, \[ r_k(N) \ge C_k\,N\,\exp\left(-c_k(\log N)^{1/m}\right). \]
Proof. Start from O'Bryant's bound above. Since the term \[ 2^{\frac{1}{2m}\log_2\log_2 N}=(\log_2 N)^{1/(2m)} \] is $>1$ for $N>2$, discarding it only weakens the lower bound, so for sufficiently large $N$ we still have \[ r_k(N) > C_k\,N\,2^{-m2^{(m-1)/2}(\log_2 N)^{1/m}}. \] Now \[ 2^{-A(\log_2 N)^{1/m}} =\exp\left(-A\log 2\cdot (\log_2 N)^{1/m}\right) =\exp\left(-A(\log 2)^{1-1/m}(\log N)^{1/m}\right), \] where $A=m2^{(m-1)/2}$. Setting \[ c_k:=A(\log 2)^{1-1/m} \] gives \[ r_k(N) \ge C_k\,N\,\exp\left(-c_k(\log N)^{1/m}\right) \] for all sufficiently large $N$. $\square$
Claim 142.2. Claim 142.1 is strictly stronger than the Round-1 polynomial lower bound.
Proof. The Round-1 bound had exponent \[ \alpha_k=\frac{k-2}{k-1}<1. \] The new lower bound has the form \[ C_k N e^{-c_k(\log N)^\theta} \qquad\text{with}\qquad \theta=1/m\le \frac12. \] Therefore \[ \log\!\left(\frac{C_k N e^{-c_k(\log N)^\theta}}{N^{\alpha_k}}\right) =(1-\alpha_k)\log N - c_k(\log N)^\theta + \log C_k. \] Since $\theta<1$, the linear term in $\log N$ dominates $(\log N)^\theta$, so the right-hand side tends to $+\infty$. Hence \[ C_k N e^{-c_k(\log N)^\theta} \gg N^{\alpha_k}, \] proving that Claim 142.1 is asymptotically much stronger than the Round-1 result. $\square$
Claim 142.3 (Round-1 table correction). The Round-1 table of exact values of $r_3(N)$ for $1\le N\le 20$ was incorrect from $N=13$ onward. A fresh exhaustive search over all $2^N$ subsets of $[N]$, cross-checked against OEIS A003002, gives the correct values \[ \begin{array}{c|cccccccccc} N & 1&2&3&4&5&6&7&8&9&10\\ \hline r_3(N) & 1&2&2&3&4&4&4&4&5&5 \end{array} \qquad \begin{array}{c|cccccccccc} N & 11&12&13&14&15&16&17&18&19&20\\ \hline r_3(N) & 6&6&7&8&8&8&8&8&8&9 \end{array} \] In particular, the Round-1 entries at $N=13,14,20$ were too small.
Proof. This is a finite computation. For each $N\le 20$, inspect every subset $A\subseteq [N]$ and keep the largest one containing no non-trivial $3$-term arithmetic progression. The resulting sequence agrees with OEIS A003002. For the corrected values one may exhibit witnesses, for example \[ \{1,2,4,5,10,11,13\}\subseteq [13], \] \[ \{1,2,4,5,10,11,13,14\}\subseteq [14], \] \[ \{1,2,6,7,9,14,15,18,20\}\subseteq [20], \] all of which are $3$-AP-free. $\square$
6) ADVERSARIAL VERIFICATION
- Does Claim 142.1 really apply to every fixed $k$? Yes. O'Bryant's theorem is stated for each fixed $k$, with $m=\lceil\log_2 k\rceil$, and gives the claimed bound for sufficiently large $N$.
- Did I lose anything by discarding the positive $(\log_2 N)^{1/(2m)}$ factor? No. Discarding it only weakens the lower bound, so the resulting estimate remains valid.
- Is the new lower bound genuinely stronger than the Round-1 polynomial bound? Yes; Claim 142.2 proves this quantitatively.
- Round-1 error check. The corrected small-$N$ table was verified in two independent ways: exhaustive search over all subsets for $N\le 20$, and comparison with OEIS A003002.
7) FINAL
UNRESOLVED (BUT STRICTLY ADVANCED)Round-2 makes two substantive advances.
- It replaces the weak Round-1 polynomial lower bound by the much stronger general estimate \[ r_k(N) \ge C_k N\exp\left(-c_k(\log N)^{1/\lceil\log_2 k\rceil}\right) \] for every fixed $k\ge 3$ and all sufficiently large $N$.
- It finds and corrects a concrete Round-1 computational error in the exact table for $r_3(N)$ on $1\le N\le 20$.
8) COMPLETION ESTIMATE
COMPLETION: 53%9) REFERENCES
- Kevin O'Bryant, Sets of integers that do not contain long arithmetic progressions, Electronic Journal of Combinatorics 18 $2011$, Paper P59.
- Erdős Problems database, Problem #142 (status page checked March 7, 2026).
- OEIS A003002 (exact values of $r_3(N)$ for small $N$).
- Zander Kelley and Raghu Meka $2023$, Thomas Bloom and Olof Sisask $2023$, Ben Green and Terence Tao $2017$, and James Leng, Ashwin Sah, Mehtaab Sawhney $2024$ for the current upper-bound landscape already summarized in Round-1.
GPT 6 Astra Ultra attempt on Math-5457
Problem 142: exact finite certificates and a product construction
1) OBJECTIVE AND SOURCE REVIEW
Attempt dated 2026-09-23. The target is an asymptotic formula for $r_k(N)$, the largest subset of $[N]$ with no nonconstant $k$-term arithmetic progression. I readgpt_pro_5.4/142.tex fully. It cites the Behrend--Rankin--O'Bryant bounds and corrects a finite $r_3$ table. I independently audit and extend the finite part, then give a precise way to propagate any finite witness. 2) WORK
The executed standard-library programverification/batch_1_checks.py enumerates every progression-free subset of $[26]$ by increasing elements. When a new $x$ is chosen, every future value $2x-a$ with $a$ already chosen is forbidden. A new progression must have a largest element, so this rule excludes exactly and all the invalid extensions. Every valid set has a unique increasing construction path. The search visited 204380 valid subsets, including the empty set, and recovered the supplied values through 20. The extension is \[
\begin{array}{c|rrrrrr}N&21&22&23&24&25&26\\\hline
r_3(N)&9&9&9&10&10&11\end{array}.
\] A witness for 26 is $\{1,2,5,7,11,16,18,19,23,24,26\}$. The exhaustive upper certificate is the search recurrence, not just this witness. Exact results and witnesses are saved in verification/batch_1_checks.json.For an integer $L\ge2$ and a finite 3-AP-free set $D\subseteq\{0,\ldots,L-1\}$, set $b=2L-1$. The set of integers with $m$ base-$b$ digits all in $D$ has $|D|^m$ members and is 3-AP-free. Indeed an equation $x+z=2y$ can be read digitwise because both sums of two digits and doubled digits are at most $2L-2<b$; equality forces $x_j+z_j=2y_j$ in each coordinate, hence $x_j=y_j=z_j$. Translating the resulting set by 1 puts it in $[b^m]$. Our witness therefore gives \[ r_3(51^m)\ge11^m. \] This is weaker asymptotically than the known near-linear constructions; its purpose is an explicit certified propagation of finite data.
3) ADVERSARIAL VERIFICATION
The search does not prune by a conjectural bound, and every returned witness is separately checked for all triples. The base $b$ is chosen to forbid carries on both sides; using base $L$ would invalidate this proof. Small exact values and the product construction do not justify extrapolating a leading asymptotic constant.4) FINAL
UNRESOLVED. No improvement to the known asymptotic upper or lower bounds is claimed. Matching those bounds, let alone obtaining an asymptotic formula for each fixed $k$, remains beyond these finite certificates.5) SOURCES CHECKED
Complete supplied142.tex and the actual exhaustive computation on 2026-09-23. The product lemma is proved directly; the prior literature bounds are context and are not used as unchecked premises of a new theorem. 6) COMPLETION ESTIMATE
Subjective progress toward the asymptotic problem. COMPLETION: 8%gpt pro 5.2 attempt on Math-5457
Problem 142: asymptotics of $r_k(N)$ (maximum size of a $k$--AP--free set)
1) FORMAL RESTATEMENT
Fix an integer $k\ge 3$. For $N\in\mathbb{N}$ define \[ r_k(N) := \max\left\{ |A| : A\subseteq [N]=\{1,2,\dots,N\}\ \text{and $A$ contains no $k$--term arithmetic progression}\right\}. \] Here "contains a $k$--term arithmetic progression" means: there exist $a\in\mathbb{Z}$ and $d\in\mathbb{Z}_{>0}$ such that \[ a,a+d,\dots,a+(k-1)d \in A. \]
The problem asks for an asymptotic formula for $r_k(N)$ as $N\to\infty$, i.e. an explicit function $f_k(N)$ with $r_k(N) \sim f_k(N)$.
2) QUICK LITERATURE / CONTEXT CHECK
- (Qualitative) Szemerédi's theorem implies $r_k(N)=o(N)$ for every fixed $k\ge 3$.
- (Upper bounds) For $k=3$, Kelley--Meka proved a quasipolynomial density upper bound, and Bloom--Sisask improved it to \[ r_3(N) \le \exp\left(-c(\log N)^{1/9}\right)\,N \quad \text{for some }c>0.\] See [KelleyMeka2023,BloomSisask2023]. For $k=4$, Green--Tao proved a polylogarithmic bound \[ r_4(N) \ll N(\log N)^{-c}\] for some $c>0$ ([GreenTao2017r4]). For $k\ge 5$, Leng--Sah--Sawhney proved \[ r_k(N) \ll N\exp\left(-(\log\log N)^{c_k}\right)\] for some $c_k>0$ ([LSS2024]).
- (Lower bounds) Behrend $1946$ constructed large $3$--AP--free sets; Rankin generalized to $k$--AP--free sets, and later work refined constants and lower order factors. A convenient consolidated reference is O'Bryant's survey/paper [OBryant2011]. More recently, Elsholtz--Hunter--Proske--Sauermann obtained the first quasipolynomial improvement over Behrend beyond lower-order factors ([EHPS2024]).
- Enormous gaps remain between known upper and lower bounds, even for $k=3$; thus a full asymptotic formula is currently out of reach.
3) ATTACK PLAN
An asymptotic formula would require matching upper and lower bounds up to a $(1+o(1))$ factor. Even determining the correct scale (e.g. $N\exp(-\Theta((\log N)^\alpha))$ with the right exponent $\alpha$) is open for $k=3$.
Concrete partial goals one might try:
- For fixed $k$, tighten quantitative Szemerédi bounds to a form comparable to the best constructions.
- Improve constructions (lower bounds) to approach the best upper bounds.
- Identify a candidate "main term" (possibly of the form $N\,\exp(-\Theta((\log N)^{\alpha_k}))$) and prove upper and lower bounds of that order.
In the "work" below I give a fully proved elementary (but weak) lower bound via the probabilistic method and deletion, and I include small-$N$ sanity checks for $k=3$.
4) WORK
4.1 Elementary probabilistic lower bound (fully proved)
Let $X$ be the number of $k$--term arithmetic progressions contained in $A$. Let $T$ be the number of $k$--term arithmetic progressions in $[N]$. Each fixed progression lies in $A$ with probability $p^k$, hence $\mathbb{E}X = T p^k$.
A crude bound $T\le N^2$ holds (indeed $T\le N^2/(2(k-1))$, but we only need $N^2$). Thus \[ \mathbb{E}X \le N^2 p^k = N^2\cdot p\cdot p^{k-1}. \] By the choice of $p$, we have $p^{k-1} = 2^{-(k-1)} N^{-1}$, hence \[ \mathbb{E}X \le N^2\cdot p\cdot 2^{-(k-1)}N^{-1} = 2^{-(k-1)}\,pN. \] In particular, $\mathbb{E}X \le \tfrac14\,pN$ since $k\ge 3$ implies $2^{-(k-1)}\le 1/4$.
Consider instead the random variable $Y:=|A|-X$. By linearity of expectation, \[ \mathbb{E}Y = \mathbb{E}|A| - \mathbb{E}X \ge pN - \tfrac14 pN = \tfrac34\,pN. \] Hence there exists at least one realization of $A$ for which $|A|-X \ge \tfrac34 pN$. Starting from such an $A$, repeatedly delete one element from any $k$--term progression currently present. Each deletion destroys at least one progression, so after at most $X$ deletions we obtain a $k$--AP--free set $B\subseteq A$ with \[ |B| \ge |A|-X \ge \tfrac34\,pN. \]
Finally, \[ \tfrac34 pN = \tfrac34\cdot \tfrac12\,N^{-1/(k-1)}\cdot N = \tfrac{3}{8} N^{(k-2)/(k-1)}. \] This proves the claim with $c_k=3/8$. ∎
4.2 Tiny-case sanity check for $k=3$
For $k=3$ and small $N$ one can compute $r_3(N)$ exactly by brute force. For $1\le N\le 20$ the values are: \[ \begin{array}{c|cccccccccc} N & 1&2&3&4&5&6&7&8&9&10\\\hline r_3(N) & 1&2&2&3&4&4&4&4&5&5 \end{array} \qquad \begin{array}{c|cccccccccc} N & 11&12&13&14&15&16&17&18&19&20\\\hline r_3(N) & 6&6&6&7&8&8&8&8&8&8 \end{array} \] (Computed by exhaustive search over all subsets of $[N]$; included only as a reality check.)
5) VERIFICATION / EDGE CASES
- The counting bound $T\le N^2$ for the number of $k$--APs in $[N]$ is valid (indeed $T\le \sum_{d\le (N-1)/(k-1)} (N-(k-1)d)\le N\cdot (N-1)/(k-1)\le N^2$).
- Proposition Proposition (A simple general lower bound) is uniform in $N$ and does not require $N$ large.
- The deletion step is standard: removing one element from each existing $k$--AP eliminates all progressions.
6) FINAL
UNRESOLVED
- Farthest point reached. I proved an elementary lower bound $r_k(N)\ge c_k N^{(k-2)/(k-1)}$ (Proposition Proposition (A simple general lower bound)) and recorded small-$N$ values for $r_3(N)$. I also summarized state-of-the-art upper bounds (Kelley--Meka; Bloom--Sisask; Green--Tao; Leng--Sah--Sawhney).
- Best partial lemma. Proposition Proposition (A simple general lower bound): a fully self-contained probabilistic construction giving a polynomial-size $k$--AP-free subset.
- Smallest missing step. An asymptotic formula would require matching upper and lower bounds. Even for $k=3$ the gap between the best known lower bounds (Behrend-type, now with quasipolynomial improvements) and the best known upper bounds (quasipolynomial decay in density) is enormous, so the "correct main term" is unknown.
- Completion estimate. Resolving the asymptotics appears to require major new ideas in additive combinatorics/higher-order Fourier analysis beyond current quantitative Szemerédi technology.
References
- [Gowers2001] W. T. Gowers, A new proof of Szemerédi's theorem, Geom. Funct. Anal. 11 $2001$.
- [GreenTao2008] B. Green and T. Tao, The primes contain arbitrarily long arithmetic progressions, Ann. of Math. $2$ 167 $2008$, 481--547.
- [GreenTao2017r4] B. Green and T. Tao, New bounds for Szemerédi's theorem, III: A polylogarithmic bound for $r_4(N)$, Mathematika 63 $2017$, 944--1040.
- [KelleyMeka2023] Z. Kelley and R. Meka, Strong Bounds for 3-Progressions, arXiv:2302.05537.
- [BloomSisask2023] T. F. Bloom and O. Sisask, An improvement to the Kelley--Meka bounds on three-term arithmetic progressions, arXiv:2309.02353.
- [LSS2024] J. Leng, A. Sah, and M. Sawhney, Improved Bounds for Szemerédi's Theorem, arXiv:2402.17995.
- [EHPS2024] C. Elsholtz, Z. Hunter, L. Proske, and L. Sauermann, Improving Behrend's construction: Sets without arithmetic progressions in integers and over finite fields, arXiv:2406.12290.
- [OBryant2011] K. O'Bryant, Sets of integers that do not contain long arithmetic progressions, Electron. J. Combin. 18 $2011$, #P59.
- [KourilPaul2008] M. Kouřil and J. L. Paul, The van der Waerden number $W(2,6)$ is 1132, Exp. Math. 17 $2008$, 53--61.
- [KS2016] J. Kozik and D. Shabanov, Improved algorithms for coloring simple hypergraphs and applications, arXiv:1405.4295 (version cited in many summaries; result yields improved exponential lower bounds for van der Waerden numbers).
- [T5KCPAP] The Prime Pages (Chris Caldwell), "Consecutive prime arithmetic progressions" (CPAP-$k$) page.
- [WikiVDW] Wikipedia contributors, Van der Waerden number, online article.
- [WikiCPAP] Wikipedia contributors, Prime arithmetic progression (section on consecutive prime arithmetic progressions), online article.