A primary-school lab (ages 8-12) on parity invariants. Everything is hands-on: turning cups over, rubbing numbers
off a board, making a playing card somersault, swapping tiles and, at the end, a magic trick. Every block has
challenges that work and one that does not; students find out by pressing “It is impossible”, and an animated
explanation shows them why.
The idea running through the lab: when every move changes something two at a time (or always switches it between
even and odd), knowing whether a number is even or odd is enough to predict what will happen, without trying every way.
What students learn
- Inventing and carrying out sequences of moves to reach a goal, and looking for the shortest one.
- Keeping track of something during the game (upside-down cups, the sum on the board, flips, pairs in the wrong order)
and noticing whether it is even or odd.
- Recognising an invariant: something that does not change, however much you move.
- Using the invariant to prove that a goal is impossible and to predict the result without playing.
- Seeing that the invariant depends on the rule: turning two cups at a time keeps the parity; turning three does not.
- Using colourings (chessboard, striped rows, alternate places) as a tool for discovering invariants.
Key mathematical ideas, by block
A · The cups. Turning two cups over changes the number of upside-down cups by +2, −2 or 0: its parity is
invariant. With 3 upside down you never reach 0. It does not matter whether the two cups are neighbours; with three
at a time the parity does change and the challenge becomes possible again.
B · The board. Replacing a and b by their difference makes the sum go down by twice the smaller one, an even
number. From 1 to 6 the sum is 21: you can only finish with 1, 3 or 5. From 1 to 8 it is 36: only 0, 2, 4, 6 or 8.
C · The card. Every flip turns the card over and moves it to a square of the other colour on the chessboard: the
face depends only on the colour of the square. Flips up or down change the row and turn the cup round: the cup’s
direction depends only on the row. That is why the card never gets back home face up, and always reaches each square
in the same state.
D · Swapping neighbours. Each swap of neighbours changes the order of exactly one pair. The minimum number of swaps
is the number of pairs in the wrong order (6 for AMOR → ROMA, 15 to reverse six numbers), and the parity of the number
of swaps is fixed: AMOR → ROMA in 8 swaps yes, in 7 no.
E · Reversed trios. Reversing three neighbours swaps the two ends, which are two places apart: each number stays
on places of the same parity. 1..5 can be reversed; 1..6 cannot.
F · The magician. Each coin flip changes the parity of the number of heads. Whoever knows the starting parity and
counts the flips can guess the covered coin.
Based on the “Parity” worksheet of the Escuela de Pensamiento Matemático, with different numbers and goals. Numbers
checked by exhaustive search in scripts/verify_paridad.mjs.