A306291 List of possible numbers for the final 'trapped' square of a knight moving on an infinitely large 2-dimensional spirally numbered board starting from any square.
104, 125, 149, 150, 215, 235, 247, 260, 261, 262, 266, 277, 295, 311, 329, 330, 365, 368, 369, 385, 389, 404, 406, 408, 424, 425, 432, 445, 448, 467, 469, 489, 490, 494, 495, 512, 518, 534, 535, 536, 556, 557, 558, 561, 569, 580, 581, 582, 583, 586, 588, 604, 605, 606, 629, 631, 632, 634, 655, 659
Offset: 1
Examples
The ending square for the knight starting on square with value 1 is 2084 (see A316667). The first starting square value to end on square 104 (the smallest value) is 175. The first starting square value to end on square 23134 (the largest value) is 11509. Testing various upper limits has shown the square with number 404 is the most likely square for any random starting square to end on (about 8% of all sequences end on it). The complete list of 1518 end squares can be generated by checking all starting squares from 1 up to 17390 (which produces the 1518th different end square of value 16851).
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..1518
- Scott R. Shannon, Stripped down Java code for the sequence
- Scott R. Shannon, Plot of all 1518 ending squares. The yellow line indicates the boundary of the 110000 starting values used in the generation of this data. In this spiral the square with value 2 is directly above the value 1 start square (green dot). The red dot is the square with value 404 (the most likely end value square).
- Scott R. Shannon, Path for knight starting at square 175. The trapped square has value 104 - the smallest trapped square value. 8 Blue dots have been added around the final square to show all positions have been visited.
- Scott R. Shannon, Path for knight starting at square 11509. The trapped square has value 23134 - the largest trapped square value. 8 Blue dots have been added around the final square to show all positions have been visited.
- N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019)
Comments