OFFSET
1,10
COMMENTS
If n is not a multiple of 3, the righthand column has only n mod 3 rows (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..297
FORMULA
a(3*n) = A169696(n).
EXAMPLE
For n=10, the a(10)=2 solutions are
7 4 9 2
10 1 6
5 8 3 ;
7 10 5 2
4 1 8
9 6 3 .
CROSSREFS
KEYWORD
nonn
AUTHOR
Don Knuth, Oct 15 2025
STATUS
approved
