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

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

VERIFIED2026-11-27 · Maxim Rakhmanov
Community database OPENas of 2026-03-14tags number theory, additive basisproblem page · erdosproblems.com/11
Our review · 2026-12-01

Verdict: VERIFIED (from 1 December 2026; PARTIAL before that, see the dated paragraphs below). The cases k ≤ 21 and the strict failure at k = 25 are verified by independent routes; the cases k = 22, 23, 24 are now checked by two separately written programs. Reviewed 28 November–1 December 2026.

The question. For a finite set A of positive exponents, let D(A) be the density, among odd n, of those for which n − 2^a is a positive squarefree number for some a in A. The submission claims the first k exponents maximise D among all k-element sets for every k ≤ 24, and that this fails at k = 25.

What arrived. The submission text was cut at exactly 20,000 characters: the main verifier stops inside its density-bounds function, indentation was lost, and two scripts are missing. We re-indented the surviving k = 21 and k = 25 checks by hand; both pass.

What we checked. For k ≤ 20, the reduction (splitting a residue block can only lower the chance of excluding every candidate, so the comparison reduces to class sizes modulo 6, smallest when balanced), with 2^d − 1 factored for d ≤ 62 to see which prime squares can divide. For k = 21, a fresh brute-force enumeration of all 4,465 configurations from explicit label sets (no closed formula): no violation. For k = 22–24, the target moment rows match a direct enumeration over all 11,025 residues, but the correction step could not be re-derived without the code. For k = 25, the histograms recomputed residue by residue match, the numerator differences are nonnegative for every t and positive for t = 3–8, so D({1..24, 27}) > D({1..25}) exactly; a rigorous interval computation (primes 11 to 10⁶, tail by the prime zeta value P(2)) gives 1 − D({1..25}) in [1.0047079, 1.0048828]·10⁻³⁴ and 1 − D({1..24, 27}) in [0.9752408, 0.9754102]·10⁻³⁴. Our density instrument reproduces Hercher's published table (J. Integer Seq. 28, 2025) for consecutive sets. A local search over residue patterns mod 420 found nothing better than the first k exponents for k = 22, 23, 24 (evidence, not proof).

What we add. The set {1, 2, 4, …, 24, 46, 63} beats {1..25} by about 39.5% in uncovered density (1 − D in [6.0688, 6.0815]·10⁻³⁵, rigorous intervals), so the best 25-element set is far from the 27-swap. The world. We found nothing on this fixed-exponent question beyond Hercher's densities for consecutive sets; it appears to be the submitter's own. The original problem is untouched.

30 November 2026: the complete archive. The submitter sent the full files by email (ZIP SHA-256 cac13a6c…c96ed, as stated). We ran all three scripts unchanged under Python 3. They reproduce every stated number: k = 21, all 4,465 class configurations pass; k = 22, 23, 24 need 391, 454 and 532 size partitions, of which 3, 2 and 1 cell arrangements need the detailed check (15, 19 and 27 modulo-49 patterns), and every comparison passes; the k = 25 swap reduces the uncovered density by 2.93294520% to 2.93294776%. We read the certificate's logic: splitting a residue block can only lower the chance that every candidate is excluded; above 7 every block is split; the first bound per modulo-9 outcome is y^b[1225 + 73mx + m(m−1)x²] (1225 = 25·49, 73 = 49 + 25 − 1); a pair forced into one block modulo 25 (resp. 49) adds y^b x²[47 + (m−2)x] (resp. 23); the remaining arrangements are enumerated exactly. We found no error. The verdict stays PARTIAL for one reason: k = 22–24 still rest on this one program, and the comparison has not yet been checked by a separately written one.

