A336092 Squares visited by a chess king moving on a square-spiral numbered board where the king moves to the adjacent unvisited square containing the spiral number with the fewest divisors. In case of a tie it chooses the square with the largest spiral number.
1, 7, 23, 47, 79, 49, 25, 9, 11, 29, 53, 87, 127, 177, 233, 299, 373, 454, 543, 641, 746, 859, 979, 1109, 1247, 1393, 1249, 1111, 983, 863, 751, 647, 753, 866, 865, 985, 1115, 1253, 1399, 1553, 1714, 1883, 2059, 2243, 2437, 2638, 2846, 3063, 3287, 3061, 2843, 2633, 2841, 3057, 3281, 3513, 3755
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 starting square for the king. a(2) = 7. The eight unvisited squares around a(1) the king can move to are numbered 2,3,4,5,6,7,8,9. Of these 2,3,5,7 have the minimum two divisors, and of those 7 is the largest. a(3) = 23. The seven unvisited squares around a(2) the king can move to are numbered 6,8,19,20,21,22,23. Of these 19 and 23 have the minimum two divisors, and of those 23 is the largest.
Links
- Scott R. Shannon, Image showing the 21276 steps of the king's path. A green dot, far lowest left, marks the starting 1 square and a red dot, far upper right, the final square with number 281747427. The red dot is surrounded by eight blue dots to show the occupied neighboring squares. A yellow dots marks the smallest unvisited square with number 2. This is a high resolution image and may need to be downloaded to be viewed correctly.
Comments