Only two numbers remain to be put back in order. Everything else in the little square is spotless. You slide one tile, then another; the disorder travels around, returns to the same corner, and you wonder whether patience will eventually pay off. On a fifteen puzzle, some positions truly do call for method. Others can never reach the target through legal slides. Knowing how to recognize that second situation keeps you from mistaking an impossibility for a lack of skill.
The Science Museum Group preserves an example titled The Wonderful Puzzle Fifteen, which its catalog entry attributes to Journet and dates to 1920. That small object offers an entry point into a problem we can examine without handling an antique piece. The boards below are numbered models built for explanation. The proofs concern their moves, without claiming to date the puzzle’s invention or offering a method for restoring a collector’s piece.
Receive the “Pantheon of 28 Legendary Chefs” Dossier (Free A4 PDF) + 5 Audio Stories
Instant complimentary access to our illustrated gastronomic & historical dossier, plus 5 DRM-free MP3 audio chronicles.
One blank, one tile per move
Take a square four spaces on a side, holding the numbers 1 through 15 and one empty space. The target displays the numbers in order, row by row: 1 to 4 across the top, then 5 to 8, then 9 to 12; the bottom row holds 13, 14, 15, and the blank. A move consists of sliding a tile that shares an edge with the blank into that empty space. Diagonal moves and lifting a tile out of the frame are ruled out. Pushing an entire row at once counts as several successive slides, never as a special move.
Compare that target with a position where only the bottom row changes: 13, 15, 14, blank. It would be tempting to pry out the two middle tiles and put them back in place, yet that gesture breaks the very rule of the game. The real question is whether some detour, however long, can achieve the same swap using only the empty space. To answer it, we need to look at what every slide leaves unchanged rather than hunting blindly for a long sequence of moves.
Read the numbers from left to right, then top to bottom, skipping the blank space. An inversion is any pair of numbers where the larger one appears before the smaller one. In the target, no pair is inverted. In our altered bottom row, 15 appears before 14: a single inversion distinguishes the two lists. This count covers every pair, not just adjacent tiles. Thus the sequence 3, 1, 2 has two inversions: 3 with 1, and 3 with 2.
Why the width of the board changes the check
A horizontal slide does not change the relative order of the numbers in our reading list. The tile merely crosses the blank, which we already omitted from the list. If 14 and 15 stood in that order before the move, they remain in that order afterward, even though their columns shifted. The inversion count therefore stays exactly the same. That first observation is not enough on its own, however, because a sliding puzzle also allows vertical moves.
On a grid four spaces wide, a tile sliding upward into the blank jumps past three other numbers in our reading list. Each encounter flips the order of one pair: it creates an inversion if the pair was previously in order, or removes one if it was inverted. Three flips may raise or lower the total, but they always flip its parity. An even total becomes odd, and an odd total becomes even. The effect does not depend on which number is printed on the tile moving up.
Here is an immediate check. Start from the target and slide 12 down into the blank. The last two rows become 9, 10, 11, blank, followed by 13, 14, 15, 12. Tile 12 now comes after 13, 14, and 15, giving a total of three inversions. Yet we just produced this position in a single completely legal move. Any rule declaring every position with an odd number of inversions impossible would therefore be false for this board.
The board’s width explains the difference. On a three-column grid, a vertical slide moves a tile past two other numbers. Two pair flips preserve the parity of the total. For any odd width, the number of tiles passed is even; for an even width, it is odd. What determines the correction to the check is therefore neither the total number of squares nor the number of rows, but the number of columns crossed by our reading order.
On four columns, you must also track the row of the blank
Now count the row of the blank from the bottom: the bottom row is 1, the one above it is 2, and so on. A vertical slide changes that row number by one, so its parity flips at the exact same moment as the parity of the inversions. When you add the inversion count and the blank’s row number, the two flips cancel out. A horizontal slide changes neither term. The parity of this sum therefore stays invariant after every single move.
In our four-column target, the sum is zero inversions plus row 1, which is odd. In the nearly finished position ending in 13, 15, 14, blank, the sum is one inversion plus row 1, giving 2, an even number. No sequence of legal moves can turn one parity into the other. We have not tried every possible detour; we have shown that every detour shares a property incompatible with the requested result.
Four-column target
0 inversions + row 1 = 1, odd.
Two tiles swapped
1 inversion + row 1 = 2, even.
Diagrams computed for this article.
Return to the position produced by sliding 12 down. Its three inversions add to the blank’s second row: three plus two equals five, odd just like the target’s total of one. That example no longer looks like an awkward exception; it explains why the second term was needed. On an odd width, you simply compare the parity of the inversions; on an even width, you compare the parity of the sum including the blank’s row. The reading convention and counting direction must stay the same for both positions.
A certificate of impossibility does not settle every other position
This reasoning compares a starting layout and a target. It does not claim that ascending order is the only conceivable goal. If you explicitly ask to finish on 13, 15, 14, blank, that layout is obviously reachable from itself. What is ruled out is crossing between two different parity classes. Before declaring a box badly assembled, you must therefore know what picture the player is meant to form, where the blank should end up, and which tiles remain distinct.
Caution also applies to the shape of the board. Imagine a single row of four spaces holding 1, 2, 3, and the blank. The layout 2, 3, 1, blank has two inversions: 2 before 1 and 3 before 1. It yields the same parity as the target, since the blank’s row remains 1. Yet it is unreachable. Along that strip, the three tiles can shift back and forth, but they can never pass one another. Their order remains 2, 3, 1 through every possible slide.
To verify small models without extrapolating, you can start from the target, list its legal neighbors, and repeat from each newly reached position, never exploring an already-seen position twice. That exhaustive search yields 12 positions on the 2-by-2 square, 360 on the 3-column-by-2-row rectangle, and 181,440 on the 3-by-3 square. In each of those three calculations, the reachable positions are precisely those that share the target’s parity check. On the four-space strip, by contrast, only four positions are reached even though twelve pass the check. These bounded verifications are not a general proof for every conceivable board.
Four spaces of distance can require fourteen moves
Even a reachable position can deceive the eye. Take a board with three columns and two rows. The start shows 1, blank, 3 on top and 2, 5, 4 on the bottom. The target shows 1, 2, 3 above 4, 5, blank. Tiles 1, 3, and 5 already look well placed. Tiles 2 and 4 each need to move two spaces if we add their horizontal and vertical gaps to their destinations. The sum of distances across all five tiles is therefore four.
That sum gives a lower bound on the number of moves. Each slide moves a single tile by one space and changes its distance to its destination by one. You cannot reduce a total of four to zero in fewer than four moves. Yet that bound allows for no detouring tiles and does not guarantee that those four desired reductions can happen back to back. The blank may be on the wrong side, and a tile already in its home square may have to step aside to clear a path.
Three-column start
4 and 5 begin in the reverse order of their target.
Rectangle target
Both tiles must finish on the bottom row.
Diagrams computed for this article.
A conflict that tile distance cannot see
Now look at 5 and 4, sitting in that order on the bottom row. Their target calls for 4 ahead of 5. Both start and must finish on that same row. As long as they remain there, they can slide into an open space, but they cannot pass each other. To reverse their order, at least one of them must leave the bottom row and return to it later. That requires at least one upward step and one downward step, even if the other tiles get out of the way effortlessly.
Those two moves genuinely add to the four spaces already counted. Tile 4’s individual minimum included only two horizontal moves; tile 5’s was zero. Neither tile needed to change rows to reach its own destination, so the vertical steps forced by their conflict cannot be borrowed from that first sum. Meanwhile, tile 2 still has to cover its horizontal and vertical gaps. Adding two to four gives a lower bound of six moves, without double-counting any step already required.
That correction is more informative than merely spotting a misplaced tile: it identifies an obstruction between two tiles that individual destinations miss. Yet six is still only a lower bound, not a six-move plan. Nothing guarantees that the moves needed for tile 2 and the detours letting 4 and 5 pass each other can be combined without further extra steps. To establish an exact minimum, we now need to find at what distance the target actually appears among reachable positions.
Why the minimum really is fourteen
We can search layer by layer rather than following a single detour to its end. Layer zero holds only our starting board. Layer one holds every position reachable in one move: sliding 1, 3, or 5 into the blank produces three distinct boards. Next we expand every legal move from each of those. Sliding back to the start creates nothing new; after discarding positions already seen, four boards remain in layer two. Each has a two-move path, and none has a shorter one.
The same process continues: each layer collects all legal neighbors of the previous layer that appear in no earlier layer. Why does that suffice to rule out shorter solutions? Any path of a given length always ends with one last move coming from a path one step shorter. If every board reachable up to that shorter length has already been examined, expanding their neighbors necessarily covers the next step. This is a chain of reasoning repeated from the start, not a guess based on how many boards have been listed.
Discarding a second arrival at the same board never hides a shortcut. That already-reached board offers the exact same available moves regardless of the detour used to reach it. Since we met it earlier, we can already explore its continuations from that shorter path. Keeping the second copy would only mean testing continuations we could have started in fewer moves. The number of the first layer containing a position therefore gives its exact minimum distance from the start.
For our example, the search has covered 206 distinct positions by the time layer thirteen is complete, and the target is not among them. Layer fourteen adds 40 new positions, and the target appears among them. We can therefore rule out every path of thirteen moves or fewer. Those 40 positions are not 40 solutions: they are different boards at the same distance. How many distinct paths lead to one of them is a separate question. The useful certificate here combines complete coverage of neighbors with the target’s first appearance, not a long column of isolated numbers.
Exhaustive exploration of this rectangle gives a minimum of fourteen moves for the chosen start. Here is one path of that length, written as the sequence of tile numbers slid one by one into the blank: 5, 2, 1, 5, 2, 4, 3, 2, 5, 1, 4, 5, 2, 3. Each move slides a tile adjacent to the blank at the moment it occurs. The list is a witness of existence; checking all distances through the layer search establishes, separately, that no shorter list can succeed.
The opening moves show why a visual shortcut would mislead you. Sliding 5 upward into the blank moves it away from its home square, raising the sum of distances from four to five. Sliding 2 to the right brings the sum back to four. Then 1 drops down, also leaving a correct destination and pushing the total back to five. These steps are not mistakes to be pruned from the proposed path; they clear the circuit that the path uses. The total eventually drops to zero, yet it does not decrease at every step. Any method forbidding temporary retreats would reject this path before its third move.
When two tiles show the same image
The preceding check distinguishes numbered tiles. On the six-space rectangle, let us now replace the labels 4 and 5 with the identical symbol X, without changing the allowed moves. A layout in which the two Xs swap their hidden identities looks visually identical. Yet swapping the two underlying labels flips the parity of the numbered list. You can therefore no longer reject a visible picture just because one of its two numbered representations fails the parity check.
In this specific model, the 360 reachable numbered positions produce all 360 distinct visible pictures possible with two Xs. Each picture has two labeled representations of opposite parity, and exactly one belongs to the reachable class already computed. Every visible arrangement can thus be obtained—without turning the two tiles into objects that pass through each other.
Setting up a game with at least one known return path
To prepare a solvable exercise without rebuilding the box at random, a simple method is to start from the target and make legal slides. Reversing their order supplies a verifiable return path. On our rectangle, sliding 5 then 4 from the target produces 1, 2, 3 above blank, 4, 5; sliding 4 then 5 afterward puts the tiles straight back. That small example actually contains the return moves instead of merely promising that a solution must exist.
The length of the scramble does not, however, measure the minimum difficulty. If a tile is pushed forward and immediately slid back, two moves have changed nothing. A long scramble can accumulate such reversals or trace a loop. It guarantees a reachable finish, not a challenge of comparable length.
Before setting a puzzle, you can therefore fix the target and check its reachability. To judge its minimum difficulty, you still need to build a path and prove what no shorter path can achieve.
Source and calculations
The catalog entry for Science Museum Group, object 2011-44 provides the material reference and its attribution. The examples, proofs, and exhaustive explorations are mathematical constructions prepared for this article using standard methods, with no original discovery claimed. No photograph or physical handling of the preserved object is used to establish the results.
