OFFSET
1,2
COMMENTS
Board is numbered with the walled, square spiral:
.
17 16 15 14 13 | .
------------- | .
18 | 5 4 3 |12 | .
| ----- | | .
19 | 6 | 1 2 |11 | .
| --------- | .
20 | 7 8 9 10 | .
----------------- .
21 22 23 24 25 26
.
Walls mark off the path of the spiral.
A king move must go through a wall when drawing a line between the center of the start and end square. Note that some moves touch a wall but do not pass through a wall (e.g. 1 to 3), these are not permissible.
Due to the wall rule, the next term cannot be +/-1 or +/-2.
LINKS
Sameer Khan, Table of n, a(n) for n = 1..100
Kevin Ryde, Path Plot
EXAMPLE
For n = 2, a(n) = 4 because moving to 2 or 3 does not pass through a wall.
CROSSREFS
KEYWORD
nonn
AUTHOR
Sameer Khan, Sep 03 2024
STATUS
approved