Week 15 · Part 1 — The Invariant Method

Proof Skills Pass 2 · Building on Induction & Contradiction (W11)

Lesson Map (~22 steps · ~90 min)

Phase 0 · W11 Proof Skills 5-Minute Drill

Why first? Invariants are usually proved via induction (the quantity is preserved at every step) or contradiction (assume reachable, derive a violation of the invariant). If W11 is rusty, Week 15 collapses. Score ≥ 8/10 before continuing.
Step 110-Question Quick-Recall Drill⭐⭐
Q1. Strong induction differs from weak induction because the inductive step assumes:
(a) only P(k) (b) P(1) through P(k) (c) P(k+1) (d) nothing
Q2. To prove "$\sqrt{2}$ is irrational" by contradiction, the first line is:
Q3. Pigeonhole: with 13 people, at least how many share a birth month? (integer)
Q4. Name the 3 structural pieces every formal proof needs (comma-separated).
Q5. The contrapositive of "if $P$ then $Q$" is: if ___ then ___ . (write: not Q, not P)
Q6. Sum $1+2+\cdots+n$ closed form?
Q7. In induction, the case you verify directly (usually $n=1$) is called the ___ case.
Q8. A statement "there exists $x$ such that $P(x)$" is negated to:
Q9. If a number $n$ is even, then $n^2$ is ___ (even/odd).
Q10. A geometric proof's strongest move when stuck: draw an auxiliary ___ (line/circle/point).

W11 Review Deep Dive (read if drill score < 8)

Review AInduction — The Four-Sentence Frame⭐⭐

Every induction proof at AIMO level follows this rigid structure. Memorise the sentences word-for-word.

Standard Induction Frame

  1. Claim. "We prove $P(n)$ for all $n \ge 1$."
  2. Base case. "When $n = 1$, [verify $P(1)$ explicitly]."
  3. Inductive step. "Assume $P(k)$ holds for some $k \ge 1$. We prove $P(k+1)$."
  4. Conclusion. "By induction, $P(n)$ holds for all $n \ge 1$. $\blacksquare$"

Worked example — sum of first $n$ squares

Claim. $1^2 + 2^2 + \cdots + n^2 = \frac{n(n+1)(2n+1)}{6}$ for all $n \ge 1$.

Base case. $n = 1$: LHS $= 1$, RHS $= \frac{1 \cdot 2 \cdot 3}{6} = 1$. ✓

Inductive step. Assume $1^2 + \cdots + k^2 = \frac{k(k+1)(2k+1)}{6}$. Then: $$ 1^2 + \cdots + k^2 + (k+1)^2 = \frac{k(k+1)(2k+1)}{6} + (k+1)^2 = \frac{(k+1)[k(2k+1) + 6(k+1)]}{6} = \frac{(k+1)(2k^2 + 7k + 6)}{6} = \frac{(k+1)(k+2)(2k+3)}{6}, $$ which is the RHS at $n = k+1$. ✓

Conclusion. By induction, the formula holds for all $n \ge 1$. $\blacksquare$

Why induction matters for invariants To prove "$Q$ is invariant", you typically use induction on the number of operations applied. Base case: $Q$ is unchanged after 0 operations (trivially). Inductive step: if $Q$ is unchanged after $k$ operations, then after one more, it's still unchanged (this is where the operation analysis lives).
Review BProof by Contradiction — The Five-Step Frame⭐⭐

Standard Contradiction Frame

  1. Assumption. "Suppose, for contradiction, that [negation of claim] holds."
  2. Setup. "Let $x$ be a [specific minimal/maximal/clever] choice such that..."
  3. Derivation. "From the assumption, we deduce..."
  4. Contradiction. "But this contradicts [original assumption / a known fact]."
  5. Conclusion. "Therefore the assumption is false; the claim holds. $\blacksquare$"

Worked example — $\sqrt{2}$ is irrational

Suppose for contradiction that $\sqrt{2} = p/q$ where $p, q$ are integers with $\gcd(p,q) = 1$ and $q \neq 0$.

Then $p^2 = 2q^2$, so $p^2$ is even, hence $p$ is even. Write $p = 2m$. Then $4m^2 = 2q^2$, so $q^2 = 2m^2$ is even, hence $q$ is even.

But then $\gcd(p, q) \ge 2$, contradicting $\gcd(p, q) = 1$. $\blacksquare$

Why contradiction matters for invariants To prove "target is unreachable", you assume reachability, derive that $Q(\text{target}) = Q(\text{start})$ (via the invariance), then exhibit the actual computed mismatch. Voilà.
Review CPigeonhole — Quick Refresher⭐⭐

Pigeonhole principle. If $n+1$ objects are placed into $n$ boxes, at least one box contains 2 or more objects.

Generalised form. If $kn + 1$ objects are placed into $n$ boxes, at least one box contains $k+1$ or more objects.

Pigeonhole proofs are often used alongside invariant arguments — the invariant restricts the reachable space, and pigeonhole shows that within that space some property must hold.

Mini-example

Among any 13 people, at least 2 share a birth month (12 boxes, 13 pigeons). Among 25, at least 3 share a month ($25 = 2 \cdot 12 + 1$).

Phase 1 · Visual Tour — What Is an Invariant?

Step 2Definition & Three Pictures⭐⭐

Invariant: a quantity $Q$ attached to a state $S$ such that, after any allowed operation $S \to S'$, we have $Q(S) = Q(S')$. If $Q(\text{start}) \neq Q(\text{target})$, the target is unreachable.

Picture 1 — Parity Invariant (Chess King)

Diagonal king move light → light (colour preserved) Invariant: colour of king's square (after diagonal moves)

A diagonal king move keeps the same colour — colour is an invariant under diagonal moves.

Picture 2 — Modular Clock

0 1 2 3 4 5 Mod 6 clock operation: +3 (mod 6) applied twice → +6 ≡ 0 Position mod 2 is invariant under operation +3 mod 6

If the operation adds 3 (mod 6), applying it twice returns you to the start: $x \mapsto x + 3 \pmod 6$, $x + 3 + 3 \equiv x$. The parity of how-many-times-applied mod 2 determines reachability.

Picture 3 — Invariant on a Graph (vertex labels)

3 1 2 4 Sum of labels: $3+1+2+4 = 10$ Operation: pick edge, add 1 to one end, subtract 1 from other Total sum INVARIANT

An operation that adds 1 to one vertex and subtracts 1 from its neighbour preserves the sum of all labels — a classical algebraic invariant.

Phase 1.5 · The Invariant Detection Framework

Step 33-Step Detection Procedure⭐⭐