1 December 2026: a second program. The submitter sent a verifier written separately from the first (with OpenAI Codex; ZIP SHA-256 e89954d0…7a7635e, as stated). It uses the same reduction to local sieves and conditional moments, which we had already read, but a different pruning argument: a discrete-convexity (balancing) bound on the moments, whose second-difference identity we re-derived, in place of the first program's pair-cost formulas, and an exact stage that enumerates labelled set partitions. Its code shares nothing with the first program beyond three lines of boilerplate. We ran both of its scripts unchanged. They reproduce every number: 391, 454 and 532 size vectors; 3, 2 and 1 matrices at the exact stage; 15, 19 and 27 modulo-49 profiles; every moment inequality holds, with gap 0 exactly at the initial segment. The target moments equal the rows our own direct enumeration of the 11,025 residues gave on 30 November. Its controls also pass: the orders of 2 modulo 9, 25 and 49; no prime p ≥ 11 with p² dividing 2^d − 1 for d ≤ 23; partition counts against Stirling numbers; all 13 moments against direct enumeration for 1,540 configurations at k = 12; and an inflated third-moment target is rejected. Both programs come from the submitter's own project, but they are separately written and take different routes through the finite search, which is the standard we set. Verdict moved to VERIFIED.

Tools, as declared by the submitter: OpenAI Codex (GPT-6) and GPT-6.2 Astra subagents developed the argument, wrote the Python verification scripts, and checked the finite cases using independent implementations. Codex reran the scripts from the final archive. I am submitting the result for external review.

The submission

The first failure of consecutive powers in a finite-exponent variant of Erdos problem 11

For a finite set A of positive exponents, define D(A) as the natural density relative to odd n for which n - 2^a is positive and squarefree for at least one a in A. For every k from 1 to 24, the first k positive exponents maximize D(A) among all sets of k positive exponents, with no upper bound on their size. The first failure is k=25. Replacing exponent 25 by 27 reduces the density of unrepresented odd integers by approximately 2.933% relative to the consecutive set. The global optimum at 25 is undetermined by this work. The original conjecture about all sufficiently large odd integers remains open.

The computational proof compares congruence classes modulo prime squares. Splitting a class can only reduce the probability of excluding every candidate. For k=22, 23 and 24, this gives a finite comparison of binomial moments at 9, 25 and 49 that covers arbitrary competing sets. The attached-in-text Python programs verify the finite certificates using integer arithmetic. Publication priority has not been established. We request external verification of the reduction and of the finite comparisons.

AI disclosure. OpenAI Codex (GPT-6) and GPT-6.2 Astra subagents developed and audited the argument, implemented alternative finite checks and ran the certificates. The packaged Python programs were rerun from the extracted archive. No independent human verification is claimed.

The full note and scripts follow in plain text. To reproduce, save each section under the filename shown and use Python 3.10 or newer. No third-party packages are required.

===== BEGIN erdos11_note.md =====

Choosing powers of two in the squarefree representation problem

Erdős problem 11 asks whether every sufficiently large odd integer has the form $m+2^a$, where $m$ is a positive squarefree integer. Consider a related question in which one fixes a finite set of positive exponents in advance. Which set gives a representation to the largest proportion of odd integers?

Theorem (computer-assisted). For every $1\le k\le24$, the first $k$ positive exponents maximize this proportion among all sets of $k$ positive exponents, with no bound on their sizes. The first failure occurs at $k=25$. Replacing exponent 25 by 27 then strictly increases the proportion. The optimal set at 25 remains undetermined. The original representation problem remains open.

Density and local comparisons

Write $D(A)$ for the natural density relative to odd integers of those $n$ for which at least one $n-2^a$, $a\in A$, is positive and squarefree. The finite set of small $n\le \max_{a\in A}2^a$ has no effect on density.

First test divisibility only by odd prime squares $p^2$ with $p\le Y$. The Chinese remainder theorem gives independent uniform residues modulo these squares when $n$ ranges over odd integers. For one fixed exponent, the number of additional exclusions with $n\le X$ due to larger prime squares is at most

$$ \sum_{Y<p\le\sqrt X}(X/p^2+1)\le X/Y+\sqrt X $$

for integral $Y$. Summing over the fixed set $A$, sending $X$ to infinity and then $Y$ to infinity proves existence of the density and justifies the independent-residue calculation in the limit.

