What the topic is about
An invariant is something that does not change from move to move: the parity of a sum, a remainder when divided by 3, the colouring of a board. It proves that something cannot be done: turning all coins over, recolouring chameleons, covering a board with dominoes.
Where it leads
Invariants are one of the main ideas of olympiad maths, and of physics too (conservation of energy and momentum) and computer science (loop invariants, proving programs correct). It is the skill of seeing what does not change while everything changes.
How to solve
- Look at what one move changes and by how much.
- Find what stays the same: a sum, a parity, a remainder, a difference.
- Compare the invariant at the start and at the end you want: if they differ, it cannot be done.
A worked example
Numbers are written on a board. A move rubs out any two numbers a and b and writes ab. Can the last number be even?
2, 4, 5, 8, 2
Answer: Yes
- The product of all the numbers never changes. It is odd only if every number is odd.
- The last number is always even.
Typical mistakes
- Trying moves at random instead of looking for what does not change.
- Finding an invariant but not comparing it with the end position.
How to tell it is learnt
- Finds a quantity that a move does not change.
- Proves something impossible with parity, a remainder or a colouring.
- Finds a sequence of moves when the goal can be reached.
How to help at home
Put 7 coins heads up on the table and allow turning over exactly two in a move. Can all of them be turned over? Let your teenager try first and then explain why not.
A game without a phone
Draw a chessboard, cut off two opposite corners and try to cover the rest with dominoes. It does not work? Colour the cells and find the reason. Then cut out cells of different colours and try again.
