Predict changes with XOR
Use binary addition modulo 2 to explain why pressing the same switch twice cancels and why order does not matter.
1 ⊕ 1 = 0 · 0 ⊕ 1 = 1MATHEMATICAL GAMES GCSE HIGHER · ENRICHMENT
An illuminated puzzle. A hidden binary matrix. Discover why some arrangements surrender in three moves — and others can never be solved.
01 / THE SWITCHBOARD
03 / EXPERIMENT LOG
04 / TEST YOUR UNDERSTANDING
Use the control board above to solve the puzzle.
05 / THE SCIENCE BEHIND THE GAME
Lights Out is an introduction to linear algebra, parity and the difference between trying random moves and proving an answer.
Use binary addition modulo 2 to explain why pressing the same switch twice cancels and why order does not matter.
1 ⊕ 1 = 0 · 0 ⊕ 1 = 1Represent lamps as a vector b, presses as p, and the switch connections as matrix A.
A p = b (mod 2)Apply Gaussian elimination over GF(2) to find the rank, detect contradictions and prove the smallest number of presses.
solutions = 2free variablesBinary parity appears in digital circuits, error-detecting codes, data storage, and logic networks. The same matrix techniques help engineers analyse many interconnected on/off systems.
Ideal switches flip exactly their own lamp and the four edge-sharing neighbours. Every lamp has a binary state; simultaneous effects are XOR. There are no diagonal links, electrical delays or faults. All answers are exact, not measured approximations.