A328929 Squares visited by a knight moving on a square-ringed numbered board where the knight moves to the smallest numbered unvisited square; the minimum distance from the origin is used if the square numbers are equal; the smallest spiral number ordering is used if the distances are equal.
0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 2, 2, 3, 2, 3, 2, 2, 3, 3, 2, 3, 3, 2, 2, 3, 3, 4, 3, 3, 2, 3, 4, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 4, 5, 3, 3, 4, 5, 3, 4, 5, 4, 4, 5, 6, 4, 5, 3, 4, 5, 4, 5, 6, 4, 3, 4, 5, 4, 4, 5, 4, 4, 5, 4, 3, 4, 5, 4, 4, 5, 4, 4, 5, 4, 5, 4, 4, 5, 4, 4, 5, 6, 5, 5, 6
Offset: 0
Examples
The squares are labeled using the number of the square ring of squares surrounding the origin: . +---+---+---+---+---+---+---+ | 3 | 3 | 3 | 3 | 3 | 3 | 3 | +---+---+---+---+---+---+---+ | 3 | 2 | 2 | 2 | 2 | 2 | 3 | +---+---+---+---+---+---+---+ | 3 | 2 | 1 | 1 | 1 | 2 | 3 | +---+---+---+---+---+---+---+ | 3 | 2 | 1 | 0 | 1 | 2 | 3 | +---+---+---+---+---+---+---+ | 3 | 2 | 1 | 1 | 1 | 2 | 3 | +---+---+---+---+---+---+---+ | 3 | 2 | 2 | 2 | 2 | 2 | 3 | +---+---+---+---+---+---+---+ | 3 | 3 | 3 | 3 | 3 | 3 | 3 | +---+---+---+---+---+---+---+ . If the knight has a choice of two or more squares with the same number which also have the same distance from the origin, then the square with the minimum square spiral number, as shown in A316667, is chosen.
Links
- M. F. Hasler, Knight tours, OEIS wiki, Nov. 2019.
- Scott R. Shannon, Image showing the 25108 steps of the knight's path. The green dot is the first square and the red dot the last. Blue dots show the eight occupied squares surrounding the final square; the final square is on the boundary at about the 4:30 clock position.
- N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019).
Crossrefs
Programs
-
PARI
A328929(n)=normlp(coords(A328909(n))) \\ with coords() defined in A328909 or in A296030. - M. F. Hasler, Nov 04 2019
Comments