A328931 Number of Hamiltonian paths in an n X n square, starting from an edge, finishing anywhere, all symmetries excluded.
1, 1, 4, 51, 660, 30745, 1621471, 312637285, 72599875346, 60968508324409, 64128000370443037, 240651566540823214362, 1162174738476331286327484, 19776621796151182708398884540, 441809773825445785471324877668710
Offset: 1
Examples
All distinct paths through a 1 X 1 labyrinth visiting all cells. + + |**| +--+ . All distinct paths through a 2 X 2 labyrinth visiting all cells. + +--+ | |**| + + + | | +--+--+ . All distinct paths through a 3 X 3 labyrinth visiting all cells. + +--+--+ | | | + + + + | | | +--+--+ + |** | +--+--+--+ . + +--+--+ | | **| + + +--+ | | | + +--+ + | | +--+--+--+ . + +--+--+ | | | + + + + | |**| | + +--+ + | | +--+--+--+ . + +--+--+ | | | + + + + | | | | + + + + | |**| +--+--+--+
Links
- David Lawrence, All paths up to 4 X 4
Extensions
a(8)-a(15) from Andrew Howroyd, Oct 31 2019
Comments