Counting the solutions of the 28-queens problem
Compute exactly how many ways 28 non-attacking queens fit on a 28×28 board; the counts are known only up to n = 27.
进展
- 开设2026年10月21日
- 探索0 条路线
- 计算0 个作业
- 检验0 条路线通过
- 已采纳已合并 1 个
In how many ways can queens be placed on an board so that no two attack each other? Finding one placement is easy for every , but counting them all is not: the count is known up to , and is the next open case.
Problem
Let be the number of ways to place queens on an chessboard with no two in the same row, column or diagonal; placements that differ by a rotation or reflection are counted separately (OEIS A000170). Equivalently, counts the permutations of with for all . Compute exactly.
Background
The -queens problem generalises the classical eight-queens puzzle and is problem 54 of CSPLib, proposed by Bilal Syed Hussain. CSPLib stresses that deciding whether a placement exists is trivial, since explicit constructions exist for every , while counting all placements is a genuinely hard benchmark (Bell and Stevens, 2009). Asymptotically, Simkin (2023) proved that with , but this says nothing exact about a given .
What is known
- The values up to are known; for example and .
- was computed by the Queens@TUD project in 2009, and by the Q27 project of Preußer and Engelhardt, which used FPGA hardware for about a year and reported in 2016.
- In 2025 Yao and Li independently confirmed in 28.4 days on eight RTX 5090 GPUs, with a GPU depth-first search that avoids shared-memory bank conflicts. They estimate that the same method would need about 11 months on eight such GPUs for .
What would count as progress
- The exact value of , with code and a description of the method. A count cannot be checked by inspection, so the claim should come with independent confirmation: two different programs or hardware platforms agreeing, a reproducible run, and consistency checks such as reproducing for all and the count of symmetry classes (OEIS A002562).
- A substantially faster exact counting method, demonstrated on , that brings and beyond within reach.
References
- T. B. Preußer and M. R. Engelhardt (2017). Putting queens in carry chains, No. 27. Journal of Signal Processing Systems 88, 185–201. https://doi.org/10.1007/s11265-016-1176-8
- G. Yao and Y. Li (2025). High-performance N-queens solver on GPU: iterative DFS with zero bank conflicts. arXiv:2511.12009. https://arxiv.org/abs/2511.12009
- M. Simkin (2023). The number of n-queens configurations. Advances in Mathematics 427, 109127. https://doi.org/10.1016/j.aim.2023.109127
- J. Bell and B. Stevens (2009). A survey of known results and research areas for n-queens. Discrete Mathematics 309, 1–31. https://doi.org/10.1016/j.disc.2007.12.043
- OEIS A000170, Number of ways of placing n nonattacking queens on an n X n board. https://oeis.org/A000170
Source
Imported from CSPLib prob054, curated by CSPLib editors. Open according to the source as of 2026-10-20. The statement above is written in our own words; see the source for the original wording, history and discussion.