# Erdős problems 64 and 647

Sonny

**In short.** Two open questions that Paul Erdős posed, each checked by an exhaustive computer search. For problem 64, no graph (dots, called vertices, joined by lines) with minimum degree (the fewest lines at any vertex) at least 3 on up to 22 vertices is a counterexample (a case that would show the claim is false); for problem 647, there is no example up to 10^14, and both problems are still open.

**What this book shows**
- **My result, problem 64.** No graph with minimum degree at least 3 on up to 22 vertices lacks a cycle of length 4 or 8. Computed: three reductions proved in the chapter narrow the search to one class of graphs, and an exhaustive search of that class at every order (number of vertices) from 4 to 22 found none, so the result covers all graphs with minimum degree at least 3, not just cubic (every vertex has exactly 3 neighbours), bipartite (the vertices split into two groups and every line joins the two groups) or small-diameter (any two vertices are a few steps apart) ones. A separate program of ours repeated the search up to 15 vertices. Orders 16 to 22 were searched with a pruned build of nauty's geng (a standard program that lists graphs of a chosen kind) that is not published; its logs are. Two recent preprints (papers shared publicly before peer review) report larger ranges (23 and 40 vertices).
- **My replication, problem 647.** No n with 24 < n ≤ 10^14 satisfies the condition. Computed: up to 10^8 by two separately written programs, up to 10^9 also by a separate scan, and from 10^9 to 10^14 by one sieve program (a program that strikes out numbers in bulk) that is not published; its logs are, and the check guide checks their bookkeeping. This replicates a smaller range than the forum reports.
- **Why it matters.** For problem 64 the open part is graphs of small minimum degree, such as three, and my search covers all of them up to 22 vertices. For problem 647, any example would be very large. Both problems are open.
- **In Lean:** nothing (Lean is a proof-checking program that tests every step of a proof against fixed rules). The checks are the search logs, the separate programs and a written recipe for each check.
- Every result in this book is listed in the [theorem library](/theorems/).

