login
Squares visited by a knight moving on a square-spiral with numbers equal to the ordered divisors of the positive integers and where the knight moves to the smallest numbered unvisited square; the minimum distance from the origin is used if the square numbers are equal; the smallest ordered spiral number is used if the distances are equal.
3

%I #16 Feb 01 2022 00:38:42

%S 1,1,1,1,1,1,1,1,2,1,1,2,1,1,4,1,2,1,1,1,1,1,1,1,1,1,1,3,2,1,1,1,1,1,

%T 1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,3,1,1,1,2,2,1,1,1,2,1,

%U 5,1,1,3,1,4,1,1,8,1,3,2,2,3,1,1,2,1,1,1,1,1,1,1,2,2,1,1,1,1,1

%N Squares visited by a knight moving on a square-spiral with numbers equal to the ordered divisors of the positive integers and where the knight moves to the smallest numbered unvisited square; the minimum distance from the origin is used if the square numbers are equal; the smallest ordered spiral number is used if the distances are equal.

%C Many of the visited squares are numbered 1 due to the large number of such terms on the board and the knight's preference for the lowest available numbered square.

%C The sequence is finite. After 358 steps the square with spiral number 13, with ordered spiral number 37, is reached after which all eight adjacent squares have been visited. The visited square with the largest spiral number is 28.

%C See A343389 for the visited squares given as the ordered spiral numbers.

%H Scott R. Shannon, <a href="/A343388/a343388.png">Image showing the 359 visited squares</a>. The starting square is highlighted in white, the visited squares in yellow, the path is colored across the spectrum to show the relative step ordering, and the final square is highlighted in red.

%e The square-spiral is numbered with the ordered divisors of the positive integers as follows:

%e .

%e 1---7---1---6---3 .

%e | | .

%e 2 3---1---2 2 11

%e | | | | |

%e 4 1 1---1 1 1

%e | | | |

%e 8 2---4---1---5 10

%e | |

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

%e .

%e a(1) = 1, the starting square of the knight.

%e a(2) = 1. One square numbered 1 can be stepped to from the starting square, the square with coordinates (1,-2) relative to that square.

%e a(9) = 2. This is the first time a square greater than 1 is stepped to. The available squares after 7 steps are 3, 11, 10, 2, 9, 2, and 3. The 2 at coordinates (-1,-1) relative to the starting square is because it is the closest number to that square.

%e a(146) = 28. This is the largest numbered square that is stepped to. The available squares after the 144th step are 117, 213, 47, 70, 61, and 28, and 28 is the smallest of these.

%e a(359) = 13. This is the final square stepped to as no further unvisited square is available.

%Y Cf. A343389, A343356, A316667, A323714, A323808, A329519, A329520, A335844.

%K nonn,fini

%O 1,9

%A _Scott R. Shannon_, Apr 13 2021