# Theorems in this book

Every theorem and lemma in this book, with its exact statement, status and credit. Maths is written in LaTeX notation, between dollar signs.

The entries follow the book's own order: problem 64 (chapter 1), then problem 647 (chapter 3). Each lemma carries one of two labels: "written (proof in this book)", where the book writes out the whole proof, and "stated", where it does not. Results whose status is computed keep that status.

## Lemma 1: the connected reduction (Sonny, 2026)

**Credit:** Sonny (2026), as one of the three reductions written out in the chapter.

A component of a counterexample is a counterexample with no more vertices. So it is enough to look at connected graphs. (A counterexample is a finite graph with minimum degree at least $3$ and no cycle whose length is a power of two.)

**Status:** written (proof in this book).

**Proof:** written in [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), the section on the three reductions.

## Lemma 2: the edge-minimal reduction (Sonny, 2026)

**Credit:** Sonny (2026), as one of the three reductions written out in the chapter.

Let $uv$ be an edge whose two ends both have degree at least $4$. Deleting $uv$ keeps the minimum degree at least $3$, and deleting an edge creates no cycle. Repeat until no such edge is left. With the connected reduction: if a counterexample on at most $N$ vertices exists, then a connected one exists on at most $N$ vertices in which the vertices of degree at least $4$ are pairwise non-adjacent.

**Status:** written (proof in this book).

**Proof:** written in [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), the section on the three reductions.

## Lemma 3: the degree cap (Sonny, 2026)

**Credit:** Sonny (2026), as one of the three reductions written out in the chapter.

Let $G$ have minimum degree $3$ and no $4$-cycle, and let $v$ have degree $d$. Each neighbour $u$ of $v$ has at most one other neighbour inside $N(v)$, because two would close a $4$-cycle through $v$. So $u$ has at least one neighbour outside the closed neighbourhood of $v$. No two neighbours of $v$ share such an outside vertex, because that would close a $4$-cycle. Hence $n \ge 2d + 1$, so $d \le \lfloor (n-1)/2 \rfloor$.

**Status:** written (proof in this book).

**Proof:** written in [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), the section on the three reductions.

## Theorem 4: no graph on 4 to 22 vertices with minimum degree at least 3 lacks a cycle of length 4 or 8 (Sonny, 2026)

**Credit:** Sonny (2026), generating the graphs with nauty's geng (McKay and Piperno, 2014).

Every connected graph with minimum degree at least $3$ on $n$ vertices, for each $n$ from $4$ to $22$, contains a cycle of length $4$ or $8$. Hence no graph with minimum degree at least $3$ on at most $22$ vertices lacks a cycle of power-of-two length. Range: $n \le 22$, cubic and non-cubic graphs. This range lies inside ranges already proved by Ducoffe and Dumitru (every graph to $40$ vertices, arXiv:2609.28594) and by Garcia (to $23$, arXiv:2609.04686, with DRAT proofs); our search is an independent replication by a different method.

**Status:** COMPUTED.

