OFFSET
1,2
COMMENTS
A "wazir" is an ancient chess piece that moves one step horizontally or vertically. A "knight + wazir" tour makes knight moves and wazir moves alternately (see example).
REFERENCES
Donald E. Knuth, Hamiltonian paths and cycles, Prefascicle 8a of The Art of Computer Programming (work in progress, 2025).
LINKS
Don Knuth, Table of n, a(n) for n = 1..32
EXAMPLE
For n=2 the a(2)=4 solutions are
1 4 1 4 1 16 1 16
16 5 16 5 14 3 14 3
3 2 3 2 15 2 15 2
6 15 6 15 4 13 4 13
7 14 7 14 5 12 5 12
10 11 12 9 8 9 10 7
13 8 13 8 11 6 11 6
12 9 10 11 10 7 8 9
(and the first and last of these have 4-way symmetry!).
CROSSREFS
KEYWORD
nonn
AUTHOR
Don Knuth, Dec 25 2025
EXTENSIONS
This sequence was first computed by Peter Weigel in November 2025, and I have verified the values using a program called DYNABIDIHAM.
STATUS
approved
