Skip to content

AI-created

Math puzzles

Puzzles you can play on the page, and the mathematics that explains them

These are the classics of recreational mathematics: puzzles with pieces, boards and moves. Most of them can be played right here. Play first; then read how a little mathematics turns a puzzle that seems to need luck or patience into one you fully understand: how many moves it takes, whether it can be solved at all, and why.

What the mathematics gives you

A count. How many moves does the Tower of Hanoi need? How many ways are there to place eight queens? Counting turns "it takes a while" into an exact number, and often shows why the number grows so fast. See Counting.

A proof of impossibility. Some puzzles can't be solved, and no amount of trying will show that. A single clever quantity that never changes, an invariant, can. The 15 puzzle and the bridges of Königsberg are the two most famous examples. See Invariants and parity.

A method. Backtracking for the queens, a rule of thumb for the knight, a few lines of algebra for Lights Out: each puzzle comes with a way of solving every case, not just the one in front of you. See Search and backtracking.