**Status:** computed: no counterexample to problem 64 on up to 22 vertices (credit: Ducoffe and Dumitru (every graph to 40 vertices); Garcia (to 23, checkable proofs); graphs generated with nauty's geng (McKay and Piperno); an independent replication to 22 vertices by Sonny), and no example for problem 647 up to 10^14; both problems open; not yet refereed.
**What this is:** Results on two Erdős problems: no counterexample to problem 64 on up to 22 vertices (credit: Ducoffe and Dumitru (every graph to 40 vertices); Garcia (to 23, checkable proofs); graphs generated with nauty's geng (McKay and Piperno); an independent replication to 22 vertices by Sonny), and a replication of the forum's search for problem 647 up to 10^14.
**Still open:** problem 64 beyond the stated finite search and problem 647 beyond the replicated range. The problem 647 computation repeats part of the forum's reported range.
**Checked by:** For each result separately: exhaustive search to 22 vertices, repeated by a separate program of ours to 15 vertices (problem 64); two separately written programs to 10^8, a separate scan to 10^9, and above that the logs of one sieve program, checked for bookkeeping (problem 647). Details under each result below.

## The question

This book is about two open questions that Paul Erdős posed, collected with their history on Thomas Bloom's site erdosproblems.com. The wording below is our plain-words paraphrase; the exact wording is on each problem page.

**Problem 64 ([erdosproblems.com/64](https://www.erdosproblems.com/64)).** Take any finite graph in which every vertex has at least three neighbours. Must it contain a cycle (a closed loop of distinct vertices) whose length is a power of two: 4, 8, 16, 32 and so on? Erdős and András Gyárfás conjectured the answer; the problem page says they "believed the answer must be negative", and that for every r there must be a graph of minimum degree at least r with no such cycle. The page lists a prize of $1000 and does not say who offered it.


**Problem 647 ([erdosproblems.com/647](https://www.erdosproblems.com/647)).** Write τ(m) for the number of divisors of m. Is there an integer n above 24 such that m + τ(m) is at most n + 2 for every m below n? Erdős and John Selfridge asked this, and Erdős offered 25 pounds for an example. The numbers 1, 2, 3, 4, 5, 6, 8, 10, 12 and 24 satisfy the condition.

**Where to go next.** Why does a search up to 22 vertices leave problem 64 open? See the [chapter on problem 64](chapters/01-erdos-64.md).

## Why it matters

The problem pages give the questions and the prizes; we have not found a statement of Erdős's reasons and we do not guess them.

- **Problem 64** asks how much room a sparse graph has to avoid every cycle length that is a power of two. Hong Liu and Richard Montgomery showed the answer is yes once the minimum degree is larger than some absolute constant, so the open part is graphs with small minimum degree, such as three.
- **Problem 647** asks whether the divisor function can stay small enough, just below an integer, for all smaller numbers at once. Forum posts report that searches have ruled out every n up to 10^22, with a certificate (a file that lets a reader check the claim) only up to about 6 × 10^17, so any example would be very large.

**Where to go next.** What did the earlier searches for problem 64 cover, and what did they leave out? See the [chapter on problem 64](chapters/01-erdos-64.md).

## What answering it would help with

- A graph with no power-of-two cycle (problem 64) would show that the large-minimum-degree theorem needs its degree condition; a proof for every graph would determine which cycle lengths minimum degree forces.
- An example, or a proof that none exists (problem 647), would determine whether the divisor function can stay within the stated limits on consecutive integers.

**Where to go next.** What would a counterexample to problem 64 have to look like? See the [chapter on problem 64](chapters/01-erdos-64.md). How large are the numbers the forum has already ruled out for problem 647? See the [chapter on problem 647](chapters/03-erdos-647.md).

## What our research shows

I ran a computer search on each problem. Each result has its checked scope and its open items.

**Problem 64: no counterexample up to 22 vertices (Sonny, 2026).**
*What this is:* no graph with minimum degree at least 3 on up to 22 vertices lacks a cycle of length 4 or 8. Status COMPUTED. Two recent preprints report larger ranges (arXiv:2609.04686, 23 vertices; arXiv:2609.28594, 40 vertices).
*Still open:* the conjecture beyond the finite search stated here.
*Checked by:* exhaustive generation with nauty's geng; a separate exhaustive search of our own up to 15 vertices; the generator logs re-read for completeness.

**Problem 647: no example up to 10^14 (Sonny, 2026).**
*What this is:* no n with 24 < n ≤ 10^14 satisfies the condition, as a replication of searches that the forum already reports to much larger bounds. Status COMPUTED.
*Scope and open item:* this replicates part of the forum's reported range. Still open here: n above 10^14.
*Checked by:* the residue lemma (a rule that rules out whole families of numbers by their remainder on division by a fixed number) recomputed here; a direct computation of every n up to 10^8, done twice by separately written programs; an arithmetic scan up to 10^9; the logs of the C sieve for the range above that re-read for completeness.

**Where to go next.** Why is the problem 647 result only a replication? See the [chapter on problem 647](chapters/03-erdos-647.md).

<!--BOX-->
### What's in this book

Counts are computed from the book's statement file (its list of results: 2 results, each with one status).

| Status | Count |
|---|---|
| Proved and checked in Lean | 0 |
| Written proofs | 0 |
| Computed or certified (exact arithmetic, exhaustive search, or re-read logs) | 2 |
| Conditional | 0 |
| Open | 0 |

| Item | Count |
|---|---|
| Chapters | 2 (problems 64 and 647) |
| Statement files | 2 |
| Written check recipes | 3, plus the fingerprint list |
| Certificate and data files | 19 in 2 folders (problem 64: 3; problem 647: 16) |
| Lean source files | 0 |
<!--/BOX-->

### Yesterday, today, tomorrow

**Yesterday.** Paul Erdős with András Gyárfás (problem 64) and with John Selfridge (problem 647) posed these questions, and Thomas Bloom's erdosproblems.com gathers them with the earlier work. For problem 64, the exhaustive computer searches listed there, by Markström, Nowbandegani and Esfandiari, Tranquilli and sallerk, are for cubic, bipartite or small-diameter graphs; Balaji, Garcia, and Ducoffe and Dumitru report searches of every graph with minimum degree at least 3, to 31, 23 and 40 vertices. For problem 647, Dutta, Alexeev, Kitamura, Hughes and others on the forum had reduced the problem and searched much larger ranges.

**Today.** For problem 64, I found that every connected graph with minimum degree at least 3 on 4 to 22 vertices has a cycle of length 4 or 8, using nauty's geng restricted to that class and a separate exhaustive search of our own up to 15 vertices; the search covers all graphs with minimum degree at least 3, not just cubic, bipartite or small-diameter ones, and stops at 22 vertices; orders 16 to 22 rest on the pruned geng build, which is not published. Preprints report larger ranges (arXiv:2609.04686, 23 vertices; arXiv:2609.28594, 40 vertices). For problem 647, no n with 24 < n up to 10^14 satisfies the condition; this is a replication of a smaller range than the forum reports.

**Tomorrow.** For problem 64, order 23 and beyond, in step with what the two preprints report (all graphs to 40 vertices, bipartite to 66, cubic to 48). For problem 647, the separate code and logs give a cross-check on the forum's searches. None of these settles its problem.

**Where to go next.** Which claims need a reader and not a program? See the [verification guide](VERIFY.md) and the [statements](statement/STATEMENT.md).

## Check it yourself

What ships: the generator logs for problem 64 (orders 4 to 22), the residue-class list and the sieve logs for problem 647, a SHA-256 fingerprint (a 64-character code computed from a file; change one bit and the code changes) for each file, and a written recipe for each check. With these a reader can recheck that every part of each search finished and that the counts and ranges add up. What is not shipped, and is available on request: the geng build with our pruning, which produced the problem 64 logs for orders 16 to 22, and the C source of the sieve and of the brute force for problem 647. The recipes check the bookkeeping of the logs; they do not rerun the searches. A recipe gives the exact file format, the exact condition to test, the expected answer and a standard tool or a few lines of code that any reader can write. The recipes are in the verification guide, which starts with the fingerprint check. To compare file fingerprints, any SHA-256 tool will do:

```
sha256sum -c SHA256SUMS.txt (macOS: shasum -a 256 -c SHA256SUMS.txt)
CertUtil -hashfile <file> SHA256
```

The upper command is run inside the certificates folder on Linux (macOS: the shasum line); the lower one does the same for one file on Windows. No Lean proof is shipped in this book.

How I direct this work, and my own tools, are not part of this book. The files listed above ship; the files named there as not shipped are available on request.

About this research: https://gocheckyourself.org/about/#how

## Where to go next

What does a pass of each check show, and what does it leave open? See the [verification guide](VERIFY.md). The chapters:

- [Problem 64: cycles of power-of-two length](chapters/01-erdos-64.md)
- [Problem 647: the divisor function and the next integer](chapters/03-erdos-647.md)

We stand on the shoulders of giants. The credits page lists the work this builds on.

Go check yourself.

Have a question about this? [Ask it](https://gocheckyourself.org/about/#contact)
