When people talk about the history of the 15 puzzle, one name that often comes up is the American puzzle maker Sam Loyd. The problem known along with his name is called the ”14-15 puzzle.”

The 14-15 puzzle

The problem is to take a finished 15 puzzle with only 14 and 15 swapped and put it back in the original order.

123456789101112131514
Inversions 1 + rows below the gap 0 → unsolvable

The story goes that Loyd offered a $1,000 prize for this problem. Since it looks like “just two tiles left,” many people are said to have tried it.

Why it can never be solved

But this board can never be put back, no matter how you move it.

Leaving out the empty space, read the tiles from the top left. The number of pairs where a larger number comes before a smaller number is called the number of inversions. On a 4×4 board, if “inversions + the number of rows below the empty space” is even, it can be solved; if it is odd, it cannot.

  • Finished board: 0 inversions, and the empty space is in the bottom row, so the total is 0 (even).
  • The 14-15 board: 15 comes before 14, so there is 1 inversion, and the total is 1 (odd).

Sliding a tile once never changes whether this total is even or odd. So from an odd board, you can never reach the even finished board (Unsolvable positions and parity).

The mathematicians Johnson and Story had already shown this in a paper in 1879, before Loyd’s story.

Was there really a prize?

The 14-15 puzzle story also appears, with an illustration, in a collection of Loyd’s puzzles that his son published in 1914, after Loyd’s death. Still, it is unclear whether Loyd really offered a prize. Some sources say he never actually put up any prize money.

There is, however, a record that during the craze of 1880, a dentist in Massachusetts made headlines by offering a prize to anyone who could solve the 15 puzzle (History of the 15 puzzle).

Loyd, the self-proclaimed “inventor”

Sam Loyd (1841–1911) was very famous as a creator of chess problems and puzzles. From 1891 until his death in 1911, Loyd is said to have claimed, “I invented the 15 puzzle.”

However, research such as the book The 15 Puzzle, published in 2006 by the puzzle researchers Slocum and Sonneveld, has shown that Loyd had nothing to do with either the invention of the 15 puzzle or the craze of 1880. The real inventor is believed to be Noyes Chapman, a postmaster in New York State (Noyes Chapman, inventor of the 15 puzzle).

Loyd is also known for writing a made-up story that the tangram “goes back 4,000 years” (History of the tangram). He seems to have been good at making a story more fun.

Having fun with the 14-15 puzzle

The 14-15 board cannot be solved, but changing where the empty space goes changes everything. For example, the board with the empty space at the top left and 1 to 15 in order can be reached from the board with 14 and 15 swapped.

123456789101112131514
The 14-15 board Inversions 1 + rows below the gap 0 → unsolvable
123456789101112131415
Empty space at the top left Inversions 0 + rows below the gap 3 → unsolvable

Both belong to the “odd total” group, so you can get from one to the other. Change the goal to “empty space at the top left,” and the 14-15 board becomes a “solvable” problem.