A326922 Squares visited by a knight moving on a board with squares labeled with their squared distance from the origin and where the knight moves to the smallest labeled unvisited square; the smallest spiral number ordering is used if the distances are equal.
0, 5, 2, 1, 2, 1, 2, 1, 2, 1, 4, 5, 10, 13, 4, 5, 10, 5, 10, 5, 4, 13, 10, 5, 10, 13, 4, 5, 10, 13, 16, 13, 10, 5, 16, 13, 20, 9, 8, 9, 8, 9, 8, 9, 8, 17, 18, 17, 26, 25, 20, 25, 10, 13, 16, 29, 18, 17, 26, 25, 20, 25, 20, 13, 16, 29, 18, 17, 26, 25, 20, 25, 40, 41, 34, 37, 50, 29, 18, 17, 26, 25, 20, 25, 20, 25, 26, 37, 34, 25, 26, 17, 34, 25, 26, 17, 34, 25, 20, 37
Offset: 0
Examples
The squares are labeled using their squared distance from the origin: . +----+----+----+----+----+----+----+ | 18 | 13 | 10 | 9 | 10 | 13 | 18 | +----+----+----+----+----+----+----+ | 13 | 8 | 5 | 4 | 5 | 8 | 13 | +----+----+----+----+----+----+----+ | 10 | 5 | 2 | 1 | 2 | 5 | 10 | +----+----+----+----+----+----+----+ | 9 | 4 | 1 | 0 | 1 | 4 | 9 | +----+----+----+----+----+----+----+ | 10 | 5 | 2 | 1 | 2 | 5 | 10 | +----+----+----+----+----+----+----+ | 13 | 8 | 5 | 4 | 5 | 8 | 13 | +----+----+----+----+----+----+----+ | 18 | 13 | 10 | 9 | 10 | 13 | 18 | +----+----+----+----+----+----+----+ . If the knight has a choice of two or more squares with the same label (same squared distance from the origin), then the square with the minimum spiral number, as shown in A316667, is chosen.
Links
- Scott R. Shannon, Table of n, a(n) for n = 0..22325 [The complete sequence]
- Scott R. Shannon, Image showing the 22325 steps of the knight's path. The green dot is the first square with number 0 and the red dot the last 22326th square with number 6885. The red dot is surrounded by blue dots to show the eight occupied squares. [The red dot is near the boundary at about 4 o'clock.]
- N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019).
Crossrefs
Programs
-
PARI
A326922(n)=norml2(coords(A326924(n))) \\ with coords() defined in A296030, or see formula. - M. F. Hasler, Oct 22 2019
Comments