ERDŐS/DAILY

← back to the ledger

ERDőS #271 · PARTIAL

Erdős problem #271 — wave8p report

Access date: 2026-07-28 (UTC). Authoritative live page: <https://www.erdosproblems.com/271>. Discussion thread: <https://www.erdosproblems.com/forum/thread/271>.

Claim labels used below

theorem/source, not reproved here.

interpretation that is not proved.

accompanying checker, with no asymptotic inference.

Page-status observations and verbatim quotations are evidence records rather than mathematical claims.

Step 0: mandatory live-page gate

I used the Bright Data browser route, not datacenter curl, to load both the problem page and its discussion thread. The live page said:

Thus none of the mandatory stop conditions fired.

Verbatim current statement

The following is copied verbatim from the live page's “View the LaTeX source” view:

Let $A(n)=\{a_0<a_1<\cdots\}$ be the sequence defined by $a_0=0$ and $a_1=n$, and for $k\geq 1$ define $a_{k+1}$ as the least positive integer such that there is no three-term arithmetic progression in $\{a_0,\ldots,a_{k+1}\}$.

Can the $a_k$ be explicitly determined? How fast do they grow?

Results recorded on the live page

\(A(3^m)\) and \(A(2\cdot3^m)\), \(m\geq0\).

\(a_k\asymp k^{\log_2 3}\) or \(a_k\asymp k^2/\log k\). No particular sequence is known on the page to satisfy the second rate; \(A(4)\), OEIS A005487, is the standard candidate.

\(a_k\leq(1/2+\epsilon)k^2\) for all sufficiently large \(k\).

comments, \[ a_k\leq \frac{(k-1)(k+2)}2+n\qquad(k\geq0). \]

All seven live comments inspected

The site itself warns that comments are not verified. In chronological order, their substantive content is:

  1. Wouter van Doorn (“Woett”, 2025-08-29) explains how Moy's argument first

yields \(a_k\leq (k+1)^2/2\) for \(k\geq2n\); the page says it was updated.

  1. williamwkcook (2025-09-07) posts a generator, checked against the first

50 OEIS terms of \(A(4)\).

  1. Nat Sothanaphan (2025-12-10) corrects indices and sharpens the counting

argument to the fully explicit bound displayed above; the page says it was updated.

  1. An unnamed display account signing as Darby (2026-01-11) reports

“\(a_{2000}=259,183\)” for \(A(4)\) and compares it with \(k^2/(2\log k)\). The indexing correction found below shows that the displayed value is the 2000th term when terms are counted from 1, i.e. \(a_{1999}\) in the live statement's zero-based notation.

  1. Thomas Bloom (2026-01-11) only explains how that account can set a display

name.

  1. Alfaiz (2026-03-02) points to Majdzade--Gholami (2020) for the canonical

\(A(1)\) formula; the page says it was updated.

  1. Thomas Bloom (2026-04-02) notes that this is only the already-recorded,

much older, base-3 observation.

None is a claimed proof, and none declares a current worker.

Primary-source literature check

I searched the exact problem notation, “Stanley sequence \(S(0,n)\),” the named references, later citations, and the arXiv API for the exact phrase “Stanley sequence.” This is a targeted search, not a proof that no obscure source exists.

Odlyzko--Stanley, Some curious sequences constructed with the greedy algorithm (1978) really defines \(S(n)=A(n)\), gives ternary tests for \(n=3^m\) and \(n=2\cdot3^m\), labels only those seeds “regular,” and gives the random heuristic leading to \(k^2/\log k\).

as Discrete Mathematics 311 (2011), 560–562, DOI 10.1016/j.disc.2010.12.019, states \(S(A,x)\geq(\sqrt2-\epsilon)\sqrt{x}\) for all sufficiently large \(x\). This is the counting-function form of the page's quadratic upper bound.

defines regular/independent Stanley sequences and proves that his regular class has Type-1 growth; it does not prove that \(A(4)\) has Type-2 growth.