Label the exponents. At each odd prime $p$, the labels split into blocks with equal $2^a\bmod p^2$. The residue $n\bmod p^2$ removes each particular block with probability $1/p^2$, or removes nothing if its residue is unused. Consider the event that all labels are removed. Conditional on a nonempty subset $U$ left by all other primes, $p$ completes the removal with probability $1/p^2$ precisely when $U$ is contained in a single block. Otherwise its conditional probability is zero. If $U$ is empty it is one. Thus splitting any block decreases or preserves the failure probability. Artificial splits can be used for lower bounds provided the resulting number of blocks does not exceed $p^2$.

If exponent zero is also admissible, the same positive initial segments remain optimal through $k=24$. Shifting every exponent up by one multiplies its residue by 2 at each odd prime square, a permutation of the residue space. The odd-prime coverage probability is preserved. For odd $n$ and strictly positive exponents every difference is odd. Before the shift, a candidate with exponent zero could also be excluded by divisibility by 4. Hence $D(A)\le D(A+1)$ for a set containing zero. This observation does not assert uniqueness of extremizers.

Up to 20 exponents

For $k\le20$, refine each $p\ge5$ to singleton blocks. After these primes the surviving set is exchangeable in its labels. Conditional on its size $t>0$, it is uniform over all $t$-subsets. At $p=3$, the powers of two have period six modulo 9. If $b_1,\ldots,b_6$ are the multiplicities of the exponents modulo six, the chance that 3 removes those survivors is

$$ \frac{\sum_{j=1}^6\binom{b_j}{t}}{9\binom kt}. $$

The numerator is minimized when the six multiplicities differ by at most one. This follows by moving one label from a class of size $u$ into one of size $v\le u-2$ and using Pascal's identity. For $A={1,\ldots,k}$ the classes are balanced. Moreover, for $1\le d\le19$, the only possible prime square divisor of $2^d-1$ is $3^2$. Hence the singleton refinements at $p\ge5$ already hold for these consecutive exponents. They attain the lower bound for failure, and therefore maximize $D(A)$.

The twenty-first exponent

For $k=21$, refine all primes $p\ge7$ to singletons. The period of 2 modulo 25 is 20, so at least one pair of labels must coincide modulo 25. Keep one such pair and split all other labels at 5 into singletons. The resulting model is a relaxation bounding failure from below.

Set $b_7=b_8=b_9=0$ to include the three unused residues modulo 9. Let $i,j\in{1,\ldots,6}$ denote the classes of the paired labels, with $i=j$ allowed. Given a uniform $t$-subset of survivors from primes $p\ge7$, the probability they are all removed by 3 and 5 has denominator $225\binom{21}t$ and numerator

$$ \sum_{r=1}^9\left[25\binom{b_r}{t} +(21-b_r)\binom{b_r}{t-1} +\mathbf1_{r\notin{i,j}}\binom{b_r}{t-2}\right]. $$

Indeed, after 3 removes block $r$, either zero labels remain, one label remains, or the specified pair remains. In the last two cases 5 completes the removal with probability $1/25$.

Sort the first six sizes into nonincreasing order. There are 4,465 choices of this size vector and feasible unordered class indices $i,j$, counting classes with equal size as different positions. The accompanying integer certificate enumerates all of them. For every $t\ge1$, the numerator is minimized by sizes $(4,4,4,3,3,3)$ with two distinct size-four classes marked. The respective minima for $t=1,\ldots,6$ are $693,1048,856,348,58,1$, and are zero for $t\ge7$. The $t=0$ conditional probability is always one.

The first 21 exponents realize the optimum. The sole paired labels at 5 are 1 and 21, and their modulo-six classes are distinct and have size four. The largest exponent difference is 20, and no $p\ge7$ has square dividing any $2^d-1$ for these positive differences. Passing from the finite sieve to the full density proves the claim.

The cases 22, 23 and 24

Let $k\in{22,23,24}$. Split all blocks at primes $p\ge11$ into singletons, working first with a finite prime cutoff. At the three smaller primes the orders of 2 modulo 9, 25 and 49 are 6, 20 and 21, respectively. Group the exponent labels into six cells modulo 6. Each parity contains at most ten exponent classes modulo 20. Each residue class modulo 3 contains at most seven exponent classes modulo 21.

