login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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. 18

%I #22 Mar 31 2024 17:10:17

%S 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,

%T 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,

%U 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

%N 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.

%C This sequence uses the number of the square ring of squares surrounding the 0-numbered origin to enumerate each square on the board. At each step the knight goes to an unvisited square with the smallest square number. If the knight has a choice of two or more squares with the same number it then chooses the square which is the closest to the 0-squared origin. If two or more squares are found which also have the same distance to the origin, then the square which was first drawn in a square spiral numbering is chosen, i.e., the smallest spiral numbered square as in A316667.

%C The sequence is finite. After 25108 steps a square with the number 73 (standard spiral number = 21041) is visited, after which all neighboring squares have been visited.

%H M. F. Hasler, <a href="/wiki/Knight_tours">Knight tours</a>, OEIS wiki, Nov. 2019.

%H Scott R. Shannon, <a href="/A328929/a328929.png">Image showing the 25108 steps of the knight's path</a>. 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.

%H N. J. A. Sloane and Brady Haran, <a href="https://www.youtube.com/watch?v=RGQe8waGJ4w">The Trapped Knight</a>, Numberphile video (2019).

%F a(n) = max(|A174344(p)|, |A274923(p)|), p = A328908(n)+1. - _M. F. Hasler_, Nov 04 2019

%e The squares are labeled using the number of the square ring of squares surrounding the origin:

%e .

%e +---+---+---+---+---+---+---+

%e | 3 | 3 | 3 | 3 | 3 | 3 | 3 |

%e +---+---+---+---+---+---+---+

%e | 3 | 2 | 2 | 2 | 2 | 2 | 3 |

%e +---+---+---+---+---+---+---+

%e | 3 | 2 | 1 | 1 | 1 | 2 | 3 |

%e +---+---+---+---+---+---+---+

%e | 3 | 2 | 1 | 0 | 1 | 2 | 3 |

%e +---+---+---+---+---+---+---+

%e | 3 | 2 | 1 | 1 | 1 | 2 | 3 |

%e +---+---+---+---+---+---+---+

%e | 3 | 2 | 2 | 2 | 2 | 2 | 3 |

%e +---+---+---+---+---+---+---+

%e | 3 | 3 | 3 | 3 | 3 | 3 | 3 |

%e +---+---+---+---+---+---+---+

%e .

%e 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.

%o (PARI) A328929(n)=normlp(coords(A328909(n))) \\ with coords() defined in A328909 or in A296030. - _M. F. Hasler_, Nov 04 2019

%Y Cf. A316667, A326922.

%Y Cf. A328909 (number of the visited square, following spiral numbering).

%Y Cf. A326922 (variant using Euclidean or L2-norm), A328928 (variant with 1-norm = taxicab distance); A326924, A328908 (corresponding trajectories, i.e., spiral number of squares).

%K nonn,fini

%O 0,2

%A _Scott R. Shannon_, Oct 31 2019

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 21:00 EDT 2024. Contains 371767 sequences. (Running on oeis4.)