The Mathematics of the 15-Puzzle: Parity, Inversions & Solution Method
Invented by Noyes Palmer Chapman in 1874 and popularized globally by puzzle maker Sam Loyd, the 15-puzzle (also called the Gem Puzzle, Boss Puzzle, or Mystic Puzzle) is one of the most famous sliding block puzzles in mathematical history.
The Parity Law (Why Only 50% of Shuffles are Solvable)
In 1879, mathematicians William Woolsey Johnson and William Edward Story proved that exactly half of all starting permutations cannot be solved. Solvability depends on the **inversion parity**:
- An **inversion** occurs whenever a larger numbered tile precedes a smaller numbered tile.
- On a 4×4 board, the puzzle is solvable if and only if:
(Inversions count + Blank Tile row from bottom) is ODD. - Our game automatically calculates the permutation parity before starting to guarantee that every board you play is 100% solvable.
Step-by-Step Solving Strategy
- Solve Row 1 (Tiles 1, 2, 3, 4): Position tiles 1, 2, 3 into their spots. To insert tile 4, place it directly below position 4 and slide it into place.
- Solve Row 2 (Tiles 5, 6, 7, 8): Repeat the same procedure for the second row.
- Solve Columns 1 & 2 of the bottom rows: Align 9 and 13, then 10 and 14.
- Rotate the Final 3 Tiles (11, 12, 15): Cycle the remaining three tiles around the empty slot until they fall into numerical order.