Algebra
This activity belongs to the GeoGebra book Lights Out (Games with solutions).
Your goal is to turn off all the lights. The difficulty is that when you click on any square, in addition to its state, it changes the state of its adjacent squares.
You can find more information about this game in this article (June 2002) of Suma magazine (Spanish magazine on the teaching and learning of mathematics).
Each box in the first row has a letter. Subsequent rows follow from the first, so there must be a relationship between them. Let's see: the box occupied by the letter a (which can be 1 or 0, that is, it can be selected or not) must remain illuminated. Which means that if I call the state of the cell immediately below it x, then a + b + x must be an odd number. That is, “a + b + x is congruent to 1 modulo 2”.
This notation can be simplified if we agree that, henceforth, all operations are carried out with algebra modulo 2 (in whose arithmetic 1+1=0).In this way we can write x = a + b + 1 (check: a + b + (a + b + 1) = 1).
In the same way, to irretrievably illuminate the square occupied by the letter b, the letter y must take a value such that a + b + c + y results in “1”. From which it follows that the value of y must be precisely a + b + c + 1.
Thus, the rest of the boxes can be completed in a few seconds.
Ah, but now I need the last row to be lit as well! To do this, a sixth "virtual" row is added whose state, following the same method, is the one shown in the previous figure.
Well, the fifth row is already illuminated, but now the sixth row that I added is "excess". This row was added to force the fifth to light, but it did not appear in the original square. Therefore, none of these "virtual boxes" can be selected. Well, nothing, you have to eliminate them, delete them, annul them:
From which it follows that two of the variables (for example d and e) are free (they can take any value, 0 or 1, so there are 4 possibilities) and the other three depend on them, as shown by the black box in the figure.
Author of the construction of GeoGebra: Rafael Losada