For each of the $11025=9\cdot25\cdot49$ triples of residues, let $b$ count the labels removed by their union. Define $M_t=\sum\binom bt$, summing over all triples. Conditional on $t$ labels surviving the larger primes, the probability of failure is $M_t/(11025\binom kt)$. For the first $k$ powers the finite factorization check for $d\le k-1$ shows there are no collisions at any $p\ge11$. It suffices to prove that every competing configuration has moments at least as large as the target attained by the first $k$ exponents. All target moments beyond the table vanish.

$k$

$M_0$

$M_1$

$M_2$

$M_3$

$M_4$

$M_5$

$M_6$

$M_7$

$M_8$

22

11025

39798

70209

70860

40870

12864

1932

94

0

23

11025

41607

77462

83136

51908

18340

3363

257

2

24

11025

43416

84875

96122

64214

24964

5336

542

14

First bound. Fix a modulo-9 outcome removing $b$ labels, set $m=k-b$, and write $y=1+x$. With singleton blocks at 5 and 7, their contribution to the moment-generating polynomial $\sum_t M_t x^t$ for this fixed outcome is

$$ y^b [1225+73m x+m(m-1)x^2]. $$

Indeed, a specified remaining label is hit in $49+25-1=73$ outcomes, and assigning two distinct labels to the two primes in a specified order has one outcome. Summing over all nine modulo-9 outcomes gives a lower bound depending only on the sorted cell sizes.

A bound using the cell order. Among the remaining labels let $n_i$ count those of parity $i$ and $m_j$ count those congruent to $j$ modulo 3. Define

$$ f=\sum_{i\bmod 2}(n_i-10)+,\qquad g=\sum{j\bmod 3}(m_j-7)+,\qquad u+=\max(u,0). $$

At least $f$ unordered pairs share a 5-block outside the fixed removed labels, and at least $g$ share a 7-block there. Indeed, $s$ labels in a nonempty block contain at least $s-1$ pairs. Keep the 7-blocks as singletons and restore the 5-blocks. For a union already covering $z$ labels, merging a group with $j$ new labels adds $y^z(y^j-1-jx)$ relative to singletons. Its quadratic term counts every pair of new labels in the block and the higher terms are nonnegative.

For each pair outside the fixed modulo-9 block, its correction summed over the 7-outcomes is $y^b x^2 [47+(m-2)x]$. Exactly 47 outcomes avoid the pair, and $m-2$ of these add a new label. For a 7-pair with singleton 5-blocks the correction is $y^b x^2[23+(m-2)x]$. If $m<2$, both pair counts vanish. For each modulo-9 outcome and each coefficient we add to the first bound the larger of the $f$-fold and $g$-fold corrections. Translation and reflection of the six cells preserve both congruence relations, so one cell ordering suffices per such orbit.

Exact check for the remaining arrangements. Within each class modulo 3 with $s$ labels we can split actual 7-blocks until there are $\min(s,7)$ nonempty blocks. This refinement can only reduce the moments. The parts of size at least two have total excess $\sum(|B|-1)=\max(s-7,0)$. Each part is specified by its two populations in the mod-6 cells of that class. The script enumerates every multiset of such parts. Permuting labels within a cell preserves the subsequent range of options for prime 5.

For each resulting 7-pattern form all $9\cdot49$ unions $U$ from 3 and 7, including empty outcomes with multiplicity, and write $z=|U|$. With singleton 5-blocks, each such union contributes $25\binom zt+(k-z)\binom z{t-1}$. Merging a 5-block $B$ with $j=|B\setminus U|$ adds exactly

$$ \binom{z+j}{t}-\binom zt-j\binom z{t-1}. $$

These increments add over the disjoint merged blocks. Within each parity containing $s$ labels the script enumerates every collection of disjoint groups of total excess $\max(s-10,0)$, completing the partition with singletons. Every true configuration refines to one of these patterns. The two parities contribute additively. For each $t$ we add their separate minima to the singleton baseline and compare with the target.

$k$

Sorted six-cell size vectors

Cell arrangements requiring detailed checks

Modulo-49 patterns in those checks

22

391

3

15

23

454

2

19

24

532

1

