OFFSET
1,2
COMMENTS
This is a variation of A316667, but here as the knight moves it leaves a straight line between the center of the two squares it moves from and to, and subsequent steps cannot cross the lines between squares of any previous steps.
The path is finite - after visiting 37 squares, the square with number 53 is reached, after which all 8 squares the knight could move to have either been previously visited or are blocked by the path of previous steps. See the attached image.
LINKS
Scott R. Shannon, Image of the full path. The starting square is green, the last square is red, and the eight squares surrounding the last square that have been previously visited or cannot be reached due to previous paths are surrounded by blue.
EXAMPLE
a(6) = 22 as from a(5) = 9 the squares to which the knight could move that have not been previously visited are 4, 12, 22, 26, 28, 46, 48. Of these, 4 is blocked by the path between 3 and 6, while 12 is blocked by the path between 10 and 3. This leaves 22 as the smallest unvisited square that is not blocked by any previous path.
CROSSREFS
KEYWORD
nonn,fini,full,walk
AUTHOR
Scott R. Shannon, Mar 18 2026
STATUS
approved
