A309918
The number of steps for a knight to be trapped when moving on a spirally numbered 2D grid and starting at square n.
Original entry on oeis.org
2016, 880, 2741, 857, 2741, 857, 2741, 3611, 2590, 1540, 1846, 2061, 4892, 1047, 4139, 753, 3559, 590, 426, 1205, 1140, 2759, 3830, 4687, 1839, 2101, 2861, 5892, 5500, 1295, 2674, 1213, 890, 1839, 2749, 6531, 1118, 3632, 1496, 2888, 1995, 2574, 2713, 495, 1479, 5509, 1414, 3926, 1078
Offset: 1
The knight starting on square 1 becomes trapped at step 2016, see A316667.
A306308
Table read by rows: the end square loops for a trapped knight moving on an infinitely large 2-dimensional spirally numbered board starting from any square.
Original entry on oeis.org
404, 3328, 2666, 1338, 736, 1535, 2168, 406, 2444, 2945, 2245, 605, 684, 2663, 2312, 3323, 935, 910
Offset: 1
The 3 end square loops are:
1: 404, 3328, 2666
2: 1338, 736, 1535, 2168, 406, 2444, 2945, 2245, 605, 684, 2663, 2312, 3323
3: 935, 910
Starting the knight from the square 1 leads to the first 3-member loop after two iterations: the sequence of end squares is 2084, 404, 3328, 2666, 404, ... . Starting from the square 2 leads to the second (13-member) loop after ten iterations: the sequence is 711, 632, 4350, 3727, 3610, 7382, 2411, 4632, 4311, 1338, ... . The third (2-member) loop is not seen until the knight starts from square 284, the sequence being entered after two iterations via 1168, 935, 910, 935, ... .
- Scott R. Shannon, Square positions for the 3 loops. The red line connects the 3 points of the first loop, the blue line connects the 13 points of the second loop, and the green line connects the 2 points of the third loop. The white point marks the central square with number 1.
- Scott R. Shannon, Starting square to loop mapping. A plot of the first 302500 starting squares mapped via color to the end square loop into which the corresponding knight path eventually falls: red is the first (3-member) loop, blue the second (13-member) loop, green the third (2-member) loop. The white point marks the central square with number 1 for clarity (it actually falls into the red first loop).
- Scott R. Shannon, The knight's path when starting at square 910. Showing path one of the 2-member loop - the green square is the starting square 910, the red square is the end square 935.
- Scott R. Shannon, The knight's path when starting at square 935. Showing path two of the 2-member loop - the green square is the starting square 935, the red square is the end square 910.
- Scott R. Shannon, Stripped down Java code to produce the loop values.
- N. J. A. Sloane and Brady Haran, The Trapped Knight Numberphile video (2019).
Cf.
A306291,
A316884,
A316967,
A316667,
A316328,
A317106,
A317105,
A317416,
A317415,
A317438,
A317437, and
A323469,
A323470,
A323471,
A323472.
A333683
The number of steps for a knight to be trapped when moving on a spirally numbered hexagonal board to the lowest available unvisited cell and starting at cell n.
Original entry on oeis.org
83965, 738091, 277614, 252431, 731818, 731818, 765367, 622644, 252431, 252431, 1409949, 1720441, 512861, 925161, 251386, 1967478, 24228, 759058, 738091, 765367, 813609, 251386, 427289, 3220511, 48709, 151878, 231983, 121515, 113147, 894298, 158680, 815439, 1452850, 231479
Offset: 1
The knight starting on cell 1 becomes trapped after 83965 steps, see A327131.
A307422
End squares for a trapped knight moving on a diagonally numbered 2D board where the knight starts from square n.
Original entry on oeis.org
1378, 66, 561, 406, 2701, -1, 78, 15, 561, 78, 120, 1378, 36, 36, 435, 66, 2628, 1275, 78, 378, 190, 1326, 136, 300, 15, 325, 3570, -1, 171, 231, 780, 595, 21, 28, 561, 276, 120, 28, 28, 496, 435, -1, 153, 171, 2415, 28, 496, 300, 2850, 55, 15, 465, 1431
Offset: 1
a(1) = 1378 (see A316588).
The table below shows the starting square to end square mapping - either a single square or a quadratic equation for all valid values, and if the end square(s) are on the left edge of the board. For all quadratics, t >= 1. This is from data for all starting squares up to 10 million.
-------------------------------+----------------------------+-----
Start | End | Left
square | square | Edge
-------------------------------+----------------------------+-----
42 | NA (unbounded) | -
8*t^2-2*t = u(t) | NA (unbounded) | -
-------------------------------+----------------------------+-----
2228 | 5299 | No
3569 | 9487 | No
27256 | 50254 | No
187573 | 208320 | No
191268, 200657 | 486688 | No
-------------------------------+----------------------------+-----
9*t^2/2+ 589*t/2+4771 = n(t) | 4772 | No
9*t^2/2+1813*t/2+45735 | 45736 | No
9*t^2/2+3745*t/2+194995 | 194996 | No
-------------------------------+----------------------------+-----
72*t^2+222*t+170 = ps(t) | 72*t^2+738*t+1891 = pe(t) | Yes
72*t^2+270*t+252 | 72*t^2+786*t+2145 | Yes
72*t^2+318*t+350 | 72*t^2+666*t+1540 | Yes
-------------------------------+----------------------------+-----
All other | >= 15, of form | Yes
squares | t^2/2+9*t/2+10 |
-------------------------------+----------------------------+-----
For 'All other squares' about 88% of all paths end on one of the squares 28, 210, 231, 3655, 69751, 96580, 208981. Note that some left-edge squares, for example, 14535, currently have no known starting square which leads to a path ending on them.
- Scott R. Shannon, Path for starting square 780. This is starting square u(10)=780 and thus an unbounded knight path. This shows how the path forms a repetitive and impenetrable wall of visited points as it moves outwards. Note how the position of the starting square (shown in green) is such that it leaves the path's repetitive pattern unaffected as it moves outward from the origin past the starting square. This is only true for every 4th starting square down the left-hand edge of the board.
- Scott R. Shannon, Path for starting square 42. This is the only starting square not given by u(t) leading to an unbounded knight path. Note how the position of the starting square is such that it does not interrupt the repetitive pattern of the outward moving knight path, although the resulting pattern is slightly different from a(10) above, and from all other similar unbounded paths.
- Scott R. Shannon, Path for start squareing 4011. This path ends at 231 - one of the 4 dominant end squares. Square 4011 and all similar starting squares that lead to paths that move to the top edge of the board will follow a similar pattern and all end on one of the squares 28, 210, 231 or 3655.
- Scott R. Shannon, Path for starting square 8. This square leads to the first path to be trapped on square 15 - the smallest possible end square.
- Scott R. Shannon, Path for start square 3080. This is start value = ps(5) = 3080 and has an end square pe(5) = 7381 (shown in red, with blocked squares in blue). Note how the repetitive pattern is broken when the path crosses the starting square as it moves away from the origin, causing the path to become more randomized and eventually trapped.
- Scott R. Shannon, Path for starting square 2228. This path ends on square 5299 - the first of the five singular non-left-edge ending squares. As the starting square is closer to the origin than the eventual end square, and no other starting points farther out were found that end on 5299, it is probable that the 2228 to 5299 end square path is unique.
- Scott R. Shannon, Path for starting square 8953. This is n(12) = 8953, ending on square 4772. All paths that are trapped on square 4772 will have starting squares along the straight line seen in this image, pointing down and right and passing next to the end square itself. The other two end squares 45736 and 194996 show similar behavior.
- N. J. A. Sloane and Brady Haran, The Trapped Knight, Numberphile video (2019)
A333684
The cell number where a knight is trapped when moving on a spirally numbered hexagonal board to the lowest available unvisited cell and starting at cell n.
Original entry on oeis.org
72085, 706243, 270402, 236090, 716518, 716518, 730674, 657313, 236090, 236090, 1318101, 1634797, 482448, 901595, 237177, 1946730, 21429, 726318, 706243, 730674, 793200, 237177, 405933, 3095967, 51035, 159266, 218715, 106443, 101767, 927137, 148315, 786512, 1495770
Offset: 1
The knight starting on cell 1 becomes trapped on cell 72085 after 83965 steps, see A327131.
Showing 1-5 of 5 results.
Comments