27

Every comparison passes. Enumerating all patterns compatible with these necessary constraints includes every possible refinement required by the proof. The first $k$ exponents attain the target. Taking the limit of the finite sieves gives the comparison for natural density.

A strict improvement at 25

Take $A={1,\ldots,25}$ and $B={1,\ldots,24,27}$. For differences $1\le d\le26$, only the primes 3, 5 and 7 can have squares dividing $2^d-1$. This short factorization check is included in the certificate. All other odd primes consequently act through identical, exchangeable singleton models for $A$ and $B$.

Let $H_E(b)$ count residues $n\bmod 11025$ for which the squares 9, 25 and 49 together remove exactly $b$ labels from $E$. Here $11025=9\cdot25\cdot49$. Given a uniform surviving set of size $t$, conditional failure from these three primes is

$$ \frac{\sum_b H_E(b)\binom bt}{11025\binom{25}t}. $$

The two rows give the counts from enumerating the 11,025 residues.

$b$

0

1

2

3

4

5

6

7

8

9

$H_A(b)$

420

1560

1206

453

1176

3066

2258

778

106

2

$H_B(b)$

420

1557

1215

444

1209

2989

2309

787

93

2

Both histograms vanish above 9. At $t=3,4,5,6,7,8$, the numerator for $A$ exceeds that for $B$ by $40,182,310,250,95,13$, respectively. The numerators are equal for all remaining $t$. There is a positive probability of exactly three survivors before these three small primes act. To see this, assign one distinct auxiliary prime $p\ge11$ to each of the other 22 labels and require it to remove that label. At all remaining primes $p\ge11$, the three specified labels survive with joint probability given by a positive product of factors $1-3/p^2$. Therefore $D(B)>D(A)$.

Reproduction and relation to previous work

Run from the extracted directory using Python 3.10 or newer. The first two commands verify the entire extremal theorem in integer arithmetic. The last two compute numerical bounds.

python erdos11_verify.py python erdos11_threshold.py python erdos11_verify.py --bounds python erdos11_percentage.py

To obtain a numerical bound, the script sieves with primes up to $Y$. Given $s$ remaining labels, a prime with singleton blocks removes one with probability $s/p^2$. The script tracks the probability of every survivor count, rounding down to multiples of $10^{-90}$. It then combines the exact counts of residue classes for the exceptional primes with these estimates. If $h$ labels still survive, distinct primes greater than $Y$ must hit all of them. By the union bound over assignments their chance to do so is at most $(\sum_{p>Y}p^{-2})^h\le Y^{-h}$. The final upper bound includes all probability mass lost in rounding.

The accompanying script erdos11_verify.py requires only the Python standard library. Running it verifies the prime-square collisions, all 4,465 cases and both histograms' moment comparison. Its optional --bounds run also bounds the uncovered densities by an integer sieve with one-sided rounding and an explicit infinite-prime tail. It gives $1.00470\times10^{-34}<1-D(A)<1.00728\times10^{-34}$ and $0.97524\times10^{-34}<1-D(B)<0.97773\times10^{-34}$.

The percentage calculation starts with the three-prime histogram and sieves to $Y=10^6$ with directed integer rounding. For one remaining label the exact probability of being hit by the tail is $q=1-(6/\pi^2)/\prod_{p\le Y}(1-p^{-2})$. The product and $\pi$ are bounded on both sides, the latter by the alternating series in Machin's formula. For $h\ge2$ remaining labels the union bound over assignments to distinct tail primes gives a failure probability at most $(\sum_{p>Y}p^{-2})^h\le(q/(1-q))^h$. The last inequality follows from $1+\sum_{p>Y}p^{-2}\le\prod_{p>Y}(1-p^{-2})^{-1}$. With $F_E=1-D(E)$ the resulting outward bounds give

$$ 2.93294520 < 100(1-F_B/F_A) < 2.93294776. $$

Every finite exponent set leaves a positive density uncovered. Assign a distinct odd prime $p_a$ to each $a\in A$ and impose $n\equiv2^a\pmod{p_a^2}$ for all $a$, together with oddness. The Chinese remainder theorem supplies a progression of relative density $\prod_{a\in A}p_a^{-2}$ on which all sufficiently large $n$ fail for this fixed set. The original conjecture allows the exponent to vary with $n$ without a fixed finite menu.

