TOPICS
Search

Peaceable Queens Problem


The peaceable queens problem asks for the largest nonnegative integer a(n) such that a(n) white queens and a(n) black queens can occupy distinct squares of an n×n chessboard without any queen attacking a queen of the opposite color, where n is a positive integer (Ainley 1977, Numberphile 2019). Queens of the same color may attack one another, unlike in the queens problem. Equivalently, no row, column, or diagonal may contain both colors. Any such line containing both colors would have consecutive occupied squares of opposite colors, with no intervening queen to block the attack. For squares indexed by (i,j), an opposite-color pair must have different values of each of i, j, i+j, and i-j (Yao and Zeilberger 2022).

For n=1, 2, ..., 8, the values are 0, 0, 1, 2, 4, 5, 7, 9, ... (OEIS A250000). An elementary upper bound is

 a(n)<=|_n^2/4_|,

where |_x_| is the floor function. To see this, suppose the white queens use r rows and c columns. Then a(n)<=rc, while the black queens are confined to the other rows and columns, so a(n)<=(n-r)(n-c). If r+c<=n, then rc<=n^2/4. Otherwise, (n-r)+(n-c)<n, giving the same bound from the black queens.

A stronger asymptotic upper bound is

 a(n)<=0.1716n^2

for all sufficiently large n (Clinch et al. 2025). This bound does not establish that a known construction is optimal for every board size.


See also

Chessboard, Queens Problem

Explore with Wolfram|Alpha

References

Ainley, S. Mathematical Puzzles. London: G. Bell and Sons, 1977.Clinch, K.; Drescher, M.; Huynh, T.; and Saffidine, A. "Constructions, Bounds, and Algorithms for Peaceable Queens." In Proc. Symposium on Algorithm Engineering and Experiments (ALENEX) (Ed. R. Chowdhury, J. Berry, K. Hanauer, and B. Ren). Philadelphia, PA: Society for Industrial and Applied Mathematics, pp. 160-167, 2025. https://doi.org/10.1137/1.9781611978339.13.Numberphile. "Peaceable Queens." May 15, 2019. https://www.youtube.com/watch?v=IN1fPtY9jYg.Sloane, N. J. A. Sequence A250000 in "The On-Line Encyclopedia of Integer Sequences."Yao, Y. and Zeilberger, D. "Numerical and Symbolic Studies of the Peaceable Queens Problem." Exp. Math. 31, 269-279, 2022. https://doi.org/10.1080/10586458.2019.1616338.

Cite this as:

Weisstein, Eric W. "Peaceable Queens Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PeaceableQueensProblem.html

Subject classifications