arXiv:1502.06013](https://arxiv.org/abs/1502.06013) develops modular and pseudomodular sequences. It explicitly says that no Stanley sequence, including \(A(4)\), had been proved to have Type-2 growth.

arXiv:1506.07941](https://arxiv.org/abs/1506.07941), published in the Journal of Combinatorics 11 (2020), explicitly describes as a conjecture that, for \(p=3\), only \(n=3^m\) and \(n=2\cdot3^m\) give regular \(S_3(0,n)\). Its new theorems concern the substantially different \(p>3\) case.

Sothanaphan's 2025 preprint Irregular Stanley sequences plausibly do not have growth \(\Theta(k^2/\log k)\), arXiv:2512.11983v1. It exists, uses \(20{,}000\) computed terms of \(A(4)\), and presents numerical evidence for persistent peak/trough behaviour. It expressly gives a conjecture, says theoretical analysis was not attempted, and proves no asymptotic bound. In particular it is not a solution or claimed proof.

The arXiv exact-phrase query returned the relevant sequence of papers from Moy (2010/2011), Rolnick and collaborators (2014–2017), and the Sothanaphan preprint (2025). Broader web searches located no later primary source claiming to determine \(A(4)\) or prove either side of the proposed dichotomy. I therefore proceeded, but do not turn this search miss into a mathematical assertion.

An exact uniform prefix and the precise first obstruction

Write \(a_k^{(n)}\) when the seed \(n\) needs to be explicit. Let

\[ C=\left\{\phi(j):j\geq0\right\},\qquad \phi\!\left(\sum_i\epsilon_i2^i\right)=\sum_i\epsilon_i3^i, \quad \epsilon_i\in\{0,1\}. \]

Thus \(C=A(1)\), in increasing order.

Proposition (exact translated-Cantor prefix)

(a) Define

\[ x(n)=\min\{x\in C:n+2x\in C\},\qquad d(n)=n+2x(n), \]

and let \(r(n)\) be the unique integer with \(\phi(r(n))=d(n)\). These quantities exist. Then

\[ \boxed{\quad a_{j+1}^{(n)}=n+\phi(j) \quad\text{for every }0\leq j<r(n).\quad} \tag{1} \]

The next translated-canonical candidate is definitely rejected:

\[ n+d(n)\notin A(n). \tag{2} \]

Indeed, (2) is the first place where the membership decisions for the tail \(A(n)-n\) differ from those for \(C\).

Proof

(a) Suppose inductively that all decisions at offsets below \(b\) agree with \(C\). A 3-term progression ending at \(n+b\) whose first two terms are both in the translated tail has the form

\[ n+x,\ n+y,\ n+b,\qquad b=2y-x. \]

After subtracting \(n\), this is exactly the obstruction used by the greedy construction of \(C\). Consequently such an obstruction exists exactly when the canonical greedy process rejects \(b\).

(a) The only other possible progression uses the isolated original term

  1. Since 0 is the smallest term, it must be the first endpoint, and the

progression has the form

\[ 0,\ n+x,\ n+b. \]

It exists exactly when \(b=n+2x\). Before the first member of \(C\cap(n+2C)\), this adds no obstruction to a canonical member \(b\). Every nonmember of \(C\) is already rejected by a pair in the translated tail. At \(b=d(n)\), the canonical process would accept \(b\), but

\[ 0,\ n+x(n),\ n+d(n) \]

is an arithmetic progression, so \(n+d(n)\) is rejected. Induction proves (1)–(2).

The first obstruction is computable in \(O(\log n)\)

(a) Let \(n=\sum_{i=0}^{L-1}\nu_i3^i\). To find the least \(x\), use digits \(e_i\in\{0,1\}\) for \(x\), output digits \(f_i\in\{0,1\}\) for \(n+2x\), and a carry \(c_i\in\{0,1\}\):

\[ \nu_i+c_i+2e_i=f_i+3c_{i+1},\qquad c_0=0. \tag{3} \]

For each pair \((\nu_i,c_i)\) at least one of \(e_i=0,1\) makes the residue 0 or 1. Dynamic programming retains, for each outgoing carry, the least partial value \(\sum_{h\leq i}e_h3^h\). A final carry 1 is cleared with one extra output digit 1 and \(e_L=0\). Thus the automaton never dies and its least path is exactly \(x(n)\). This is the routine first_conflict_digit_dp in the checker.

(a) The construction also gives

\[ x(n)\leq\frac{3^L-1}{2},\qquad n\leq d(n)<2\cdot3^L,\qquad 2^{L-1}\leq r(n)<2^{L+1}, \quad 3^{L-1}\leq n<3^L. \tag{4} \]

Hence (1) explicitly determines \(\Theta(n^{\log_3 2})\) initial terms, uniformly in the seed \(n\).

Some exact examples are:

seed \(n\)\(x(n)\)\(d(n)\)\(r(n)\)translated terms proved by (1)
1011\(1\)
2143\(2,3,5\)
3032\(3,4\)
4043\(4,5,7\)
54137\(5,6,8,9,14,15,17\)
14134015\(14+\phi(0),\ldots,14+\phi(14)\)

All table entries follow from the digit DP and equations (1)–(3), so the table is (a); the checker also recomputes them as (d).

Sharp fixed-index corollary

(a) For every fixed \(k\geq1\),

\[ \boxed{\quad n>\phi(k-1)\ \Longrightarrow\ a_k^{(n)}=n+\phi(k-1).\quad} \tag{5} \]

For every \(k\geq2\), the threshold is sharp as a uniform assertion: at \(n=\phi(k-1)\), all earlier translated terms occur, but the proposed \(k\)-th term \(2n\) is excluded by \(0,n,2n\). Thus

\[ a_k^{(\phi(k-1))}>2\phi(k-1). \]

This gives a complete, sharp answer for every fixed index in the large-seed regime, but it does not address \(k\to\infty\) with the seed fixed.

I did not find this prefix/first-conflict formulation stated in the sources inspected. I make no publication-level novelty claim for an elementary observation.

Exact \(A(4)\) computation and two indexing corrections

The standalone checker is erdos271_wave8p_reverify.py. It uses no third-party packages.

Independent checks performed

accepting \(y\).

terms and performs set lookups, gives identical first 192 terms for every \(1\leq n\leq64\).

\(1\leq n\leq5000\).

translate, agrees with direct greedy generation for every \(1\leq n\leq1000\).

rebuilds \(2y-x\) for all \(\binom{20001}{2}=200{,}010{,}000\) accepted pairs. It checks both directions: no accepted value is covered (3-freeness), and every omitted integer from 5 through \(a_{20000}\) is covered (greedy completeness).

The full sequence certificate is

SHA256(le64(a_0..a_20000))
= 845d8b86c929fdeaa48d439f9f8db717cc572de98796d9b3b001d8615f2d7923

Here each term is encoded as one unsigned 8-byte little-endian integer.

Let

\[ q_j=\frac{a_j\log j}{j^2}. \]

The benchmark \(a_j=j^2/(2\log j)\) is \(q_j=1/2\). Exact certified checkpoints are:

zero-based \(j\)\(a_j\)\(q_j\)
1,999259,1830.492966612937
2,000262,7510.499286180537
4,9991,110,9740.378637758823
5,0001,110,9880.378499977174
8,1922,664,2730.357740121134
9,9995,159,1390.475264150844
10,0005,159,7560.475231089963
14,1787,028,2730.334234623517
14,95611,976,9830.514718160586
19,99914,757,1630.365403144913
20,00014,757,5680.365378477484

Every integer entry and decimal in this table is (d). The visible oscillation is finite evidence only; it neither proves nor disproves a \(\Theta(j^2/\log j)\) law.

Live-comment indexing correction

\[ a_{1999}=259{,}183,\qquad a_{2000}=262{,}751. \] Moreover \[ \frac{1999^2}{2\log1999}=262{,}880.886\ldots, \] which explains both numbers quoted in the comment: it counted the 2000th list entry but called it \(a_{2000}\). Using the page's actual zero-based \(a_{2000}\), the ratio to its benchmark is \(262751/263126.649847\ldots=0.998572361\ldots\), not 0.986.

The 2025 preprint's appendix uses the same shifted plotting convention: its array has seq[0]=0, but it plots seq[1:] against labels \(k=2,\ldots,N\). For example, its labelled trough \(k=14179\) is \(a_{14178}\), and its labelled peak \(k=14957\) is \(a_{14956}\). That is an (a) reading of the printed code; the corresponding values above are (d).

A typo in the 1978 memo

(a) The official Odlyzko--Stanley scan prints the ninth displayed term of \(S(2)\) as 17. This cannot be correct because the same displayed prefix already contains \(11,14\), and \(11,14,17\) is a 3-term arithmetic progression. (d) Both independent generators and the all-pairs check give the correct next accepted term 27:

\[ A(2)=0,2,3,5,9,11,12,14,27,\ldots. \]

What remains, and the exact wall

The proposition solves a sharp finite/large-seed regime, not the fixed-seed asymptotic question. For \(n=4\), it stops after offsets \(0,1,3\), exactly where the extra seed 0 first forbids the translated-canonical offset 4. After that deletion, later coverage depends recursively on the entire altered prefix; the finite-state digit mechanism no longer closes.

(a) If \(B(x)=A(n)\cap[0,x]\), greediness says every omitted integer above the seed is an endpoint \(2y-z\) of a pair \(z<y\) in \(B(x)\). Counting pairs only gives

\[ x-O(n)\ \leq\ |B(x)|+\binom{|B(x)|}{2}, \]

which is the square-root counting mechanism behind Moy's quadratic upper bound. It contains no logarithmic gain.

(c) A concrete lemma sufficient for the conjectured upper estimate \(a_k=O(k^2/\log k)\) would be a logarithmic collision lemma for this specific greedy set: among relevant pairs \(z<y\), the distinct endpoints \(2y-z\leq x\) would need to be only

\[ O\!\left(\frac{|B(x)|^2}{\log |B(x)|}\right) \]

uniformly in \(x\). Greedy completeness would then force \(|B(x)|=\Omega(\sqrt{x\log x})\). No theorem located in the search supplies such control, and a claim of this form for arbitrary 3-free sets would need separate scrutiny.

(c) To prove the opposite Type-2 inequality \(a_k=\Omega(k^2/\log k)\), one needs an upper bound \(|B(x)|=O(\sqrt{x\log x})\) for this deterministic greedy sequence. General progression-free-set density theorems operate far above the square-root scale and do not provide it. To prove the 2025 preprint's suggested failure instead, one would need a uniform multiscale construction of troughs showing, for example, \(\liminf a_k\log k/k^2=0\); a finite list of troughs cannot do that.

(d) On the final verified run, the complete 20,001-term generation plus independent 200,010,000-pair rebuild took 31.21 CPU-seconds and 61,700 KiB peak RSS. (a) The present Python method performs \(\Theta(K^2)\) pair writes. (c) Straight scaling estimates \(K=100{,}000\) at about 0.23 core-hours and roughly 0.6 GB under the observed \(A(4)\) scale, and \(K=10^6\) at about 23 core-hours and tens of GB with a byte-per-endpoint sieve. I did not run either. Even those finite ranges could add oscillations but cannot supply the missing uniform lemma.

Reproduction

From the repository root:

python runs/erdos271_wave8p_reverify.py

The verified run ended with:

small cross-checks: PASS
A(4) through a_20000: pair certificate PASS
SHA256(le64(a_0..a_20000))=845d8b86c929fdeaa48d439f9f8db717cc572de98796d9b3b001d8615f2d7923
ALL CHECKS PASSED

PARTIAL: proved a sharp explicit formula for every fixed index in the large-seed regime and an O(log n) exact first-obstruction reduction; independently certified A(4) through a_20000, corrected two indexing/printing errors, but no fixed-seed asymptotic law is proved.

This is the AI working report, labelled by outcome — not an independently verified claim unless marked PROVED. ← ledger