OFFSET
0,3
COMMENTS
A digraph is Hamiltonian if it contains a directed cycle passing through every vertex exactly once.
LINKS
Wikipedia, Hamiltonian path
EXAMPLE
The a(2) = 12 digraph edge-sets:
{} {11} {11,12} {11,12,22}
{12} {11,21} {11,21,22}
{21} {11,22}
{22} {12,22}
{21,22}
MATHEMATICA
Table[Length[Select[Subsets[Tuples[Range[n], 2]], FindHamiltonianCycle[Graph[Range[n], DirectedEdge@@@#]]=={}&]], {n, 4}] (* Mathematica 8.0+. Warning: Using HamiltonianGraphQ instead of FindHamiltonianCycle returns a(4) = 46336 which is incorrect *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Jun 15 2019
EXTENSIONS
a(5)-a(6) from Bert Dobbelaere, Jun 11 2024
STATUS
approved