OFFSET
1,2
COMMENTS
Here a "mod n square grid graph" is a n X n graph with wrapping allowed, e.g., a path can make a 1 unit step between the left and the right edge (same row) or the top and the bottom edge (same column) of the graph.
EXAMPLE
a(4) = 19: 10 symmetric cases:
: : : :
+--+--+--+ +--+--+--+ +--+--+--+ +--+--+--+ +--+--+--+
| | | | | |
..+--+--+ +.. ..+--+--+ +.. +--+ +--+ +--+--+--+ + +--+ +
| | | | | | | | | |
..+--+ +--+.. ..+--+--+ +.. ..+ + + +.. +--+--+--+ +--+ + +
| | | | | | | |
..+ +--+--+.. +--+--+--+ +--+ +--+ +--+--+--+ ..+--+--+ +..
: : : :
: : :
+--+--+--+ +--+--+--+ +--+--+--+ +--+ +--+ +--+ +--+
| | | | | | | | | | |
+ +--+ + +--+ +--+ +--+ +--+ ..+ +--+ +.. ..+ +--+ +..
| | | | | | | | | | |
+ + + + +--+ +--+ ..+ + + +.. +--+ +--+ ..+ +--+ +..
| | | | | | | | | | | | | | |
+--+ +--+ +--+--+--+ +--+ +--+ ..+ +--+ +.. ..+ +--+ +..
: : :
plus 9 nonsymmetric cases:
: : : :
+--+--+--+ +--+--+--+ +--+--+--+ +--+--+--+ +--+--+--+
| | | | | |
..+ +--+ +.. ..+ +--+ +.. +--+--+ + +--+--+ + +--+--+ +
| | | | | | | | | | | | | |
+--+ +--+ ..+ + + +.. ..+ +--+ +.. +--+ +--+ ..+--+ + +..
| | | | | | | |
+--+--+--+ +--+ +--+ ..+ +--+--+.. ..+ +--+--+.. ..+--+ +--+..
: : : :
: :
+--+--+--+ +--+--+--+ +--+--+ + +--+--+ +
| | | | | | | | | |
+--+--+ + +--+--+ + +--+ +--+ +--+ +--+
| | | | | |
..+ +--+ +.. +--+ + + ..+ + +--+.. ..+ + +--+..
| | | | | | | | | | | |
..+ +--+--+.. ..+ +--+ +.. ..+ +--+ +.. +--+ +--+
: :
CROSSREFS
KEYWORD
nonn,walk,hard,more
AUTHOR
Charles L. Hohn, May 27 2026
STATUS
approved
