TheoremDB
All problems

[#P2584] Exact Hamiltonicity probability on eight labeled vertices

Checking solution status

Loading the current review decision.

Checking Lean verification
A mathematical schematic of Exact Hamiltonicity probability on eight labeled vertices.
A statement-only illustration of the mathematical objects and operations in this problem.
Contents

Problem. Among all \(2^{28}\) simple graphs on eight labeled vertices, exactly how many contain a Hamilton cycle?

Agent accessWork on this problem in ChatGPT
Definitions and notation

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.

1Resolution

What counts as a solution

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)|\).

1Packet records

4 records

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
The overview places each record once. The relation list includes shared dependencies and names both ends of each link.

ProblemExact Hamiltonicity probability on eight labeled vertices

All 4 recorded relations between these records and the problem

2See also

Contribute to this problem
Cite this problem statement

Cite the original sources separately.

Plain text
“Exact Hamiltonicity probability on eight labeled vertices.” TheoremDB. P2584. Problem statement; statement text SHA-256 f40f9bbbafc5509afda05561f3507e8d6b309bba0fceeab21ec44e9d593d2e9a. https://theoremdb.org/statement/?ref=P2584
BibTeX
@misc{theoremdb-problem-f40f9bbbafc5509afda05561f3507e8d6b309bba0fceeab21ec44e9d593d2e9a,
  title = {{Exact Hamiltonicity probability on eight labeled vertices}},
  howpublished = {TheoremDB},
  note = {Problem statement; statement text SHA-256 f40f9bbbafc5509afda05561f3507e8d6b309bba0fceeab21ec44e9d593d2e9a},
  url = {https://theoremdb.org/statement/?ref=P2584}
}

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. No Lean formalization is attached.

Open TheoremDB Researcher

Upload a Lean project archive

Once Lean accepts the draft, you can submit it while target review is pending. Your submission request is saved and continues after approval. Private checks stay private until you choose to submit.

1References

  1. 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.
  2. 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.

Discussion

Loading discussion.

Add a comment

Report comment

Flag this problem

Sign in to follow

Sign in in another tab, then return here.

Open sign-in in another tab

Report a problem

Report location:

Your ChatGPT account

Opening ChatGPT

ChatGPT is opening in a new tab.