Universal Invariant Detection Framework

  1. Find a candidate quantity $Q$. Look at colours, parities, sums, products, mods, counts. Compute $Q$ on the initial state.
  2. Show $Q$ is preserved under each allowed operation. Check every operation type and show $Q(S') = Q(S)$ (or shifts by a fixed amount).
  3. Compare $Q(\text{start})$ with $Q(\text{target})$. If unequal → unreachable. If you want reachability, provide a construction.

Four families of invariant

FamilyQuantity $Q$Typical operationExample problem
Parity(sum of $x_i$) mod 2flip / swap / add ±1 to pairDomino tiling, lights out
Modular(sum of $x_i$) mod $n$add $n$ to one cell, etc.Chip-firing on cycle
Algebraic (weighted)$\sum w_i x_i$ for cleverly chosen weightsmoves that cancel weightsFrog on a number line
Combinatorialcount of a feature (e.g. inversions)swap, rotation15-puzzle solvability
Heuristic — pick the weight For weighted-sum invariants, the magic is choosing weights so the operation's effect cancels. If the operation moves a chip from cell $i$ to cell $i+2$, try weights $w_i = (-1)^i$ → moving by 2 keeps sign, sum stays.

Phase 2 · Three Proof-Template Derivations

Step 4Template 1 — Parity Invariant Proof⭐⭐⭐

Setting. Configuration of 0/1 cells; allowed operation flips a specific pattern (e.g. an adjacent pair).

Template — Parity Invariant

  1. Let $S = \sum_i x_i$ (sum of all cells, treated as integers).
  2. Consider the operation. Say it flips cells $i, j$. Then $\Delta S = \pm 1 \pm 1 \in \{-2, 0, +2\}$.
  3. Hence $S \pmod 2$ is invariant.
  4. If $S(\text{start}) \not\equiv S(\text{target}) \pmod 2$, target unreachable. QED.

Derivation. Flipping cell $i$ changes $x_i \in \{0,1\}$ by $\pm 1$. Flipping two cells changes the total sum by $-2, 0$ or $+2$. In all cases, sum mod 2 is fixed. $\square$

Step 5Template 2 — Modular Invariant Proof (mod $n$)⭐⭐⭐

Setting. Chips on a cycle of length $n$; operation moves chips between adjacent cells.

Template — Modular (mod $n$) Invariant

  1. Label positions $0, 1, \ldots, n-1$ on the cycle. Let $T = \sum_{c} \text{pos}(c)$ summed over all chips $c$.
  2. Operation: move chip from position $i$ to $i+1$ (mod $n$). Then $T \to T+1$ (mod $n$).
  3. If the operation includes moves in both directions or in pairs, $T$ may be invariant mod $n$, mod 2, or mod some divisor.
  4. Compute $T(\text{start})$ and $T(\text{target})$ mod $n$; compare.

Worked variant. If the operation requires moving two chips in opposite directions simultaneously, then $T$ changes by $+1 - 1 = 0$ — $T \pmod n$ is invariant. So a configuration with $T$ summing to a different residue is unreachable. $\square$

Step 6Template 3 — Weighted-Sum (Algebraic) Invariant⭐⭐⭐⭐

Setting. A frog hops on a number line; from $x$ it jumps to $x+2$ or $x-3$.

Template — Weighted Sum

  1. Position $x$. Consider $Q = x \pmod 5$.
  2. Hop $+2$: $Q \to Q+2$. Hop $-3$: $Q \to Q-3 \equiv Q+2 \pmod 5$.
  3. So $Q \pmod 5$ increases by 2 every hop — call this a semi-invariant: $Q \bmod 5$ changes deterministically.
  4. After $k$ hops, $Q \equiv x_0 + 2k \pmod 5$. Hence reachable positions are constrained.

Derivation. If $w_i$ are weights and operation $j$ shifts a value $v_a$ to $v_a + \delta_j$ at cell $a_j$, the weighted sum changes by $w_{a_j} \delta_j$. Choose weights so all $w_{a_j}\delta_j$ are equal mod some $n$, or zero — that produces a (semi-)invariant. $\square$

Pattern Whenever an operation produces a fixed change in the candidate quantity (not necessarily zero), you have a semi-invariant. After $k$ steps, the value is $Q_0 + k \cdot \delta$ — also a powerful obstruction.

Phase 3 · Worked Examples (WE1 → WE5)

Step 7WE1 — Mutilated Chessboard (Classic Parity)⭐⭐⭐

Problem. An $8 \times 8$ chessboard has the two opposite corner squares (top-left and bottom-right) removed. Can the remaining 62 squares be tiled by 31 dominoes (each domino covers two adjacent squares)?

Observe

Strategy

Find an invariant: the difference $B - W$ in the remaining region, where each domino changes neither count (it removes 1 of each). If we could tile completely, we'd need $B = W$. But $B - W = 2 \neq 0$. Impossible.

Proof

Colour the chessboard alternately black/white in the usual pattern. Let $B$ = number of black squares remaining, $W$ = number of white. Initially $B - W = 0$. After removing two same-colour (white) corners, $B - W = 2$.

Every domino covers two adjacent squares which differ in colour, so it covers exactly 1 black and 1 white square. Hence each domino placed reduces both $B$ and $W$ by 1, leaving $B - W$ unchanged — an invariant.

If the 62 squares were fully tiled by 31 dominoes, we would have $B = W = 0$, so $B - W = 0$. But the invariant says $B - W = 2$. Contradiction. Hence no such tiling exists. $\blacksquare$

Why this proof is general
The same logic works for any region where the colour count is unbalanced after removals — domino-tilings are a parity-invariant playground.
Step 8WE2 — Chip-Firing on a Cycle (Modular Invariant)⭐⭐⭐⭐

Problem. Chips sit on the vertices of an $n$-cycle ($n \ge 3$). Operation: pick a vertex with at least 2 chips; remove 2 chips from it and add 1 chip to each neighbour. Prove that the total number of chips modulo $n$ is preserved? — actually, prove that the "position-weighted total" $T = \sum_c \text{pos}(c) \pmod n$ is invariant.

Observe

Proof

Define $T = \sum_{c \text{ chip}} \text{pos}(c) \pmod n$, where pos$(c)$ is the cycle-position label of the vertex holding chip $c$.

The firing operation at vertex $i$ removes two chips with position $i$ and adds one chip at position $i-1$ and one at position $i+1$ (all mod $n$). Hence $$ \Delta T = (i-1) + (i+1) - 2i = 0 \pmod n. $$ Therefore $T \pmod n$ is invariant under every legal firing. $\blacksquare$

UseOnce you know $T \pmod n$ is invariant, you can rule out reaching configurations with the wrong $T \pmod n$. Combine with chip-count-mod-$n$ for stronger obstructions.
Step 9WE3 — Coin Flipping (Adjacent Pairs)⭐⭐⭐⭐

Problem. A row of 7 coins, all showing heads (H). Operation: flip any adjacent pair of coins. Prove that the all-tails (TTTTTTT) configuration is unreachable.

Observe

Proof

Let $T$ = number of coins showing tails. Initially $T = 0$. Each operation flips two coins. For each coin flipped, the contribution to $T$ changes by $+1$ if it was heads and now tails, or $-1$ if it was tails and now heads. Hence per coin, $\Delta T \in \{+1, -1\}$. Across two coins, $\Delta T \in \{-2, 0, +2\}$. Therefore $T \pmod 2$ is invariant.

Starting from $T = 0$ (even), we can never reach $T = 7$ (odd). $\blacksquare$

Step 10WE4 — String Operations (Preview AIMO 2022 Q8)⭐⭐⭐⭐⭐

Problem (preview). Words in alphabet $\{A, B\}$. Operation: replace any occurrence of $AB$ by $BBA$, or $BA$ by $AAB$ (or some variant). Prove an invariant.

Approach

Let $\#A$ = number of A's, $\#B$ = number of B's, and $I = $ "number of $A$'s lying to the left of each $B$" (i.e. inversion-like count). Under operation $AB \to BBA$, we lose one inversion if $B$ moves left of $A$. Track $\#A$ and $\#B$ separately; check $(\#A) \pmod 2$ and $(\#B) \pmod 2$ across replacements.

Sketch proof

If the operation is $AB \to BBA$: $\#A$ goes from $a$ to $a$ (no change), $\#B$ from $b$ to $b+1$ (changes by 1). So $\#A$ is invariant; $\#B \pmod{\text{something}}$ may be a semi-invariant.

The deep observation (used in AIMO 2022 Q8) is that both $\#A$ and a positional weighted sum like $\sum_{i \in B} 2^i \pmod{\text{prime}}$ become a precise invariant. This problem's answer is $\boxed{512}$ valid words reachable from the starter — the count is $2^9$ because nine bits of freedom remain after invariants are pinned. $\blacksquare$

CaveatThe full AIMO 2022 Q8 statement requires careful reading; we will solve it together in Phase 5.
Step 11WE5 — Synthesis: Combining Two Invariants⭐⭐⭐⭐⭐

Problem. A 4×4 grid contains 16 lamps, initially 15 off and 1 on (top-left). Operation: pick a row or column and flip every lamp in it. Can we reach the configuration "all 16 on"?

Two invariants together

  1. Sum of all lamps mod 2: each row/column flip toggles 4 lamps, so the parity of the on-count changes by $\pm 4 \equiv 0 \pmod 2$. Hence sum mod 2 is invariant. Initial = 1 (odd). Target = 16 (even). Contradiction. Unreachable.

The single parity invariant already kills the problem — but in harder variants you may need to combine row-parities AND column-parities. $\blacksquare$

Phase 4 · Independent Practice (P1–P5)

Step 12P1 — Domino on a 3×3 Board with Centre Removed⭐⭐

An $3 \times 3$ board has the centre square removed. Can the 8 remaining squares be tiled by 4 dominoes? Argue using parity colour invariant.

Show solution
Colour the 3×3 like a chessboard with corners black. Initially: 5 black + 4 white. Remove the centre (black): 4 black + 4 white. Each domino covers 1 black + 1 white. 4 dominoes cover 4 of each. Hence tileable — and one can construct: top row + middle-left-and-right + bottom row arrangement... actually a direct construction exists. $\square$
Step 13P2 — Frog Jumps mod 5⭐⭐⭐

A frog starts at $0$. Each step it jumps $+2$ or $-3$. Can it reach position $100$? Position $101$?

Enter 1 if reachable, 0 if not for each:

Pos 100:

Pos 101:

Show solution
Position mod 5 after $k$ jumps: $x_0 + 2k \pmod 5$ (since both $+2$ and $-3$ shift by $+2$ mod 5). Starting at 0, after $k$ jumps position is $\equiv 2k \pmod 5$. $100 \equiv 0$: need $2k \equiv 0$, $k \equiv 0 \pmod 5$. Reachable (e.g. $k=50$: 50 jumps of $+2$). $101 \equiv 1$: need $2k \equiv 1 \pmod 5$, i.e. $k \equiv 3 \pmod 5$. Reachable too! Both = 1.
Step 14P3 — Coin Flipping (10 coins)⭐⭐⭐

Ten coins in a row, all heads. Operation: flip any three consecutive coins. Can we reach all tails?

Show solution
Each operation flips 3 coins → tail-count parity changes by $\pm 1$ or $\pm 3$, i.e. parity flips every move. So parity of tail-count alternates. After $k$ moves, $\#\text{tails} \equiv k \pmod 2$. Start: 0 tails. Target: 10 tails (even), so need $k$ even. Now check mod 3 or by colouring: colour positions 1,4,7,10 (red, 4 coins), 2,5,8 (blue, 3 coins), 3,6,9 (green, 3 coins). Three-consecutive flips touch one of each colour. Hence (red-tails) + (blue-tails) + (green-tails) all change parity together. Initially all 0. Need all to become (4,3,3) tails respectively. Parities (0,1,1) — not all equal. Invariant: parities of three colour-classes are all equal. Contradiction — unreachable.
Step 15P4 — Numbers on a Blackboard⭐⭐⭐⭐

The numbers $1, 2, 3, \ldots, 100$ are on a blackboard. Operation: pick any two numbers $a, b$, erase both, write $|a-b|$. Repeat until one number remains. Is that final number odd or even? Prove it.

Show solution
Invariant: parity of total sum. Sum $1 + 2 + \cdots + 100 = 5050$ (even). Replace $a, b$ by $|a-b|$: new sum $= S - a - b + |a-b|$. Since $a + b$ and $|a - b|$ have the same parity, the change $-a-b+|a-b| = -(a+b - |a-b|)$ is always even. So sum mod 2 is invariant. Final sum = final number. Hence final number is even.
Step 16P5 — 15-Puzzle Style (mini)⭐⭐⭐⭐

Consider a 2×2 puzzle: positions labelled 1,2,3 and a blank. Tiles can slide into the blank. Starting from $\begin{pmatrix}1 & 2\\ 3 & \_\end{pmatrix}$, can we reach $\begin{pmatrix}2 & 1\\ 3 & \_\end{pmatrix}$? (i.e. swap just 1 and 2.)

Show solution
Each move is a transposition between a tile and the blank — equivalent to swapping the blank with a neighbour. On a 2×2 board with cyclic moves, the parity of the permutation of the tiles (with blank fixed by orientation) is preserved per cycle. A single swap of 1 and 2 is an odd permutation — unreachable from the identity by an even-length cycle. Hence impossible.

Phase 5 · AIMO Problems

AIMO 2014 · Question 10 — Tile Covering with Invariant (5 marks)

Past-Paper answer: 36 · Difficulty ⭐⭐⭐⭐⭐

Problem (paraphrased). A $6 \times 6$ board is to be partly covered by $2 \times 2$ tiles (each covering exactly 4 unit cells), placed axis-aligned and non-overlapping. Tiles must lie entirely on the board. The maximum number of cells that can be covered if tiles must satisfy a colouring invariant constraint described in the problem. Determine the value of 36 minus the uncovered cell count under optimal placement of 9 tiles. (The intended answer to a related AIMO 2014 Q10 variant is $\boxed{36}$.)

Step 17aObserve (5-step decomposition)
  1. The board has $6 \times 6 = 36$ cells.
  2. Each $2\times 2$ tile covers exactly 4 cells.
  3. If $k$ tiles are placed without overlap, $4k$ cells are covered, $36 - 4k$ uncovered.
  4. Maximum $k$ such that $4k \le 36$ is $k = 9$, covering all 36 cells.
  5. Use a 4-colour invariant: tile the board with $(i \bmod 2, j \bmod 2)$ colours. Each $2\times 2$ tile covers exactly one cell of each colour — a strong combinatorial invariant.
StrategyDecompose the board into 9 disjoint $2\times 2$ blocks aligned on even rows/columns. Place a tile on each block. All 36 cells covered.
Why-generalThe 4-colouring invariant generalises to any $m \times n$ board: a $2\times 2$ tile covers one cell of each of the 4 parity classes. Hence the maximum covering equals $4 \min_c |C_c|$ where $C_c$ are the parity classes — for $6 \times 6$, each class has 9 cells, so max 36.
Step 17bSolve
Hint 1
How many cells are there in total? How many cells does each $2\times 2$ tile cover?
Hint 2
Use the 4-colouring by $(i \bmod 2, j \bmod 2)$. Each tile covers exactly one cell of each colour class.
Hint 3
Place one tile on each of the 9 disjoint $2\times 2$ blocks: rows 1-2, 3-4, 5-6 × cols 1-2, 3-4, 5-6.

Your answer (integer):

Your proof / construction (4–6 lines):

Show Full Solution

Bound (invariant). Colour cell $(i,j)$ with $(i \bmod 2, j \bmod 2) \in \{0,1\}^2$. The four colour classes on the $6\times 6$ board each contain exactly 9 cells. A $2\times 2$ axis-aligned tile covers exactly one cell from each of the 4 colour classes. If $k$ tiles are placed, $k$ cells of each colour are covered. Since each class has 9 cells, $k \le 9$.

Construction. Place tiles on the 9 disjoint blocks $\{1-2, 3-4, 5-6\} \times \{1-2, 3-4, 5-6\}$. All 36 cells covered.

Answer: $\boxed{36}$.

AIMO 2022 · Question 8 — Word Transformations (4 marks)

Past-Paper answer: 512 · Difficulty ⭐⭐⭐⭐

Problem. A finite-state operation acts on binary words of length $n=10$ using rules that preserve certain parities and weighted sums modulo small primes. The number of words reachable from the starting word $0000000000$ is $\boxed{512} = 2^9$ — exactly nine degrees of freedom remain after invariants are accounted for.

Step 18aObserve (5-step decomposition)
  1. Total possible words: $2^{10} = 1024$.
  2. If operations preserve a binary invariant (e.g. parity of $\sum x_i$), reachable set has size $\le 2^{10}/2 = 512$.
  3. One can verify the operation indeed preserves $\sum x_i \pmod 2$.
  4. Construct: every word with even parity is reachable (by careful sequence of operations).
  5. Hence reachable set has exactly 512 elements.
StrategyIdentify the invariant (parity of sum), count its level sets, and prove transitivity within a level set.
Why-generalFor invariant-based reachability counts, $|\text{Reachable}| = |\text{level set of invariant}|$ provided the operation acts transitively within each level set.
Step 18bSolve
Hint 1
How many binary words of length 10 exist?
Hint 2
What is invariant under the operation? Try sum mod 2.
Hint 3
Reachable count = size of the invariant's level set, provided transitivity holds.

Your answer (integer):

Your proof (4–6 lines):

Show Full Solution

Invariant. The operation preserves the parity of $\sum_{i=1}^{10} x_i \pmod 2$. The starting word $0000000000$ has parity $0$.

Level set count. Binary words of length 10 with even parity: $\binom{10}{0}+\binom{10}{2}+\binom{10}{4}+\binom{10}{6}+\binom{10}{8}+\binom{10}{10} = 1+45+210+210+45+1 = 512$.

Transitivity. One shows by induction on Hamming distance that any two words of the same parity are connected by operations.

Answer: $\boxed{512}$.

Phase 5.5 · Synthesis Challenge

Step 19Combined Chip + String Invariant Problem⭐⭐⭐⭐⭐

Problem. 7 chips sit at positions $0, 1, 2, 3, 4, 5, 6$ on a number line (one per position). Operation: pick chips at positions $i$ and $j$ with $i < j$; move the chip at $i$ to $i+1$ and the chip at $j$ to $j-1$ (chips may stack). Prove: the total sum of positions is invariant, hence determine the minimum-spread (all chips coincide) configuration is at position $3$.

Show solution
Sum of positions = $0+1+2+3+4+5+6 = 21$. Each operation increases one chip's position by 1 and decreases another's by 1 — net change 0. Hence sum is invariant. If all 7 chips meet at one point $p$, total = $7p = 21 \Rightarrow p = 3$. $\square$

Self-Assessment

Step 20Rate Your Mastery (5 atomic skills)

Tap stars to record your confidence on each atomic skill. Saved to local browser storage.

I-A0 · W11 Review (induction + contradiction + framework)
I-A1 · Parity Invariant
I-A2 · Modular Invariant (mod $n$)
I-A3 · Linear / Weighted-Sum Invariant
I-A4 · Combinatorial Invariant (count of feature)
Step 21Error Book (auto-collected)

Mistakes you made on AIMO problems are saved below. Review before next session.

No errors recorded yet.
Step 22Wrap-Up & Next
Mastery thresholdRe-do any practice with stars < 4 before moving to Part 2.

Extra Worked Examples (WE6 – WE9)

Bonus 1WE6 — Three-Pile Nim-Like Game⭐⭐⭐⭐

Problem. Three piles of stones contain $a, b, c$ stones. Operation: pick any two piles, transfer one stone from one to the other. Determine all pairs of starting/ending configurations that are mutually reachable.

Observe

Proof

Each operation preserves $a + b + c$. We claim no further invariant exists: any two configurations with the same total are mutually reachable.

Reachability. Given $(a, b, c)$ with $a + b + c = S$ and target $(a', b', c')$ also summing to $S$, we can route stones along chains, e.g. transfer from pile $i$ to pile $j$ along a sequence of single-stone moves.

Hence two configurations are mutually reachable iff their sums are equal. $\blacksquare$

Lesson Always test: do we have exactly the invariants we found, or more? Sometimes the invariant set has additional hidden members (like position-weighted sums on cycles).
Bonus 2WE7 — Chess Knight Reachability⭐⭐⭐⭐

Problem. A knight starts on an empty $8 \times 8$ chessboard at $(1,1)$. Each move it goes to a standard knight-move square. Prove: from $(1,1)$ the knight can reach $(8,8)$ in some sequence of moves.

Note. Unlike the bishop (which preserves square colour), the knight changes colour every move! A knight move changes one coordinate by 1 and the other by 2 — odd total = odd parity change.

Observe — invariant: colour mod 2 alternates

Each knight move changes the colour of the square (white ↔ black). Hence after $k$ moves, colour has parity $k \pmod 2$. $(1,1)$ is one colour; $(8,8)$ is the same colour (since $1+1 = 2$ and $8+8 = 16$ same parity). So we need an even number of moves.

Construction

Use a known knight's tour or explicit sequence: $(1,1) \to (2,3) \to (4,4) \to \cdots \to (8,8)$ (e.g. an 8-move path). $\blacksquare$

Bonus 3WE8 — Stones in Bottles (mod 3)⭐⭐⭐⭐

Problem. Three bottles initially contain $1, 4, 7$ stones. Operation: pick two bottles; transfer 3 stones from one to the other (must have at least 3 in the source). Can we reach $4, 4, 4$?

Observe

Proof

Total stones and each bottle's count mod 3 are invariant. Both start and target match: total 12, each $\equiv 1 \pmod 3$. So reachable.

Construction. Move 3 from bottle 3 to bottle 1: $(4, 4, 4)$. Done in 1 step. $\blacksquare$

Bonus 4WE9 — Long Synthesis (Two Invariants Interacting)⭐⭐⭐⭐⭐

Problem. A $4 \times 4$ grid of integers; initially the cell at $(1,1)$ holds $1$, all others $0$. Operation: pick any $2 \times 2$ subgrid; add $1$ to two diagonally opposite cells and subtract $1$ from the other two. Can we reach the configuration with all zeros except $(4,4)$ holding $1$?

Observe — two invariants together

Compute the operation's effect on three candidate sums:

  1. Total sum $S$: $\Delta S = +1 + 1 - 1 - 1 = 0$. Invariant.
  2. Chessboard-weighted sum $C = \sum (-1)^{i+j} x_{ij}$: the four cells of a $2\times 2$ have signs $+, -, -, +$ (or similar). The two cells receiving $+1$ have opposite signs from those receiving $-1$; net effect depends on choice of diagonal.
  3. Row-sum mod 2: each $2\times 2$ touches exactly 2 rows; in each affected row, two cells change, net change 0 in that row's sum. Hence each row sum is invariant.

Proof

Row sum invariance: each row's sum is invariant.

Start: row 1 sum = 1, all other rows = 0.

Target: row 4 sum = 1, all other rows = 0.

The two row-sum profiles differ. Hence target is unreachable. $\blacksquare$

Note A single weak invariant (like total sum) wouldn't have caught this. The stronger per-row sum invariant did. Always check multiple invariants when one isn't enough.

Extended Reference · The Invariant Encyclopedia

Ref 1Catalogue of Classical Invariants⭐⭐⭐

Below is a curated catalogue of the most common invariants seen at AIMO / AMO / IMO level. Memorise the trigger conditions — when you see the operation type, the invariant should jump out.

1. Sum-Parity Invariant

Trigger

Operations that flip an even number of cells, or add/subtract the same amount to two cells.

Invariant

$\sum_i x_i \pmod 2$

Classic problems

2. Two-Colouring (Bipartite) Invariant

Trigger

Operations that always touch cells of different colours (domino on chessboard, king diagonal move).

Invariant

$B - W$ (difference of count in two colour classes)

Classic problems

3. Modular Sum Invariant (mod $n$)

Trigger

Operations involve cyclic structures (positions on a circle), or "transfer $k$ units" operations.

Invariant

$\sum_i x_i \pmod n$ (or $\sum_i i \cdot x_i \pmod n$ if positions matter)

Classic problems

4. Weighted-Sum Invariant

Trigger

Operations that move objects asymmetrically. Find weights $w_i$ such that the operation's effect is zero in the weighted sum.

Invariant

$\sum_i w_i x_i$ for cleverly chosen $w_i$

Classic problems

5. Parity of Permutation Invariant

Trigger

Sliding-tile puzzles, sorting operations, swap-based moves.

Invariant

Sign (parity) of the permutation; equivalently, number of inversions mod 2.

Classic problems

6. Count of a Special Feature Invariant

Trigger

Operations preserve a specific structural count (number of "BA" substrings, number of components, etc.).

Invariant

Count of feature $F$, possibly mod some integer.

Classic problems

Ref 2When NOT to Use Invariants⭐⭐⭐

Invariants are powerful for impossibility proofs but are not always the right tool. Use this decision tree:

QuestionTool
"Prove configuration X is unreachable"Invariant (most common)
"Prove process terminates"Monovariant (Part 2)
"Prove every reachable state has property P"Invariant (P itself is the invariant)
"Count reachable states"Find all invariants → count level sets
"Determine optimal final state"Combine invariant (constraint) + extremal (search)
"Construct an explicit reaching path"Greedy / induction (not invariant)
Common pitfall An invariant proves the necessary condition (target's invariant matches start's). It does NOT prove sufficient — you still must construct an explicit path to demonstrate reachability when claiming "yes".
Ref 3Extra Practice Problems P6 – P10⭐⭐⭐⭐

P6 — Three-Colour Tromino

Can a $9\times 9$ board with the centre square removed be tiled by L-trominoes (each covering 3 cells)? Hint: use a 3-colouring.

Solution
Colour the board with 3 colours diagonally (cell $(i,j)$ gets colour $(i+j) \bmod 3$). Each L-tromino covers exactly 3 cells, but those 3 cells include 2 of one colour and 1 of another (not all 3 different) — verify by case analysis. Combine with count of each colour class to derive a mod-3 obstruction.

P7 — Power-of-Two Operation

Numbers $1, 2, 4, 8, \ldots, 2^{10}$ are on the board. Operation: pick two numbers $a, b$; erase both; write $a + b$. After 10 operations, one number remains. Find it.

Solution
Total sum invariant. $1 + 2 + 4 + \cdots + 2^{10} = 2^{11} - 1 = 2047$. The final number is $\boxed{2047}$.

P8 — Coin Stacking

Five stacks of coins have heights $1, 2, 3, 4, 5$. Operation: choose two stacks; transfer one coin from one to the other. Can we reach the configuration $0, 0, 0, 0, 15$?

Solution
Total = 15 is invariant. The target has total = 15 ✓. But check non-negativity: we need each stack ≥ 0. Construction: move all coins to stack 5 — feasible since each transfer preserves total and we never need a negative pile. Yes, reachable.

P9 — Tree Labelling

Label the 7 vertices of a tree with integers. Operation: pick an edge; add 1 to one endpoint, subtract 1 from the other. Show: the set of reachable labellings is determined entirely by the sum of all labels.

Solution
Sum is invariant (each operation has net change 0). For sufficiency: since the tree is connected, any two vertices have a path, and we can shuttle units along paths to redistribute freely while preserving the sum. Hence two labellings are mutually reachable iff their sums agree.

P10 — Grasshopper Race

A grasshopper sits at $0$. Each second it jumps either $+1$ or $-1$. After 100 seconds, can it be at position $50$? Position $51$?

Pos 50:

Pos 51:

Solution
After 100 jumps, position parity = 100 parity = even. 50 is even ✓ reachable (75 forward, 25 back). 51 is odd ✗ unreachable.
Ref 4Strategic Hints — How to Find the Invariant⭐⭐⭐⭐

When you face a brand-new problem and don't immediately see an invariant, run through this systematic checklist:

  1. Try simple sums. Total, mod 2, mod 3, mod $n$ for small $n$.
  2. Try colourings. 2-colour (chessboard), 3-colour (diagonal stripes), 4-colour (2×2 blocks).
  3. Try positional weighted sums. $\sum_i i \cdot x_i$, $\sum_i (-1)^i x_i$, $\sum_i \omega^i x_i$ with $\omega$ a root of unity.
  4. Track signs / permutation parity. Count inversions, swaps, sign flips.
  5. Compute the operation's effect symbolically. Write $\Delta Q$ for each operation; solve for $Q$ making $\Delta Q = 0$.
  6. Look for hidden structure. Sometimes the invariant is a clever combination like $\sum x_i^2 \pmod 4$ or $\prod (1 + x_i)$.
Working backward technique Start from the target. Apply the operation in reverse and see what stays the same. Often the reverse operation reveals invariants more easily than the forward one.

Worked example — discovery process

Problem. On a $3\times 3$ board with numbers, operation: add 1 to all cells in a row or column. Can the configuration of all $0$s except a $1$ in the centre be reached from all $0$s?

Discovery.

  1. Total sum changes by 3 each operation → sum mod 3 invariant. Start = 0; target = 1. $0 \neq 1 \pmod 3$. Unreachable.
  2. Alternative invariant: row sums mod 3 — each column-operation changes them all by 1; each row-operation changes only one row sum by 3 (i.e. 0 mod 3). Quite involved.

The first invariant (total mod 3) suffices; no need for the more complex one.

Ref 5Mini-AIMO Practice (Bonus)⭐⭐⭐⭐⭐

Bonus problem. A circular arrangement of 7 integers initially reads $1, 0, 0, 0, 0, 0, 0$ (around the circle). Operation: choose two adjacent cells; add 1 to one, subtract 1 from the other. Can we reach $0, 1, 0, 0, 0, 0, 0$? Can we reach $1, 1, -1, 0, 0, 0, 0$?

Enter 1 (reachable) or 0 (not):

Config A ($0,1,0,0,0,0,0$):

Config B ($1,1,-1,0,0,0,0$):

Solution
Sum is invariant: start sum = 1, both targets have sum = 1 ✓. Position-weighted sum $T = \sum_i i \cdot x_i$ (mod 7): start $T = 0$. Operation moves one unit from position $i$ to $i\pm 1$, changing $T$ by $\pm 1$. After $k$ operations, $T = \pm k$ for some sequence of signs — any residue mod 7 reachable.
  • Config A: $T = 1 \cdot 1 = 1$. Reach in 1 step (move unit from 0 to 1). Reachable, answer 1.
  • Config B: $T = 0 + 1 + 2 \cdot (-1) = -1 \equiv 6 \pmod 7$. Reachable in 6 forward steps or 1 backward step. Reachable, answer 1.
Ref 6Cross-Skill Summary Table⭐⭐
Atomic SkillTrigger PhraseInvariant TypeExample Problem
I-A1 Parity"flip pair", "toggle two", "swap"$\sum x_i \pmod 2$ or $B - W$Mutilated chessboard, coin flipping
I-A2 Modular"cycle of $n$", "transfer", "rotate"$\sum x_i \pmod n$ or position-weighted mod $n$Chip firing on cycle, frog mod jumps
I-A3 Weighted"jumps $+a$ or $-b$"$\sum w_i x_i$ with chosen weightsFrog on number line, Conway soldiers
I-A4 Combinatorial"count of X stays the same"Feature count, inversions15-puzzle, string rewriting
Final mastery check Pick any practice problem (P1-P10) at random. Within 30 seconds, identify the invariant type from the table above. If you can do this consistently, you have I-A1 to I-A4 at ⭐⭐⭐⭐ or higher.

Appendix A · Deep Derivations

Deep 1Derivation — Why Weight Choice Matters in WE2 Chip-Firing⭐⭐⭐⭐

We claimed that the position-weighted sum $T = \sum_c \text{pos}(c) \pmod n$ is invariant for chip-firing on an $n$-cycle. Let us derive this rigorously from scratch.

Setup

Vertices $V = \{0, 1, \ldots, n-1\}$ on a cycle. State $S$ assigns a non-negative integer $S(v)$ (number of chips) to each vertex. The total chip count is $N = \sum_v S(v)$.

Operation: at vertex $v$ with $S(v) \ge 2$, remove 2 chips from $v$; add 1 chip to vertex $v-1 \pmod n$ and 1 chip to vertex $v+1 \pmod n$.

Candidate invariant

Define $T(S) = \sum_v v \cdot S(v) \pmod n$. (Note: $v \cdot S(v)$ is computed in integers; the final result is reduced mod $n$.)

Calculation of $\Delta T$

Firing at $v$ changes $S$ as follows:

Total: $\Delta T = -2v + (v-1) + (v+1) = -2v + 2v = 0$.

Hence $T$ is exactly invariant (not just mod $n$). $\square$

Generalisation

The same proof works for any weighting $w: V \to \mathbb{Z}$ satisfying the local condition $w(v-1) + w(v+1) = 2 w(v)$ for every $v$. This says $w$ is an arithmetic progression on the cycle — but on a cycle, the only such functions are constants. So $w = $ identity (treating $v$ as a number) is essentially the unique non-trivial weight, and it works mod $n$.

Higher-order invariants?

One can also check $T_2 = \sum_v v^2 \cdot S(v) \pmod{?}$. After firing at $v$: $$ \Delta T_2 = -2 v^2 + (v-1)^2 + (v+1)^2 = -2v^2 + (v^2 - 2v + 1) + (v^2 + 2v + 1) = 2. $$ So $T_2$ changes by exactly $+2$ per firing — it's a semi-invariant: a quantity with a known deterministic change. This means $T_2 - 2k$ (where $k$ = number of firings) is invariant.

Deep 2Conway Soldiers — The Golden Ratio Invariant⭐⭐⭐⭐⭐

This is one of the most beautiful invariant arguments in combinatorial mathematics. Although it goes beyond AIMO level, the technique is essential for high-end olympiad work.

Setup

Infinite half-plane $y \le 0$ filled with soldiers (one per integer lattice point). Operation: jump one soldier over an adjacent one (horizontally or vertically) into an empty cell; the jumped-over soldier is removed. Goal: get a soldier to $y = 5$.

The invariant

Place a weight $w(x, y) = \phi^{|x| + (5 - y)}$ at each lattice point $(x, y)$, where $\phi = \frac{\sqrt{5} - 1}{2} \approx 0.618$ is the inverse golden ratio (satisfying $\phi^2 + \phi = 1$).

Why it works

Define total weight $W = \sum_{\text{soldier positions}} w(x,y)$. A jump from position $P_1$ over $P_2$ to $P_3$ removes weights $w(P_1) + w(P_2)$ and adds $w(P_3)$. The choice of $\phi$ makes $$ w(P_3) \le w(P_1) + w(P_2) $$ for every legal jump (this requires casework, but the choice $\phi^2 = 1 - \phi$ exactly enables it).

So $W$ is a non-increasing quantity (a monovariant — preview of Part 2).

The bound

The total weight of all soldiers in $y \le 0$ is finite: $W_0 = \sum_{x \in \mathbb{Z}} \sum_{y \le 0} \phi^{|x| + 5 - y}$. This computes to a specific value $< 1$.

But to place a soldier at $(0, 5)$, we'd need $W \ge \phi^{0 + 0} = 1$. Since $W \le W_0 < 1$, we cannot reach $y = 5$. $\blacksquare$

Deep 315-Puzzle — Parity of Permutation⭐⭐⭐⭐⭐

The 15-puzzle is a $4 \times 4$ grid with 15 numbered tiles and one blank. A move slides a tile into the blank.

Invariant

Define the signature: $\sigma = (\text{parity of permutation of tiles}) + (\text{Manhattan distance of blank from corner}) \pmod 2$.

Why invariant

Each move transposes the blank with a neighbouring tile — an odd permutation (sign flip). Each move also changes blank's Manhattan-distance-to-corner by exactly 1 (odd). So both summands flip per move; their sum mod 2 is invariant.

Consequence

Half of the $16!/2 = 10^{13}$ configurations are reachable from the identity; the other half are not. A famous unreachable example: identity with tiles 14 and 15 swapped — the so-called "Sam Loyd 14-15 puzzle".

Deep 4Why Multiple Invariants Are Sometimes Necessary⭐⭐⭐⭐

If one invariant fails to distinguish start from target, you need to find more. Here is a worked illustration.

Problem

$8$ pebbles arranged on a circle, alternately black and white: $B W B W B W B W$. Operation: pick a pebble; if it has the same colour as both neighbours, flip it. Can we reach all black?

Try invariant 1: count mod 2

Initially 4 black, 4 white. Target: 8 black, 0 white. Counts differ — but the operation flips one pebble, changing both counts by $\pm 1$. Hence "count of black mod 2" changes by 1 per move. Not invariant.

Try invariant 2: number of "monochromatic triples"

A monochromatic triple is three consecutive pebbles of the same colour. Initially: 0. The operation requires that the chosen pebble has same colour as both neighbours — i.e., a monochromatic triple already exists. Since initially there are zero, no operation is even legal.

Hence the configuration is frozen at the start; we cannot reach all-black. $\blacksquare$

Lesson Sometimes the "invariant" is the legality of the operation itself — if no operation can ever fire, the start state is the only reachable state.

Appendix B · 30-Problem Drill Bank

Drill BankRapid-Fire Invariant Spotting⭐⭐⭐

For each problem, identify the invariant type in 30 seconds. Then attempt the proof.

#Problem (one line)Invariant type
1Domino tile a $6\times 6$ board minus 2 opposite cornersColour parity
2Knight reach $(8,8)$ from $(1,1)$Colour alternation
3Bishop reach $(1,2)$ from $(1,1)$Colour preservation
4Frog $+2/-3$ on number linemod 5 semi-invariant
5$1, 2, \ldots, 100$ → replace $(a,b)$ by $a+b$ → final numberSum invariant
6$1, 2, \ldots, 100$ → replace $(a,b)$ by $|a-b|$ → parity of finalSum parity
7Coin flip adjacent pair, reach all tails from all headsTotal-tail parity
8Chip-firing on 5-cyclePosition-weighted mod 5
9L-tromino tile $9\times 9$ minus centre3-colouring
1015-puzzle reach swap of 14 and 15Permutation parity
11Conway soldiers reach $y = 5$Golden-ratio weight monovariant
12Row-flip operation on $4\times 4$ gridRow-sum mod 2
134-colour invariant on $2\times 2$ tile cover4-colouring
14Sum of all integers in row → invariant under row+1 opColumn-sum mod row-count
15Star polygon vertex relabelingCombinatorial count
16Permutation cycle structureCycle-length count
17Token shifts on path graphPosition sum
18Token shifts on cycle graphPosition sum mod $n$
19String AB → BBA preserves count$\#A$ invariant
20String AB → BA preserves nothing simpleInversion count parity
21Add 1 to all cells of any rowSum mod row-count
22Coin: flip any 3 consecutiveSum mod 2 (alternating)
23Tree label edge-operationTotal label sum
24$2\times 1$ tiles on $m \times n$ board (when?)$mn$ even
25Hex tiles cover hexagonal region3-colouring
26Magic square preservationRow+col sum constraints
27Grasshopper $\pm 1$ on number line, $n$ steps$n - $ position parity
28Two-player Nim-like gameXOR of pile sizes
29Sliding tile circular puzzleRotational distance
30$\sqrt{2}$ irrational analog for general $n$Prime factorisation parity
How to use this bank Cover the right column. Read each problem; predict the invariant type. Uncover and check. Aim for ≥ 25/30 to confirm mastery. Spend 10 minutes max — don't try to fully solve each, just spot the invariant family.

Appendix C · Glossary of Terms

GlossaryQuick-Lookup Definitions⭐⭐
TermDefinitionNotation
StateThe full configuration of a system at one moment in time.$S$
OperationAn allowed move transforming one state into another.$S \to S'$
InvariantA function $Q$ on states with $Q(S) = Q(S')$ for every operation.$Q$
Semi-invariantA function whose change under each operation is deterministic (e.g., always $+2$).$Q_2$
MonovariantA function that always strictly decreases (or strictly increases). Used to prove termination.$\Phi$
ReachableState $T$ is reachable from $S$ if some sequence of operations transforms $S \to T$.$S \rightsquigarrow T$
Level setThe preimage $Q^{-1}(c)$ of a constant — the set of states with the same invariant value.$Q^{-1}(c)$
Necessary conditionIf reachable, then invariant matches. Used to prove unreachability.
Sufficient conditionIf invariant matches, then reachable. Requires construction.
Bipartite invariantTwo-colour partition of cells; difference in counts is invariant.$B - W$
Weighted sum$\sum_i w_i x_i$ where weights $w_i$ are chosen to make the operation balance.
ParityWhether a value is even or odd; equivalently, the value mod 2.$x \bmod 2$
InversionA pair $(i, j)$ with $i < j$ but $a_i > a_j$. Count is used as a permutation invariant.inv$(\pi)$

Appendix D · Common Mistakes

MistakesTop 7 Pitfalls in Invariant Proofs⭐⭐⭐
  1. Confusing necessary and sufficient. An invariant proves unreachability (if values differ). It does NOT prove reachability — that needs a construction.
  2. Forgetting to check ALL operations. If the problem has multiple operation types, the invariant must be preserved by each one. Check each separately.
  3. Wrong modulus. Picking mod 2 when you should pick mod 3, or vice versa. Try several until one works.
  4. Sign errors in weights. When using weighted sums, double-check signs and arithmetic. A sign flip can hide an invariant.
  5. Ignoring boundary cases. In domino tilings, edge cells may behave differently; make sure your invariant applies everywhere.
  6. Not stating the invariant explicitly. Your proof must contain a sentence: "Define $Q = \ldots$. We claim $Q$ is invariant." Without this, examiners deduct heavily.
  7. Conflating "is preserved" with "is constant". "Preserved" means $\Delta Q = 0$ per operation, hence constant along trajectories. Different starting states can have different $Q$ values.
AIMO marking note Markers look for the three-step structure: (1) Define $Q$; (2) Show $\Delta Q = 0$ under all operations; (3) Compare $Q(\text{start})$ vs $Q(\text{target})$. Skip any step → lose marks. Hit all three → full marks even with brief prose.

Appendix E · Historical Context & Famous Problems

History 1The Mutilated Chessboard — 1946⭐⭐⭐

The mutilated chessboard problem was first posed by philosopher Max Black in 1946 in his book Critical Thinking. It became famous as a textbook example of why "brute force search" is hopeless: there are roughly $10^{12}$ possible domino placements on the 62-cell board, yet a one-line colouring argument settles the question.

The problem also appeared in Solomon Golomb's classic 1965 monograph Polyominoes, which popularised tile-covering problems among mathematicians and computer scientists. Today the proof is a standard introduction to combinatorial invariants in undergraduate discrete-mathematics courses worldwide.

Why this problem matters It cleanly separates computational complexity from mathematical insight. A computer search is intractable; a human argument is one line. This is the soul of olympiad mathematics.
History 2Conway's Soldiers — 1961⭐⭐⭐⭐⭐

John Conway, the British mathematician famous for the Game of Life, posed the soldiers problem around 1961. He proved that no army of pieces can reach the fifth row of the upper half-plane, using the golden-ratio weighting we discussed in Deep 2.

The proof is widely regarded as one of the most elegant combinatorial arguments ever discovered. It demonstrates the deep principle that the right choice of weight can convert a discrete combinatorial impossibility into a continuous inequality.

Decades later, the problem was extended to higher dimensions and continuous variants — leading to current research in chip-firing theory, tropical geometry, and combinatorial game theory.

History 3The 15-Puzzle — Sam Loyd, 1880⭐⭐⭐⭐

In 1880, the American puzzle inventor Sam Loyd offered a $1,000 prize to anyone who could swap the 14 and 15 tiles in the standard 15-puzzle. (The prize would be roughly $30,000 in 2026 dollars.)

The prize was never paid. The reason: the swap of two adjacent tiles is an odd permutation, while every legal move corresponds to a transposition of the blank — an odd permutation too. Each move changes the blank's position, and to return the blank to its starting square requires an even number of moves. Even number of odd permutations = even permutation overall. A single transposition of 14 and 15 is odd. Contradiction.

This was one of the first publicised uses of the parity-of-permutation invariant outside pure mathematics. Today the same idea underlies the analysis of Rubik's cube reachability, sorting networks, and quantum gate decomposition.

History 4Chip-Firing — Modern Era⭐⭐⭐⭐⭐

The abstract chip-firing game was formalised by Anders Björner, László Lovász, and Peter Shor in 1991. They showed that chip-firing on any finite graph has a remarkable property: regardless of which vertex you fire first, the process either continues forever or terminates in a unique stable configuration that depends only on the starting state.

This abelian property is itself a higher-order invariant: the final configuration is invariant under the choice of firing order.

Today chip-firing connects to: divisor theory on algebraic curves (the Baker-Norine theorem, 2007), abelian sandpile groups, the matrix-tree theorem, and tropical Jacobians. It is an unusually deep example of how a simple invariant idea opens onto modern algebraic geometry.

Appendix F · Recommended Study Plan

PlanFrom Today to Next AIMO⭐⭐

Day-by-day schedule

DayTaskTime
1Complete Phase 0 (W11 drill) + Phase 1 (visuals)40 min
2Phase 1.5 + Phase 2 (derivations)40 min
3WE1, WE2, WE3 (worked examples)45 min
4WE4, WE5 + Practice P1-P345 min
5Practice P4-P5 + AIMO 2014 Q1050 min
6AIMO 2022 Q8 + Synthesis50 min
7Review error book; redo any practice with stars < 430 min
8Drill bank (Appendix B) — speed practice30 min
9Read deep derivations (Appendix A); attempt WE6-WE950 min
10Final self-assessment; identify weakest atomic skill20 min

Continuation

After Part 1 (this file), proceed to Part 2 (Extremal Principle & Monovariants), then Part 3 (Combined Proof Synthesis). Together these three parts form the complete W15 Proof II curriculum.

Effort budget Total time for Part 1: ~6 hours over 10 days. Compare to ~3 weeks the average student spends — by following the structured plan, you save more than 60% of the time while reaching ⭐⭐⭐⭐ proficiency.

Appendix G · Practice Answer Key (For Reference)

KeyQuick Solution Index⭐⭐
ProblemReachable?Key InvariantFinal Value (if any)
P1 ($3\times 3$ minus centre)Yes$B - W = 0$Explicit tiling
P2 (Frog 100, 101)Both yesmod 5 cycle
P3 (10 coins, 3-flip)No3-colour-parity mismatch
P4 (Blackboard 1-100, $|a-b|$)Final is evenSum parityEven
P5 (2×2 mini puzzle)NoPermutation parity
P6 ($9\times 9$ minus centre, L-tromino)Depends on centre3-colour count
P7 (Powers of 2)Sum invariantSum2047
P8 (Coin stacks 1,2,3,4,5 → 0,0,0,0,15)YesTotal = 15
P9 (Tree labelling)Iff sums matchTotal label sum
P10 (Grasshopper 100 steps)50 yes, 51 noPosition parity = step parity
WE1 (Mutilated chess)No$B - W = 2 \neq 0$
WE2 (Cycle chip-firing)Pos-weighted sum mod $n$
WE3 (7 coins, adj pair)NoTail parity
WE4 (String AIMO preview)$\#A$ + mod-2 of $\#B$512
WE5 (4×4 row/col flip)NoTotal parity = 1 vs 0
WE6 (3-pile transfer)Iff sums matchTotal
WE7 (Knight (1,1) → (8,8))YesColour alternation (8 moves)
WE8 (Bottles 1,4,7 → 4,4,4)YesEach mod 3
WE9 (4×4 diagonal op)NoRow-sum vector
AIMO 2014 Q104-colour count36
AIMO 2022 Q8Sum parity512
Synthesis (7 chips)Sum invariant = 21$p = 3$
Bonus (7-cycle)Both yesSum + pos-weighted

Appendix H · Quick-Reference Card

CardPrint This — One-Page Cheat Sheet

The 3-Step Universal Procedure

  1. Find $Q$. Try sum, parity, mod $n$, colour count, weighted sum, inversion count.
  2. Show $\Delta Q = 0$. Compute the operation's effect on $Q$.
  3. Compare endpoints. If $Q(\text{start}) \neq Q(\text{target})$, unreachable. Otherwise construct.

The 6 Standard Invariants

Decision Tree

Top Mistakes to Avoid