On this page
Many olympiad problems describe a process (tiles slide, numbers are rewritten) and ask whether a goal can be reached or whether the process stops. Trying moves by hand rarely settles it. One well-chosen quantity does. The problem book Problem-Solving Strategies (Springer, 1998) opens with a chapter called The Invariance Principle.
What is an invariant and what is a monovariant?
An invariant is a quantity that no allowed move changes. If the start and the goal give it different values, no sequence of moves connects them.
A monovariant is a quantity that every move changes in the same direction, always up or always down. If it is a whole number and cannot go past some bound, the process must stop.
Why can't dominoes cover a chessboard with two opposite corners removed?
The puzzle was posed by the philosopher Max Black in his 1946 book Critical Thinking, according to the Wikipedia article on the mutilated chessboard problem. Remove two diagonally opposite corners of an 8×8 board and 62 squares remain. Can 31 dominoes of size 2×1 cover them?
The invariant is colour. A domino always covers one light and one dark square, so any set of dominoes covers equal numbers of each. Opposite corners share a colour, so the board left has 32 squares of one colour and 30 of the other. Thirty-one dominoes would need 31 and 31. No tiling exists.
The same article notes Gomory's theorem: remove two squares of different colours instead and the rest can always be tiled.
Why is the 15 puzzle with two tiles swapped unsolvable?
In 1879 William Woolsey Johnson and William E. Story published Notes on the "15" Puzzle in the American Journal of Mathematics. Their parity argument shows that half of all starting positions can never be solved, as the Wikipedia article on the 15 puzzle summarises.
Read the 16 squares, blank included, as an arrangement. Each slide swaps the blank with a neighbour, so the arrangement's parity (odd or even number of swaps from the solved order) flips. The blank also moves one step, so the parity of its distance (rows plus columns) from the bottom-right corner flips too. Two flips cancel: their combined parity is the invariant.
With 14 and 15 swapped and the blank in the corner, the arrangement is odd at distance 0; the solved position is even at distance 0. They disagree, so no moves connect them. Our post on why the 15 puzzle with 14 and 15 swapped can't be solved has the details.
How do you prove a blackboard process must stop?
Problem. Some positive whole numbers are written on a blackboard. A move: pick two numbers a and b such that neither divides the other, erase them, and write gcd(a, b) and lcm(a, b). Prove that you must eventually run out of moves.
Find what stays fixed. Since gcd(a, b) × lcm(a, b) = a × b, the product P of all the numbers never changes, so each number is at most P. The count of numbers, n, is fixed too.
Find what moves one way. Write g = gcd(a, b), a = gx and b = gy, with x and y sharing no factor. Neither divides the other, so x ≥ 2 and y ≥ 2, and lcm(a, b) = gxy. Then (g + gxy) − (gx + gy) = g(x − 1)(y − 1), which is positive. So the sum of the numbers rises by at least 1 every move.
Combine them. The sum keeps rising but never exceeds n × P, so the moves stop.
Try 4 and 6: one move gives 2 and 12, the product stays 24, the sum rises from 10 to 14, and since 2 divides 12 the moves end.
How do you spot the right invariant?
Play three or four small cases and record each move.
Test the usual suspects: parity, a remainder mod 3 or mod 4, a colouring of the grid, a sum, a product, a gcd, the number of pairs out of order.
For "can we reach this?", look for a quantity on which the start and the goal disagree.
For "must it stop?", look for a whole number that strictly rises or falls and has a bound.
If a quantity changes by a fixed amount, check its parity.
Test a general move with letters, not only examples.
The same habit lets you tell two graphs apart with invariants, and Vieta jumping rests on a positive whole number that cannot shrink forever.
Step 6 is the one to check twice. The Fermi Problem Library has a step-by-step solver that explains the reasoning, so you can compare your general move with a worked one.
Try it tonight: remove two chessboard squares of different colours and tile the rest. Then remove two of the same colour and explain, in one sentence, why you never will.



