OFFSET
0,9
COMMENTS
This sequence uses the same board numbering as A326413, and like that sequence, if the next step encounters two or more squares with the same square number, it then chooses the square which is the closest to the original 0-squared origin. But if two or more squares are found which also have the same distance to the origin, then the square which was first drawn in the spiral numbering is chosen, i.e., the smallest standard spiral numbered square as in A316667.
The sequence is finite. After 1069 steps a square with the number 9 (standard spiral number = 473) is visited, after which all neighboring squares have been visited.
Sequence A326916(n) gives the number of the square visited at step n, i.e., its rank in the spiral, starting with 0, as illustrated, e.g., in A326413. The digit on that square, i.e., a(n) can be obtained through A007376, cf. formula. - M. F. Hasler, Oct 21 2019
LINKS
Scott R. Shannon, Table of n, a(n) for n = 0..1069
Eric Angelini, Kneil's Knumberphile Knight, Cinquante signes, May 04 2019.
M. F. Hasler, Knight tours, OEIS wiki, Nov. 2019.
Scott R. Shannon, Image showing the 1069 steps of the knight's path. The green dot is the first square with number 0 and the red dot the last 1070th square with number 9. The later is surrounded by blue dots to show the eight occupied squares.
N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019).
FORMULA
EXAMPLE
The squares are numbered using single digits of the spiral number ordering as:
.
2---2---2---1---2---0---2 :
| | :
3 1---2---1---1---1 9 3
| | | | |
2 3 4---3---2 0 1 1
| | | | | | |
4 1 5 0---1 1 8 3
| | | | | |
2 4 6---7---8---9 1 0
| | | |
5 1---5---1---6---1---7 3
| |
2---6---2---7---2---8---2---9
If the knight has a choice of two or more squares in this spiral with the same number which also have the same distance from the origin, then the square with the minimum standard spiral number, as shown in A316667, is chosen.
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Scott R. Shannon, Oct 21 2019
STATUS
approved