cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A343356 Squares visited by a knight moving on a square-spiral with numbers equal to the ordered prime factors 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.

This page as a plain text file.
%I A343356 #19 Feb 01 2022 00:38:34
%S A343356 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
%T A343356 3,2,2,2,2,2,2,2,2,2,3,5,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
%U A343356 5,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,3,2,2,2,2,2,5,2,2
%N A343356 Squares visited by a knight moving on a square-spiral with numbers equal to the ordered prime factors 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 A343356 Many of the visited squares are numbered 2 due to the large number of such terms on the board and the knight's preference for the lowest available numbered square.
%C A343356 The sequence is finite. After 369 steps the square with spiral number 3, with ordered spiral number 522, is reached after which all eight adjacent squares have been visited. The visited square with the largest spiral number is 41.
%C A343356 See A343385 for the visited squares given as the ordered spiral numbers.
%H A343356 N. J. A. Sloane and Brady Haran, <a href="https://www.youtube.com/watch?v=RGQe8waGJ4w">The Trapped Knight</a>, Numberphile video (2019).
%H A343356 Scott R. Shannon, <a href="/A343356/a343356.png">Image showing the 370 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 A343356 The square-spiral starts with 1 and is then numbered with the ordered prime factors of the positive integers as follows:
%e A343356 .
%e A343356   11---5---2---3---3   .
%e A343356    |               |   .
%e A343356    2   2---2---3   2   2
%e A343356    |   |       |   |   |
%e A343356    2   5   1---2   2   2
%e A343356    |   |           |   |
%e A343356    3   2---3---7---2   2
%e A343356    |                   |
%e A343356   13---2---7---3---5---2
%e A343356 .
%e A343356 a(1) = 1, the starting square of the knight.
%e A343356 a(2) = 2. Four squares the knight can step to from the starting square are numbered 2, all of which are the same distance form the origin, so the 2 with the lowest spiral number is chosen. This is the 2 at coordinates (2,-1) relative to the starting square which has an ordered spiral number of 10.
%e A343356 a(35) = 3. This is the first time a square greater than 2 is stepped to. The available squares after 33 steps are 3, 3, 3, 11, 5, and 47, and the 3 at coordinates (1,4) relative to the starting square is chosen because it is the closest number to that square.
%e A343356 a(365) = 41. This is the largest numbered square that is stepped to. The available squares after the 363rd step are 41, 157, 313, and 43, and 41 is the smallest of these.
%e A343356 a(370) = 3. This is the final square stepped to as no further unvisited square is available.
%Y A343356 Cf. A343385, A343388, A316667, A323714, A323808, A329519, A329520, A335844.
%K A343356 nonn,fini
%O A343356 1,2
%A A343356 _Scott R. Shannon_, Apr 12 2021