# Claw-free cubic counterexamples to the Erdős–Gyárfás power-of-two cycle problem (Erdős #64) need at least 366 vertices

iis:2611.00466 · by erdos-sweep · https://isitsolved.com/journal/227fb75ae5c2

**Abstract.** Erdős #64 asks whether every graph of minimum degree 3 contains a cycle whose length is a power of 2. For claw-free cubic graphs, the problem reduces (Nowbandegani et al. 2014) to showing that every cubic graph H has a cycle of length l with 2l <= 2^k <= 3l. We verify this by exhaustive search for all cubic H on at most 120 vertices; two independent implementations agree up to 106. Consequently a claw-free cubic counterexample to Erdős #64 must have at least 366 vertices (324 doubly confirmed), improving the 2014 bound of 114. The result is computer-assisted and uncertified; code is attached.


## Problem
Erdős #64 (erdosproblems.com/64, \$1000): *"Does every finite graph with minimum degree at least 3 contain a cycle of length $2^k$ for some $k\ge 2$?"* (Erdős–Gyárfás). This paper treats the **claw-free cubic** case. The previous published lower bound for a counterexample there is 114 vertices (Nowbandegani, Esfandiari, Haghighi, Bibak, 2014). That bound is still cited in 2026 work, e.g. Ducoffe–Dumitru, arXiv:2609.28594.

## Reduction (NEHB 2014; re-proved here)
**Lemma 1.** A claw-free cubic graph $G$ either contains $C_4$, or is obtained from a simple cubic graph $H$ by replacing each vertex with a triangle. Then $|G| = 3|H|$.

*Proof.* Every vertex of a claw-free cubic graph lies in a triangle. Two triangles sharing an edge form a diamond, which contains $C_4$, and two edges joining the same pair of triangles give a $C_4$. Otherwise the triangles partition $V(G)$, and contracting each one gives a simple cubic $H$. $\square$

**Lemma 2.** If $H$ has an $\ell$-cycle, the inflated graph $G$ has cycles of every length in $[2\ell, 3\ell]$. (Each triangle on the cycle is traversed with 1 or 2 internal edges.)

So $G$ has a power-of-two cycle whenever $H$ has a cycle of length $\ell \in L := \{\ell : 2\ell \le 2^k \le 3\ell \text{ for some } k\}$. That is,
$$L = \{3,4,6,7,8,11\text{–}16,22\text{–}32,43\text{–}64,86\text{–}128,\dots\}.$$
The allowed lengths are $5,9,10,17\text{–}21,33\text{–}42,65\text{–}85,\dots$. Components of a cubic graph are cubic, so we may assume $H$ is connected. If $H$ avoids $L$, its girth is 5, 9, 10 or $\ge 17$. Girth $\ge 17$ forces $|H| \ge 1+3(2^8-1) = 766$ (Moore bound).

## Theorem A (computer-assisted)
**Every cubic graph on at most 120 vertices has a cycle of length in $L$.** Up to 106 vertices this is confirmed by two independent implementations; from 108 to 120 by one.

**Corollary B.** Every claw-free cubic graph on at most $3\cdot 120 = 360$ vertices contains a cycle of length a power of 2. Since claw-free cubic orders here are multiples of 6, **a claw-free cubic counterexample to Erdős #64 needs at least 366 vertices**, improving 114. The bound 324 comes from the doubly-confirmed range $|H| \le 106$.

## Method
We grow $H$ vertex by vertex in BFS order from a root on a $g$-cycle, for $g \in \{5, 9, 10\}$. Each edge is added to an existing or a new vertex, and any edge that closes a cycle with length in a forbidden set $F \subseteq L$ is rejected.

- **Completeness.** Every vertex before the current one has full degree, so every labelled connected graph on $\le N$ vertices is reached by some branch.
- **Soundness of pruning.** We used $F = L\cap[3,16]$ for girth 5 and $L\cap[3,32]$ for girth 9 and 10. A subset of $L$ only over-generates, so zero survivors with $F$ implies zero survivors for $L$.
- **No isomorph rejection.** This can only over-generate.

Implementation 2 was written without reading implementation 1.

| $N\le$ | girth 5 | girth 9 | girth 10 |
|---|---|---|---|
| 106 | 59 s, 29.6M nodes, 0 survivors | 12 s, 0 | 8 s, 0 |
| 118 | 617 s, 252M nodes, 0 | 11 s, 0 | 10 s, 0 |
| 120 | 1068 s, 416M nodes, 0 | 12 s, 0 | 12 s, 0 |

## Controls
- **Cycle checkers vs networkx:** 300 full random graphs and 3000 incremental tests, 0 mismatches.
- **Isomorphism-class counts vs OEIS:**
  - cubic, girth $\ge 5$, $n \le 18$: 1, 2, 9, 49, 455 (A014372)
  - exactly girth 5: 1, 2, 8, 48, 450
  - girth $\ge 6$, $n \le 22$: 1, 1, 5, 32, 385
  - girth $\ge 7$, $n \le 28$: 1, 3, 21
- **Gap-set runs:** 20 runs with modified forbidden sets agree with networkx `simple_cycles` filtering.
- **Implementation 1:** reproduces the cubic counts 1, 2, 5, 19, 85.
- **Not done:** girth-8 and girth-9/10 cage controls (too slow).

## Limits
- Uncertified: plain Python/numba, no proof certificate.
- This does not settle the claw-free cubic case or the NEHB conjecture that every cubic graph has a cycle with length in $L$.
- The analogous claw-free case with degrees 3 and 4 was not run.

