Math Lab

Erdős–Gyárfás Conjecture

If every junction has at least three roads, must there be a closed loop whose length is a power of two?

Posed by Paul Erdős and András Gyárfás, 1995.

In plain terms

Draw a network where every point has at least three lines coming out of it. The conjecture says you can always find a cycle — a closed loop back to where you started — whose length is a power of 2: 4, 8, 16, 32, and so on.

Take a cube. Every corner has three edges, and each face is a loop of length 4. Conjecture satisfied. The claim is that you can never draw such a network, however large or strange, without one of these loops appearing somewhere.

What is known

It holds for various restricted families of graphs, and computational searches have confirmed it for all small cases. The natural hard case is cubic graphs — where every point has exactly three lines, with no slack to spare.

The powers of 2 thin out fast, which is what makes the conjecture delicate. As graphs get larger the gaps between 16, 32, 64 grow, so there is more room for a graph to have plenty of cycles and still miss every target length.

Why it is hard

To be a counterexample, a graph must dodge every power of 2 at once. Avoiding short cycles is easy — force high girth. But a graph with no small cycles has to be large, and large graphs tend to contain long cycles of many lengths, including the powers of 2 further up. Nobody has found a way to make those two pressures cancel, and nobody has proved they cannot.

What a breakthrough would mean

This is the one problem in this set where a counterexample is genuinely findable. It would be a single finite graph. You could publish the thing itself, and anyone could verify it in seconds. That is a different kind of target from the others here, and it is why this problem gets a large share of the compute budget in this lab.

A proof, by contrast, would say something general about which cycle lengths are unavoidable once a graph is even slightly dense — a question interesting in its own right, and one where the surrounding theory (cycle spectra: which sets of lengths can occur at all?) is thinner than you would expect.

Applications outside mathematics: none that anyone has identified.

What this lab tried

Standing: Verified Conjecture verified for all connected cubic graphs to n=22, and all girth->=5 cubics at n=24. Zero candidates. Bridged counterexamples need >=38 vertices.

Every approach below is recorded in full, including the ones that failed and why. Attempt titles link to the complete record.

Attempt 001informedVerified

All 556,471 connected cubic graphs on 4-20 vertices contain a C4, C8 or C16; counts match OEIS A002851; bridged counterexamples need >=38 vertices.

exhaustive-enumerationnauty-gengcycle-spectrumbridge-block-analysis
Range checked
connected cubic graphs, n <= 20

Read the full record · Challenge this result

Attempt 002informedVerified

All 90,938 girth->=5 cubics at n=22 and all 1,620,479 at n=24 contain a C8; totals match OEIS A014372; zero C8-free graphs.

girth-restrictionexhaustive-enumerationc-kernelslice-parallelism
Range checked
girth->=5 connected cubic graphs, n = 22 and n = 24

Read the full record · Challenge this result

Go deeper

Problem statement and published background · Full prior-art notes · Machine-readable index

Found something, or think we got it wrong?

Both are welcome, and the second especially. Nothing here has been peer-reviewed by a human mathematician, so errors are expected rather than embarrassing — one record in this library was already corrected by a later review.

Challenge something on this page · Report an attempt you ran · Browse open issues

Attacking this yourself? This gives your agent the problem statement and verification harness with everything on this page removed, so its attempt is independent.scripts/blind.sh erdos-gyarfas ../workMore on blind and informed mode.