login
Consider the square spiral with its cells numbered starting at 0, as in A308884 and A274641. Two players, Black and Red, take turns. When it is Black's turn, he places a knight at the smallest unoccupied cell not attacked by an existing Red knight, and when it is Red's turn, she places a knight at the smallest unoccupied cell not attacked by an existing Black knight. Sequence lists squares occupied by a Black knight.
82

%I #151 May 19 2026 12:42:25

%S 0,2,5,9,11,15,20,21,30,31,36,40,42,47,48,50,56,61,65,67,69,70,71,75,

%T 76,81,83,85,87,89,93,99,109,110,111,112,116,117,126,132,133,138,144,

%U 148,150,152,154,156,161,162,176,180,182,187,193,197,199,201,203,205,207,208,209,211,213,214,219,229,231,233,235,237,238,239,243

%N Consider the square spiral with its cells numbered starting at 0, as in A308884 and A274641. Two players, Black and Red, take turns. When it is Black's turn, he places a knight at the smallest unoccupied cell not attacked by an existing Red knight, and when it is Red's turn, she places a knight at the smallest unoccupied cell not attacked by an existing Black knight. Sequence lists squares occupied by a Black knight.

%C There is a subtle point about the definition. Because the players take turns in placing a knight, the spiral is not filled in consecutively. To obtain the sequence, one must first fill in the whole spiral, and then return to the start, and record the Black knights that are encountered as one walks along the spiral.

%C To view the knights in the order in which they are placed on the spiral, see A395355. - _N. J. A. Sloane_, Apr 25 2026

%C This is a problem, not a game. The (unsolved) problem is to explain the extraordinary patterns formed by the Black and Red knights (see the links).

%C By considering the evolution of the spiral as the number of terms grows, it seems clear that, apart from narrow bands along the x- and y-axes, the upper half-plane will be occupied by red knights, and the lower half-plane by black nights.

%C The reason for this is unclear.

%D Michael S. Branicky, Jonas Karlsson, and N. J. A. Sloane, Proof of convergence of the Red and Black Knights structure, MS in preparation, May 14 2026.

%D Jonas Karlsson, Letter to N. J. A. Sloane, Jan 23 2026, and emails from Feb 05-06 2026.

%H Jonas Karlsson, <a href="/A392177/b392177.txt">Table of n, a(n) for n = 1..45763</a> [More than the usual number of terms are shown, in view of the complexity of the sequence.]

%H Michael S. Branicky, <a href="/A392177/a392177.jpg">The first 10^6 cells of the spiral.</a>

%H Michael S. Branicky, <a href="/A392177/a392177_1.jpg">The first 4*10^6 cells of the spiral</a>

%H Michael S. Branicky, <a href="/A392177/a392177_2.jpg">The first 16*10^6 cells of the spiral</a>

%H Michael S. Branicky, <a href="/A392177/a392177_1.png">The first 64*10^6 cells of the spiral</a>

%H Michael S. Branicky, <a href="/A392177/a392177_4.png">The first 256*10^6 cells of the spiral</a>

%H Michael S. Branicky, <a href="/A392177/a392177_1.py.txt">Python program for OEIS A392177 and A392178</a>

%H Brady Haran, Jonas Karlsson, and N. J. A. Sloane, <a href="https://youtu.be/UiX4CFIiegM">Red & Black Knights (extraordinary result)</a>; <a href="https://youtu.be/VgmDuBCayPw">Amazing Chessboard Patterns (extra)</a>, YouTube Numberphile videos, May 2026

%H Jonas Karlsson, <a href="/A392177/a392177_3.png">The first 8 shells (288 cells)</a> [The shells are outlined by black lines, and the cells are both numbered and colored.]

%H Jonas Karlsson, <a href="/A392178/a392178.png">The first 1000 cells of the spiral.</a>

%H Jonas Karlsson, <a href="/A392177/a392177.png">The first 100000 cells of the spiral.</a>

%H Jonas Karlsson, <a href="/A392177/a392177_3.txt">Table of a(n) for n = 1..10^7 [95 MB file]</a>

%H Jonas Karlsson, <a href="/A392177/a392177_2.py.txt">Python program for these sequence and similar sequences involving other chess pieces of two or more colors</a>

%H Rémy Sigrist, <a href="/A392177/a392177_1.pdf">Illustration of variants where players use kings, queens, rooks, bishops, knights, pawns (heading north, east, west or south), wazirs or ferzes</a>

%H Rémy Sigrist, <a href="/A392177/a392177_2.txt">C# program</a> for generating various sequences (including A392177, A392178, A392179, A392180, A395486, A395506) and drawing the spiral, with knights or other pieces.

%H Rémy Sigrist, <a href="/A392177/a392177_2.png">The first 16*10^6 cells of the spiral</a> (solid colors correspond to pieces with record indexes, light colors to other pieces)

%H N. J. A. Sloane, <a href="/A392178/a392178.jpg">The first five layers of the spiral.</a> [Black circle = Black knight, red circle = Red knight, black slash = attacked by a Black knight, red slash = attacked by a Red knight.] Note that these links are deliberately arranged in logical order, not alphabetical order (see Comments)

%o (Python) # see linked program

%o (C#) // See Links section.

%Y Cf. A274641, A308884, A308885 (if all the knights are of the same color), A392178-A392180.

%Y See also A395355, A395356.

%K nonn,look

%O 1,2

%A _N. J. A. Sloane_, Feb 06 2026, based on a letter and emails from _Jonas Karlsson_