# Erdős #64: cycles of power-of-two length

## The question

Erdős and Gyárfás asked whether every finite graph (dots, called vertices, joined by lines) with minimum degree (the fewest lines at any vertex) at least 3 contains a cycle (a closed loop of distinct vertices) whose length is a power of two (4, 8, 16, 32, ...). The problem page ([erdosproblems.com/64](https://www.erdosproblems.com/64)) 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. Liu and Montgomery proved that the answer is yes when the minimum degree is larger than some absolute constant.

## Why it matters

Hong Liu and Richard Montgomery showed the answer is yes once the minimum degree is large enough, so the open part is sparse graphs, such as those with minimum degree 3; a counterexample (an example that would show the claim is false) would have to be found among them.

## What answering it would help with

A counterexample would show that the large-minimum-degree theorem needs its degree condition; the stated coverage of an exhaustive search guides the planning of a larger search or a proof.

## What our research shows

We stand on the shoulders of giants. Every earlier result named here is theirs; the credits page lists them with references.

### What was already checked by computer

As listed on the problem page and its forum:

- Markström: a cubic counterexample (every vertex of degree exactly 3) needs at least 30 vertices.
- Nowbandegani and Esfandiari: a bipartite counterexample (one whose vertices split into two groups, with every line joining the two groups) needs at least 32 vertices.
- Nowbandegani, Esfandiari, Haghighi and Bibak: a cubic claw-free counterexample (no vertex has three neighbours with no lines among them) needs at least 114 vertices.
- Tranquilli (arXiv:2608.02675; arXiv is a site where researchers post papers before peer review): a cubic bipartite counterexample needs at least 60 vertices.
- sallerk (forum, 31 August 2026): no cubic bipartite counterexample on at most 62 vertices; general cubic graphs searched to 34 vertices.
- Results for whole families of graphs, proved by hand (Alfaiz's list on the forum), and Temeller's searches for graphs of diameter at most 3 (any two vertices are at most 3 steps apart).

As far as the sources we cite show, the earlier exhaustive searches are restricted to cubic, bipartite or small-diameter graphs. The search described here covers all graphs with minimum degree at least 3 and stops at 22 vertices. Two recent preprints report searches over all graphs up to 23 and up to 40 vertices (see below).

### What was checked here

**The question answered here.** Is there a graph with minimum degree at least 3 and at most 22 vertices that has no cycle whose length is a power of two?

**Result.** Every connected graph on at most 22 vertices with minimum degree at least 3 contains a cycle of length 4 or 8. A counterexample to the conjecture has no cycle of length 4 or 8, so there is none on at most 22 vertices. This covers cubic and non-cubic graphs alike. Order 23 (graphs with 23 vertices) is reported done in arXiv:2609.04686 (a preprint; its abstract reports a SAT-based search with DRAT proofs; a SAT solver is a program that settles yes-or-no logic puzzles, and DRAT proofs are logs that let others check its answers). The 23-vertex report is credited to that preprint.

#### Three reductions (proved here)

The three reductions are called, in order, the connected reduction, the edge-minimal reduction and the degree cap.

**Connected reduction.** A component of a counterexample is a counterexample with no more vertices. So it is enough to look at connected graphs.

**Edge-minimal reduction.** 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.

**Degree cap.** 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 is at least 2d + 1, so d is at most ⌊(n−1)/2⌋.

#### The search

The generator is geng from nauty 2.8.9 (McKay and Piperno; nauty is a standard program for working with graphs, and geng lists graphs of a chosen kind). It was called as shown below, with a pruning step that restricts it to the class described next. The pruning program is not part of this book.

```
geng -c -f -d3 -D<cap> n res/mod
```

In words: connected graphs, no 4-cycle, minimum degree at least 3, maximum degree at most the cap, on n vertices, with the search split into mod independent parts and the part number res taken. The output of a complete run for order n is every connected graph on n vertices, up to isomorphism (graphs that are the same with the vertices renamed count once), with minimum degree at least 3, no 4-cycle, no 8-cycle and its vertices of degree at least 4 pairwise non-adjacent. By the connected and edge-minimal reductions, an empty output at every order up to N shows there is no counterexample on N vertices or fewer.

| orders | parts | degree cap | outcome |
|---|---|---|---|
| 4 to 18 | one run per order | none (the trivial cap n − 1) | every run reports 0 graphs generated |
| 19 | 8 | 9 | all 8 parts: 0 graphs |
| 20 | 32 | 9 | all 32 parts: 0 graphs |
| 21 | 128 | 10 | all 128 parts: 0 graphs |
| 22 | 512 | 10 | all 512 parts: 0 graphs |

The caps are the bound the degree cap gives (⌊(n−1)/2⌋). The cost was about 1,100 core-seconds (seconds of one processor core) at order 19, 7,000 at order 20, 46,000 at order 21 and 322,000 (89 core-hours) at order 22. Each order costs about 6 to 7 times the one before.

#### Cross-checks

- 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; we did not check this against his paper). Each of the four has a 16-cycle. They are listed in the file of 24-vertex graphs in the certificates folder, and a short program of our own confirms that each is 3-regular, has no 4- or 8-cycle and has a 16-cycle.
- A separate exhaustive search of our own, written without nauty, finds no graph for orders 4 to 15. The check recipe in the verification guide says what class it searches and what it reports.

### What this does not show

- Order 23 and above are not covered by our search. Order 23 is reported in arXiv:2609.04686 (preprint).
- The shipped logs are the last lines geng printed for each part. They show that every part finished and found nothing. They cannot show that the geng binary that ran was built to prune exactly the class described above. That rests on the build, which we do not ship as a binary or as source.
- Our own separate search reaches order 15, not 22.
- This does not settle the problem and does not meet any prize condition.

### Yesterday, today, tomorrow

**Yesterday.** Erdős and Gyárfás asked whether every finite graph with minimum degree at least 3 has a cycle whose length is a power of two, and, according to the problem page, "believed the answer must be negative"; Liu and Montgomery proved yes for large enough minimum degree. As far as the sources we cite show, the earlier exhaustive searches (Markström; Nowbandegani and Esfandiari; Nowbandegani, Esfandiari, Haghighi and Bibak; Tranquilli; sallerk) were for cubic, bipartite or small-diameter graphs (the claw-free bound is for cubic claw-free graphs; the small-diameter searches are Temeller's), and the lower bounds they give reach 30, 32, 60 and 114 vertices for those families (sallerk's searches reach 34 vertices for cubic graphs and 62 for cubic bipartite graphs). Two recent preprints report larger ranges: arXiv:2609.04686 reports that every such graph on at most 23 vertices has a cycle of length 4 or 8, and arXiv:2609.28594 reports the same check for all graphs on at most 40 vertices, all bipartite graphs on at most 66 and all cubic graphs on at most 48. Our search covers 4 to 22 vertices.

**Today.** I generated, with nauty's geng restricted to this class, every connected graph on 4 to 22 vertices with minimum degree at least 3 and no 4-cycle, no 8-cycle and its vertices of degree 4 or more pairwise non-adjacent, and found none; with the three reductions proved in this chapter, this shows every such graph on at most 22 vertices has a cycle of length 4 or 8. The search covers every connected graph with minimum degree at least 3, cubic or not, stops at 22 vertices, and cost about 89 core-hours at order 22. At order 24 with maximum degree 3 it finds exactly the four graphs attributed to Markström, as reported by sallerk. A separate exhaustive search of our own reaches order 15, and the generator logs were re-read for completeness.

**Tomorrow.** Our search continues on an ordinary home computer, and we expect to report more substantial results in future. Each order costs roughly 6 to 7 times the one before. The two preprints above report much larger ranges (all graphs to 40 vertices, bipartite to 66, cubic to 48). The problem stays open.

## Check it yourself

The [verification guide](../VERIFY.md) has two recipes for this problem: a bookkeeping check of the generator logs for orders 4 to 22, and a small-order search with the four 24-vertex graphs.

## Where to go next

- How would a counterexample to the divisor-function problem be found, and why can a search reach 10^14? See the [chapter on problem 647](03-erdos-647.md).
- What does a pass of the log check show, and what does it not? See the [verification guide](../VERIFY.md).
