John D. Cook 6/22/2026

Queens on a prime order board

Read Original

This article discusses the n queens problem, specifically when n is a prime number greater than or equal to 5. It explains that placing queens on lines of slope 2, 3, ..., n-2 (mod n) on a toroidal board (where opposite edges are joined) yields solutions. While all solutions for n=5 have this form, larger primes like 7 have solutions where queens do not all lie on a constant slope line. The post includes references and links to related topics like SAT formulations and chess puzzles.

Queens on a prime order board

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet