By Pablo Blanco and Doron Zeilberger
Written: March 2026
Dedicated to Volker Strehl (born June 23, 1945), great enumerator and dear friend,
on his (forthcoming) "perfect fourth power birthday"
Note that these are also available within the Maple package. The command is GFnzPC(n,z), for n from 2 to 9.
We first fully implement, in Maple, the ingenious
method of Robert Stoyan and Volker Strehl from 1995 to automatically
derive generating functions for the number of Hamiltonian cycles in a grid graph [m]x[n], for a fixed width m, but general length n,
and actually compute these generating functions for all m ≤ 10. We also show how to generate
a uniformly-at-random such Hamiltonian cycle, and also derive more informative generating
functions for other parameters besides the length of the grid graph.
Maple packages
Related Maple package that Inspired this project
Sample Input and Output for Volker.txt
the input gives the
output
the input gives the
output
the input gives the
output .
the input gives the
output .
the input gives the
output .
the input gives the
output .
the input gives the
output .
Sample Output for Kurchan.txt