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!)
A328698 Successive squares visited by a knight on the single-digit square spiral, with ties resolved by rotating left from direction of the last leap. 8

%I #26 Feb 22 2021 13:25:48

%S 0,0,1,0,1,0,1,1,2,2,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,0,1,1,1,1,

%T 1,1,0,1,1,1,0,2,2,2,1,1,1,3,2,1,1,0,2,3,2,2,1,3,1,1,1,1,1,6,2,3,4,1,

%U 1,0,0,0,1,1,1,1,1,1,5,0,1,1,1,0,0,1,0,1,2,2,0,2,0,1,2,3,0,1,1,1

%N Successive squares visited by a knight on the single-digit square spiral, with ties resolved by rotating left from direction of the last leap.

%C This is a variation of sequence A326413 where, instead of taking the lowest x-coordinate of the two tied squares with the same board number and distance from the origin, rotate left (counterclockwise) from the direction of the last leap and choose the first of the two squares encountered.

%C For the sequence given here, if a tied square is directly in line with the last leap direction it is chosen last. The sequence is finite as after 644 steps a square with the number 7 is reached after which all eight surrounded squares have been visited.

%C For the sequence where a tied square which is directly in line with the last leap direction is chosen first, then there are 946 steps taken before the knight is trapped. The visited squares for this variation are given as a link.

%H Scott R. Shannon, <a href="/A328698/b328698.txt">Table of n, a(n) for n = 0..644</a>.

%H Scott R. Shannon, <a href="/A328698/a328698.png">Image for the path</a>. The starting square is shown in green, and final square in red. Each of the 6 yellow squares are where the next step was decided from two tied squares by a left rotation; the pink square shows the chosen square, and a gray square the other square. Also shown are the board numbers, and the step number in brackets, for each step.

%H Scott R. Shannon, <a href="/A328698/a328698.txt">Sequence values when a tied square directly ahead is chosen first</a>.

%H Scott R. Shannon, <a href="/A328698/a328698_1.png">Image for the path where tied square directly ahead is chosen first</a>. This has 7 choice squares shown in yellow.

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

%e The digit-square spiral is

%e .

%e .

%e 2---2---2---1---2---0---2 2

%e | | |

%e 3 1---2---1---1---1 9 3

%e | | | | |

%e 2 3 4---3---2 0 1 1

%e | | | | | | |

%e 4 1 5 0---1 1 8 3

%e | | | | | |

%e 2 4 6---7---8---9 1 0

%e | | | |

%e 5 1---5---1---6---1---7 3

%e | |

%e 2---6---2---7---2---8---2---9

%Y Cf. A326413, A316667.

%K nonn,fini,full

%O 0,9

%A _Scott R. Shannon_, Oct 25 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 March 28 18:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)