[#P2584] Exact Hamiltonicity probability on eight labeled vertices
Problem. Among all \(2^{28}\) simple graphs on eight labeled vertices, exactly how many contain a Hamilton cycle?
1Context
The event first appears to exceed probability one half at eight vertices. An exact count would replace that simulation claim.
2Problem setup
Remark 1. Each of the 28 possible edges is independently present or absent.
Definition 1. A Hamilton cycle visits all eight vertices exactly once.
3What counts as a solution
- Return the exact numerator and a reproducible counting certificate, such as an upward-closure hash plus independent orbit check.
1The answerReproducednot Lean-verified
Answer (Exactly 151,676,112 labeled graphs on eight vertices are Hamiltonian). The exact probability is 9,479,757 divided by 16,777,216, approximately 0.565037548542022705078125.[2]
Verification
There are \(\binom82=28\) possible edges, so the uniform sample space contains \(2^{28}=268{,}435{,}456\) labeled simple graphs. Exactly \[ 151{,}676{,}112 \] of them contain a Hamilton cycle. Thus \[ \Pr(G\text{ is Hamiltonian}) =\frac{151{,}676{,}112}{268{,}435{,}456} =\frac{9{,}479{,}757}{16{,}777{,}216} =0.565037548542022705078125. \] The complementary count is \(116{,}759{,}344\). The Hamiltonian count exceeds half of the sample space by \(17{,}458{,}384\).
Two exhaustive computations reproduce the numerator. The first takes the upward closure of all 2,520 labeled Hamilton-cycle edge masks. The second generates all 12,346 isomorphism classes on eight vertices, finds 6,196 Hamiltonian classes, and sums the orbit weights \(8!/|\operatorname{Aut}(G)|\).
1Records
Notes and companion material
Original intake status. SOLVED in the independently reviewed TheoremDB packet as of 2026-08-01. The exact probability is 9,479,757 divided by 16,777,216, approximately 0.565037548542022705078125.
- Independent isolated execution completed successfully for Replayable 32 MiB upward-closure certificate, Independent nauty orbit-weighted enumeration. Every embedded assertion passed and the run reproduced the selected exact result: The exact probability is 9,479,757 divided by 16,777,216, approximately 0.565037548542022705078125.
- Fresh exact-title, parameter, primary-source, and controlled-corpus searches were completed on 2026-08-01.
Recorded example 1. Exact Hamiltonian graph counts for 3,4,5,6,7 vertices are 1,10,218,10078,896756.
Computational notes
- Boolean zeta transforms over edge masks verified the exact counts through seven vertices. A seeded simulation of 200000 uniform eight-vertex graphs found 112912 Hamiltonian graphs, an estimated probability 0.56456. This last figure is simulation evidence only.
How the 4 records connect
ProblemExact Hamiltonicity probability on eight labeled vertices
- Computation 1Exactly 151,676,112 labeled graphs on eight vertices are Hamiltonianin this packetReproduced
- Artifact 1Replayable 32 MiB upward-closure certificatereproducesReproduced
- Artifact 2Independent nauty orbit-weighted enumerationcross checksReproduced
- Route 1OEIS records the labeled count and its complementinformsSupported
2See also
- Rank log-concavity for symmetric binary matrices through order fiftyprobabilistic combinatorics
- Median satisfiability threshold for a six-variable clause setprobabilistic combinatorics
- Cycle Double Cover Conjecturegraph theory
How to cite
TheoremDB contributors, “Exact Hamiltonicity probability on eight labeled vertices,” TheoremDB research memory, snapshot of July 24, 2026. https://theoremdb.org/statements/hamiltonian-graph-probability-eightThis page as plain text: hamiltonian-graph-probability-eight.md
This problem includes 4 records joined by 4 typed links, sourced from oeis.org[2], current as of July 24, 2026.
1Lean verification
Lean formalization needed
An informal proof is recorded. A Lean formalization still needs to be attached. TheoremDB Researcher can start from the exact statement and pinned world.
Open TheoremDB ResearcherThe prefilled request prepares the target and checks drafts. It submits the accepted proof and polls verification through any packet-review handoff.
1References
- Falk Hüffner, tinygraph: Exploring Graph Conjectures on Small Graphs, GitHub repository, commit 97665350689943d64b90ca1501b3291db0538a0a, May 8, 2019. Independent C++11 driver executed against tinygraph 9766535 and nauty 2.6r6 on 2026-07-24. ↗software · software source · pinned repository version in URL · checked 2026-08-01Source use: original summary.Reused material: pinned commit 9766535, graph-enumeration and Hamiltonicity routines invoked by the independent C++11 driver.Reuse basis: fair use reviewed · rights holder: Falk Hüffner · checked 2026-08-01 by Philip Weiss, TheoremDB staff.Required attribution: Falk Hüffner, tinygraph: Exploring Graph Conjectures on Small Graphs, GitHub repository, commit 97665350689943d64b90ca1501b3291db0538a0a, May 8, 2019.This source fixes the published convention, theorem, formula, or independent answer used to check the packet resolution.Also cited at pinned commit 9766535, graph-enumeration and Hamiltonicity routines invoked by the independent C++11 driver.For Exact Hamiltonicity probability on eight labeled vertices, this source supplies the pinned implementation used to enumerate and test the eight-vertex graphs; the packet's driver supplies the exact count.
- Packet source. Gus Wiseman, “A326208: Number of Hamiltonian labeled simple graphs with n vertices,” The On-Line Encyclopedia of Integer Sequences (2019); terms a(7) through a(11) extended by Falk Hüffner, June 21, 2019. Entry definition and labeled Hamiltonian-graph counts, especially a(8). ↗reference database · dataset source · checked 2026-08-01Source use: data used.Reused material: Entry definition and labeled Hamiltonian-graph counts, especially a(8).Reuse basis: fair use reviewed · rights holder: The OEIS Foundation Inc. and the credited contributors · checked 2026-08-01 by Philip Weiss, TheoremDB staff.Required attribution: Gus Wiseman, “A326208: Number of Hamiltonian labeled simple graphs with n vertices,” The On-Line Encyclopedia of Integer Sequences (2019); terms a(7) through a(11) extended by Falk Hüffner, June 21, 2019.For Exact Hamiltonicity probability on eight labeled vertices, this source records the exact labeled Hamiltonian-graph count used to check the eight-vertex probability.Also cited at Exact certificates in ham8-artifact-upward-closure and ham8-artifact-orbit-weighted-check.Also cited at OEIS A326208, Number of Hamiltonian labeled simple graphs with n vertices; OEIS A326207, Number of non-Hamiltonian labeled simple graphs with n vertices; OEIS A003216, Number of Hamiltonian graphs with n nodes; J. P. Dolch, Names of Hamiltonian Graphs, Congressus Numerantium 8 (1973), 259-271; Frank Harary and Edgar M. Palmer, Graphical Enumeration, Academic Press, 1973, p. 219; Brendan D. McKay and Adolfo Piperno, Practical Graph Isomorphism, II, Journal of Symbolic Computation 60 (2014), 94-112, DOI 10.1016/j.jsc.2013.09.003.Also cited at Inline Python 3 exact computation executed on 2026-07-24.Source named by the research packet.
Finite exact probability target with a direct 2^28 truth table and a compact cycle-mask representation.