Granville and Soundararajan studied this additive problem and its relation to the order of 2 modulo prime squares. Christian Hercher studied the densities associated with prescribed initial segments up to 20, identified the modulo-9 collision structure, and verified the representation numerically up to $2^{50}$. Harman and Paquin study representations for primes congruent to 7 modulo 36. The comparison above ranges over arbitrary sets of a given finite size. Publication priority for the extremal theorem has not been established.

Erdős problem 11

C. Hercher, On the Sum of a Squarefree Integer and a Power of Two, Journal of Integer Sequences 28, 2025

A. Granville and K. Soundararajan, A Binary Additive Problem of Erdős and the Order of 2 mod p², Ramanujan Journal 2 (1998), 283–298

S. Harman and D. Paquin, The One-Power Erdős Conjecture for Primes p ≡ 7 (mod 36), preprint (2026) ===== END erdos11_note.md =====

===== BEGIN erdos11_verify.py ===== """Finite certificates for the fixed-exponent density question associated with Erdős #11.

Python 3 standard library. Run without arguments to verify the exact local comparisons; add --bounds to certify the three numerical density intervals. """

from argparse import ArgumentParser from collections import Counter from math import comb, isqrt

def choose(n, t): return comb(n, t) if 0 <= t <= n else 0

def prime_squares_in_mersenne(d): n = 2**d - 1 result = set() p = 2 while p p <= n: if n % (p p) == 0: result.add(p) while n % p == 0: n //= p p += 1 return result

def partitions(total, length, cap): if length == 0: if total == 0: yield () return for part in range(min(total, cap), -1, -1): if total - part <= (length - 1) part: for rest in partitions(total - part, length - 1, part): yield (part, rest)

def cover_counts_21(sizes, first, second):

Numerators conditional on exactly t surviving labels before 3 and 5.

sizes = (sizes, 0, 0, 0) return [ sum( 25 choose(b, t)

  • (21 - b) * choose(b, t - 1)
  • (r != first and r != second) * choose(b, t - 2)

for r, b in enumerate(sizes) ) for t in range(1, 22) ]

def check_21(): best = cover_counts_21((4, 4, 4, 3, 3, 3), 0, 1) assert best == [693, 1048, 856, 348, 58, 1] + [0] * 15 cases = 0 for sizes in partitions(21, 6, 21): for first in range(6): for second in range(first, 6): if min(sizes[first], sizes[second]) < 1: continue if first == second and sizes[first] < 2: continue observed = cover_counts_21(sizes, first, second) assert all(a >= b for a, b in zip(observed, best)) cases += 1 assert cases == 4465 print("k = 21: confirmed the lower bound in all", cases, "class configurations")

def local_histogram(exponents, prime_squares): modulus = 1 for square in prime_squares: modulus *= square

Adding a label counts that label once for every residue which covers it.

sizes = [0] * modulus for a in exponents: hit = set() for square in prime_squares: hit.update(range(pow(2, a, square), modulus, square)) for r in hit: sizes[r] += 1 return Counter(sizes), modulus

def check_25(): first = tuple(range(1, 26)) altered = (range(1, 25), 27) a, _ = local_histogram(first, (9, 25, 49)) b, _ = local_histogram(altered, (9, 25, 49)) differences = [ sum((a[n] - b[n]) choose(n, t) for n in range(26)) for t in range(26) ] assert differences == [0, 0, 0, 40, 182, 310, 250, 95, 13] + [0] * 17 print("k = 25: exact nonzero differences (t = 3 through 8):", differences[3:9])

def primes_upto(y): sieve = bytearray(b"\x01") * (y + 1) sieve[0:2] = b"\x00\x00" for p in range(2, isqrt(y) + 1): if sieve[p]: sieve[pp::p] = bytes((y - pp) // p + 1) return (p for p in range(2, y + 1) if sieve[p])

def density_bounds(exponents, exceptional_primes, cutoff

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