Fox, the FoxSumKids mascotFoxSumKids Start FoxSumKids

Invariants: math practice, grade 12

Practise “Invariants” online for free. Five right answers in a row make the tasks harder, two mistakes in a row make them easier. Right answers earn coins for games.

  • grade 12
  • Levels 1–5
  • Step-by-step solutions
  • Free

Start FoxSumKids

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

  1. The product of all the numbers never changes. It is odd only if every number is odd.
  2. 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.

Example problems

These are only examples: the practice makes new tasks every time. 🖨 Printable worksheet

  1. Coins: 4, all heads up. A move turns over exactly 3 coins. Can all the coins end up tails up?

    Answer

    Yes

    1. Yes. The number of heads changes like this: 4 → 1 → 2 → 3 → 0.
  2. Numbers are written on a board. A move rubs out any two numbers a and b and writes ab + a + b. Which number is left at the end?

    1, 2, 3, 4
    ?

    Answer

    119

    1. ab + a + b + 1 = (a + 1)(b + 1): the product of the numbers each made 1 bigger never changes.
    2. 2 × 3 × 4 × 5 − 1 = 119
  3. 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?

    1, 3, 2, 2

    Answer

    Yes

    1. The product of all the numbers never changes. It is odd only if every number is odd.
    2. The last number is always even.
  4. Numbers are written on a board. A move rubs out any two numbers a and b and writes |a − b|. Can the last number be odd?

    1, 1, 2, 1, 5, 3

    Answer

    Yes

    1. |a − b| has the same parity as a + b: the parity of the sum never changes.
    2. The last number is always odd.
  5. Chameleons of three colours live on an island. When two chameleons of different colours meet, both turn the third colour. Can all of them become this colour: 🟢?

    🔴 7, 🟢 2, 🔵 6

    Answer

    No

    1. At a meeting the difference between the counts of any two colours changes by 0 or 3: its remainder when divided by 3 never changes.
    2. The difference between 🔴 and 🔵 is 1, not divisible by 3, but at the end it would have to be 0. No.
  6. Two cells have been cut out. Can the board be cut into 1 × 2 dominoes?

    Answer

    No

    1. A domino always covers one dark and one light cell.
    2. Both cut-out cells are the same colour: there are not as many dark cells left as light ones. No.

Practise “Invariants” online

Free and with no sign-up: the first task opens in a couple of seconds.

Start FoxSumKids

More topics: Grade 12

← All topics