Idea: Ask what cannot change
When there are too many orders of moves to simulate, look for a quantity no move can change.
- Each move: out, in
- So the sum on the board falls by per move
- The order of moves never matters
Example: Erase and replace
Write to . Repeatedly erase and and write . What is the last number?
- Each move lowers the sum by
- Moves: ; the starting sum is
- Last number:
Idea: Candidates to test first
Test each on a single move written with letters, not numbers.
- The sum, or the sum plus a known drift
- The parity of a sum or of a count
- A product after a shift such as , or a remainder
Quick check: A rule with a product
On , , , a move replaces and with . What number is left?
Show the answer
Answer:
, so is fixed, and .
Formula: Pairing, the Gauss idea
Write the run forwards and backwards: every column has the same total. Terms times the average of the ends.
Common mistake: Last minus first
Counting the terms from to as . That slip shifts the whole sum by the average.
Instead Count last minus first plus one: terms, sum .
Example: Tokens of 3 colours
red, green, blue. A move turns tokens of different colours into the third colour. Which colour can all end in?
- A move changes the counts by , , : gaps change by or
- Red minus green is , a multiple of
- Red minus blue , green minus blue : only all blue works
Idea: Symmetry wins games
Players take turns placing equal coins on a round table; whoever cannot place one loses.
- The first player takes the exact centre
- Then mirrors every move through the centre
- The mirror spot is always free, so the other player runs out first
Idea: Name the invariant first
Say "the sum drops by per move" or "the product of is fixed" before any arithmetic.
- Then give the starting value
- Then the number of moves
- That solves every version, not just this one
Courses / Brainteaser patterns