**Conditions:**
- The generator (nauty's geng, restricted to the class described in the chapter) ran as logged and did what the chapter says.
- The three reductions (connected, edge-minimal, degree cap) in the chapter on this problem.
- The logged parts cover each order completely and found no graph: this is a bookkeeping check on the logs, described in the verification guide. A separate exhaustive search of our own re-establishes the statement for $n \le 15$ only.

**Proof:** exhaustive search; see [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "The search", the logs in [certificates/erdos64/](certificates/erdos64/) and the recipe in [VERIFY.md](VERIFY.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)). The statement is in [statement/STATEMENT.md](statement/STATEMENT.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).

## Proposition 5: the cross-check at order 24 (Sonny, 2026)

**Credit:** Sonny (2026); the four graphs are attributed to Markström, as reported by sallerk.

At order $24$ with maximum degree $3$, the search finds exactly $4$ graphs. That matches the four $24$-vertex cubic graphs with no $4$- or $8$-cycle attributed to Markström (as reported by sallerk; the book did not check this against his paper). Each of the four has a $16$-cycle. A short program confirms that each is $3$-regular, has no $4$- or $8$-cycle and has a $16$-cycle.

**Status:** COMPUTED (the book gives this as a cross-check).

**Proof:** [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "Cross-checks"; the four graphs are in [certificates/erdos64/cubic24.g6](certificates/erdos64/cubic24.g6).

## Proposition 6: the separate exhaustive search to order 15 (Sonny, 2026)

**Credit:** Sonny (2026).

A separate exhaustive search of our own, written without nauty, finds no graph for orders $4$ to $15$.

**Status:** COMPUTED.

**Proof:** [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "Cross-checks"; recipe in [VERIFY.md](VERIFY.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).

## Lemma 7: lower bound from the divisors of known primes (Sonny, 2026)

**Credit:** no separate credit given in the book for this lemma (the chapter's author line is Sonny). This is Lemma 1 of the problem 647 chapter. There $\tau(m)$ is the number of divisors of $m$ and the condition on $n$ is $\tau(n-k) \le k + 2$ for every $k = 1, \ldots, n-1$, called $(\ast)$.

Let $S$ be a finite set of primes, and write $m = d \cdot c$ where $d$ is the part of $m$ made of primes in $S$ and $c$ is coprime to them. Then $\tau(m) = \tau(d)\,\tau(c)$, because $\tau$ is multiplicative, and $\tau(c) = 1$ if $c = 1$, $\tau(c) = 2$ if $c$ is prime, $\tau(c) \ge 3$ if $c$ is composite. So knowing the exact exponents of the primes in $S$ gives a lower bound on $\tau(m)$.

**Status:** written (proof in this book).

**Proof:** written in [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "The argument (all elementary)".

## Lemma 8: the residue lemma (Dutta and Alexeev reduction, recovered)

**Credit:** the chapter says it recovers the reduction of Dutta and Alexeev. This is Lemma 2 of the problem 647 chapter.

Let $M = 2^6 \cdot 3^4 \cdot 5^2 \cdot 7^2 = 6{,}350{,}400$ and $K = 64$. Suppose $n \equiv r \pmod M$ and $n > M + K$. For each $k \le K$ and each prime power $p^a$ exactly dividing $M$, put $t = (r - k) \bmod p^a$. If $t \ne 0$ then the exponent of $p$ in $n - k$ is exactly the exponent of $p$ in $t$. If $t = 0$ it is at least $a$. This gives a lower bound $b(r,k)$ for the product of $(\text{exponent} + 1)$ over $p = 2, 3, 5, 7$. When all four exponents are exact, the $\{2,3,5,7\}$-part of $n - k$ is less than $M < n - k$, so $n - k$ has another prime factor and $b$ may be doubled (Lemma 1 of the chapter). If $b(r,k) > k + 2$ for some $k \le 64$, no $n$ in the class $r$ satisfies $(\ast)$. The classes that survive are $2205$ in number, and all of them are multiples of $2520$, which matches the published reduction.

**Status:** stated. The chapter gives the argument for the bound; the count of 2205 surviving classes is computed here by programs of the book's own (see the verification guide), not proved in writing.

**Proof:** written in [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)); the surviving classes are listed in [certificates/erdos647/classes_d0.txt](certificates/erdos647/classes_d0.txt).

## Lemma 9: the filter at k = 1, 2 (Alexeev and Dutta)

**Credit:** the observation of Alexeev and Dutta on the forum, written out in elementary form; the last step is Alexeev's ($2520N - 1$ is $3$ mod $4$, so it cannot be a square). This is Lemma 3 of the problem 647 chapter.

If $n > 10$ satisfies $(\ast)$ then $n - 1$ is prime and $(n-2)/2$ is prime.

**Status:** written (proof in this book).

**Proof:** written in [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), Lemma 3. In outline as the chapter gives it: from $k = 1$, $\tau(n-1) \le 3$, so $n-1$ is $1$, a prime or a prime square; if $n$ were odd, $n - 1$ would be an even prime or the square of one, so $n \le 5$; so $n$ is even. From $k = 2$, $\tau(n-2) \le 4$; if $4$ divides $n - 2$, write $n - 2 = 2^a u$ with $u$ odd, then $(a+1)\tau(u) \le 4$ forces $u = 1$ and $a \le 3$, so $n \le 10$. So $4$ divides $n$ and $n - 2 = 2u$ with $u$ odd and $2\tau(u) \le 4$, so $u$ is $1$ or prime, and $u = 1$ gives $n = 4$. Now $n - 1 \equiv 3 \pmod 4$, and an odd square is $1$ mod $4$, so $n - 1$ is prime.

## Lemma 10: soundness of the sieve (Sonny, 2026)

**Credit:** no separate credit given in the book for this lemma; the deterministic Miller-Rabin base sets are those of Sorenson and Webster (2015), and the test is Miller (1976) and Rabin (1980), per the credits page. This is Lemma 4 of the problem 647 chapter.

The C sieve that produced the logs for $n$ above $10^8$ works on $n = r + Mj$. For each of the $2205$ classes and each $k \le 64$ it removes every prime power $p^e \le n$ with $p \le 65536$ from $n - k$ exactly, so the exponent of every such $p$ is exact. What is left, the cofactor $c$, has only prime factors above $65536$. It is prime when it is below $65536^2$, and a deterministic Miller-Rabin test decides it otherwise (the base sets of Sorenson and Webster are deterministic far beyond $10^{14}$). Lemma 1 of the chapter then gives a lower bound on $\tau(n-k)$, and discarding $n$ when that bound exceeds $k + 2$ can never discard a true solution.

**Status:** stated. The chapter gives the argument; it rests on how the sieve program behaves and on the cited primality-test base sets, and the program is not shipped.

**Proof:** argument in [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), Lemma 4.

## Lemma 11: finitely many k suffice (Sonny, 2026)

**Credit:** no separate credit given in the book for this lemma. This is Lemma 5 of the problem 647 chapter.

Let $T(x)$ be the largest $\tau(m)$ for $m \le x$. If $\tau(n-k) \le k + 2$ for all $k \le T(n) - 2$, then $(\ast)$ holds for all $k$, since $\tau(n-k) \le T(n) \le k + 2$ beyond that. $T(x)$ can be computed rigorously from the exponent patterns of highly composite numbers.

**Status:** written (proof in this book) for the implication; the claim that T(x) can be computed rigorously is stated. The chapter adds: no survivor of the sieve ever arose, so this lemma was only used on test inputs.

**Proof:** written in [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), Lemma 5.

## Proposition 12: the solutions up to 6,350,464 (Sonny, 2026)

**Credit:** Sonny (2026).

The solutions of $(\ast)$ for $n \le 6{,}350{,}464$ are exactly the ten numbers $1, 2, 3, 4, 5, 6, 8, 10, 12, 24$. (The check treats $n = 1$ as satisfying the condition with the empty maximum.)

**Status:** COMPUTED (brute force).

**Proof:** recipe, part 2, in [VERIFY.md](VERIFY.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)); [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "Result".

## Proposition 13: the solutions up to 10^8, by direct computation (Sonny, 2026)

**Credit:** Sonny (2026).

A direct computation of every $n \le 10^8$, which does not use the residue lemma, gives the same ten numbers $1, 2, 3, 4, 5, 6, 8, 10, 12, 24$. It was done in C and done again with a separately written program.

**Status:** COMPUTED.

**Proof:** [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "What the bundle re-establishes by running"; recipe in [VERIFY.md](VERIFY.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).

## Theorem 14: no example with 24 < n <= 10^14 (Sonny, 2026)

**Credit:** The reduction of Dutta and Alexeev (2026), used here by Sonny (2026).

There is no integer $n$ with $24 < n \le 10^{14}$ such that $\tau(m) + m \le n + 2$ for every $m < n$. Equivalently $\tau(n-k) \le k + 2$ fails for some $k = 1, \ldots, n-1$. Range: $(24, 10^{14}]$. This is a replication: the forum reports larger ranges (see the credits page).

**Status:** COMPUTED.

**Conditions:**
- For $n \le 6{,}350{,}464$ by brute force, and for $6{,}350{,}464 < n \le 10^9$ by an arithmetic scan, both done here and described in the verification guide. Separately, a direct computation of every $n \le 10^8$ that does not use the residue lemma, done twice by separately written programs, finds the same ten solutions.
- For $10^9 < n \le 10^{14}$, by the sieve whose logs are in the certificates folder; the guide's recipe checks the logs' coverage, not the sieve. The sieve rests on Lemmas 1, 2 and 4 of the chapter on this problem.

**Proof:** [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)); statement in [statement/STATEMENT.md](statement/STATEMENT.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)); logs in [certificates/erdos647/](certificates/erdos647/); recipe in [VERIFY.md](VERIFY.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).

## Proposition 15: the sieve coverage (Sonny, 2026)

**Credit:** Sonny (2026).

The sieve ran in chunks; the candidate counts and survivors are as follows. In $(10^8, 10^{10}]$ there are $3{,}437{,}500$ candidates and $0$ survivors; in $(10^{10}, 10^{12}]$, $343{,}750{,}000$ candidates and $0$ survivors; in $(10^{12}, 10^{13}]$, $3{,}125{,}000{,}000$ candidates and $0$ survivors; in $(10^{13}, 3 \cdot 10^{13}]$, $6{,}944{,}444{,}444$ candidates and $0$ survivors; in $(3 \cdot 10^{13}, 10^{14}]$, $24{,}305{,}555{,}556$ candidates and $0$ survivors; in total $34{,}722{,}187{,}500$ candidates and $0$ survivors. Every candidate was removed by the lower-bound sieve (stage 1).

**Status:** COMPUTED (the bookkeeping of the shipped logs is checked; the sieve itself was not re-run above $10^9$).

**Proof:** [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)), section "Coverage"; logs in [certificates/erdos647/](certificates/erdos647/).

## Open questions

### Erdős problem 64

**Credit:** Erdős and Gyárfás (the question); Liu and Montgomery proved that the answer is yes when the minimum degree is larger than some absolute constant; Ducoffe and Dumitru proved by computer search that there is no counterexample on at most $40$ vertices, at most $66$ if bipartite, at most $48$ if cubic (arXiv:2609.28594, preprint).

Does every finite graph with minimum degree at least $3$ contain a cycle whose length is a power of two? Erdős and Gyárfás asked this and expected the answer no. Ducoffe and Dumitru proved the answer is yes for every graph on at most $40$ vertices (arXiv:2609.28594, Theorem 5.1). The question is open.

**Status:** open.

**Proof:** none; see [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).

### Erdős problem 64 at 23 vertices

Proved elsewhere: arXiv:2609.04686 (Garcia, preprint), with checkable DRAT proofs; also covered by arXiv:2609.28594 (Ducoffe and Dumitru, to $40$ vertices).

**Credit:** Daniel Garcia (arXiv:2609.04686); Ducoffe and Dumitru (arXiv:2609.28594) for the larger range.

Every graph with minimum degree at least $3$ on at most $23$ vertices has a cycle of length $4$ or $8$ (Garcia, Theorem 2.1). Ducoffe and Dumitru extend the search to $40$ vertices. Our own search covers at most $22$ vertices.

**Status:** proved elsewhere (preprints); not claimed by this book.

**Proof:** none; see [chapters/01-erdos-64.md](chapters/01-erdos-64.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).

### Erdős problem 647

**Credit:** Erdős and Selfridge (the question).

Is there an integer $n$ above $24$ such that $m + \tau(m)$ is at most $n + 2$ for every $m$ below $n$? Erdős and Selfridge asked this. The numbers $1, 2, 3, 4, 5, 6, 8, 10, 12, 24$ satisfy the condition. The search here stops at $10^{14}$ and says nothing above it.

**Status:** open.

**Proof:** none; see [chapters/03-erdos-647.md](chapters/03-erdos-647.md) ([https://gocheckyourself.org/read/erdos-problems/experts/](https://gocheckyourself.org/read/erdos-problems/experts/)).
