A377015 Squares visited by a knight moving on a square-spiral numbered board where the knight moves to a square which has been previously visited the fewest number of times. If two or more such squares exist the smallest numbered square is chosen.
1, 10, 3, 6, 9, 4, 7, 2, 5, 8, 11, 14, 29, 32, 15, 12, 27, 24, 45, 20, 23, 44, 41, 18, 35, 38, 19, 16, 33, 30, 53, 26, 47, 22, 43, 70, 21, 40, 17, 34, 13, 28, 25, 46, 75, 42, 69, 104, 37, 62, 95, 58, 55, 86, 51, 48, 77, 114, 73, 108, 151, 68, 103, 64, 67, 36, 39, 66, 63, 96, 59, 56, 87, 52, 49, 78, 115, 74, 71, 106, 149, 102, 99, 140, 61, 94, 31, 54, 85, 50
Offset: 1
Examples
The board is numbered with the square spiral: . 17--16--15--14--13 . | | . 18 5---4---3 12 29 | | | | | 19 6 1---2 11 28 | | | | 20 7---8---9--10 27 | | 21--22--23--24--25--26 . a(1) = 1, the default starting square. a(2) = 10 as all eight surrounding available squares, 10, 12, 14, 16, 18, 20, 22, 24 have zero previous visits, so it chooses the smallest number of those, namely 10. a(3) = 3 as there are seven available squares that have zero previous visits, and of those 3 is the smallest number. Note the 1 square is not considered as that has one previous visit which is more than the other seven squares. a(2017) = 1733 as all eight surrounding available squares have been visit once, so it chooses the smallest number of those, namely 1733. This is the first term to differ from A316667.
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..20000
- Scott R. Shannon, Image of the first 100000 terms.
- Scott R. Shannon, Image of the path between the first and second visit to the origin. In this and similar images, the steps are colored white, grey, red, orange, yellow, green, blue, indigo, and violet across the entire path to show their relative ordering. This image is the same as in A316667 except for the additional final steps, colored violet, back to the origin starting at a(2017). Also show as red circles are the visited squares whose eight available neighbours all have the same previous visit count.
- Scott R. Shannon, Image of the path between the second and third visits to the origin.
- Scott R. Shannon, Image of the path between the third and fourth visits to the origin. This shows the path beginning to get more complex - the knight travels along different loops of squares during different parts of its walk, moving between loops via generally straight line paths.
- Scott R. Shannon, Image of the path between the sixth and seventh visits to the origin.
- Scott R. Shannon, Image of the path between the eighth and ninth visits to the origin
- Scott R. Shannon, Image of the path between the twelfth and thirteenth visits to the origin.
- Scott R. Shannon, Image of the path between the twenty-third and twenty-fourth visits to the origin. This is identical to the path between the fifth and sixth visits.
- Scott R. Shannon, Image of the path between the twenty-ninth and thirtieth visits to the origin.
Comments