Browse · MathNet
PrintRioplatense Mathematical Olympiad
Argentina counting and probability
Problem
In each cell of a board, there is a lamp and a button. Pressing the button in a cell changes the state of the lamps in its neighboring cells (those that are on turn off and vice versa). The lamp in the same cell as the button does not change its state. Initially, all lamps are off.
a. Is it possible, after pressing some buttons, to ensure that all lamps are turned on?
b. How many different board states can be achieved?
Remark: Two cells are considered neighbors if they share a common side. Two board states are different if there is at least one lamp that is on in one state and off in the other.
a. Is it possible, after pressing some buttons, to ensure that all lamps are turned on?
b. How many different board states can be achieved?
Remark: Two cells are considered neighbors if they share a common side. Two board states are different if there is at least one lamp that is on in one state and off in the other.
Solution
First we make some useful observations that will simplify the problem:
The order in which the buttons are pressed is not relevant to the final state. We only care about the number of times each button was pressed. Since pressing the same button twice makes no changes, we can assume that each button was pressed 0 or 1 times.
a. The answer is no. We proceed by contradiction. Suppose that there is a way to turn every lamp on after pressing some buttons. We denote by the number of times each button was pressed, as shown in the figure. Since the upper left corner cell must be turned on, we know that must be odd. Also, since the lower right cell must be turned on, we have that must be odd. This means that must be even. On the other hand, since the central cell must be turned on, has to be odd, but this is a contradiction. Therefore, it is not possible to ensure that all lamps are turned on after pressing some buttons.
b. We start by observing that there are ways to press the buttons, since each of the nine buttons can be pressed 0 or 1 times. However, this does not mean that there are different board states that can be achieved, because there may be repetitions. So let's find out, for any given board state, how many times it appears among those results. To do that, given a fixed board state, we need to count in how many ways we can press the buttons to return to the original board state at the end. Suppose that we press a sequence of buttons that returns to the original board state, where we name the number of times each button was pressed as we did in (a). For the corner cells to return to their original state, we need , and to be even. This happens if and only if have the same parity, and since their possible values are 0 or 1, they must be equal. Note that this also implies that the central cell returns to its original state after pressing the buttons, since is even. On the other hand, since the neighbors of the central cell must also return to their initial state, we need and to be even. Subtracting we get that has the same parity as , so . Similarly, we get and also that has the same parity as . We conclude that if we choose and arbitrarily, we can fix the other numbers to satisfy the conditions needed to return to the original board state after pressing the buttons, so every fixed board state appears times in the possible results after pressing buttons. Therefore, there are different board states that can be achieved.
The order in which the buttons are pressed is not relevant to the final state. We only care about the number of times each button was pressed. Since pressing the same button twice makes no changes, we can assume that each button was pressed 0 or 1 times.
a. The answer is no. We proceed by contradiction. Suppose that there is a way to turn every lamp on after pressing some buttons. We denote by the number of times each button was pressed, as shown in the figure. Since the upper left corner cell must be turned on, we know that must be odd. Also, since the lower right cell must be turned on, we have that must be odd. This means that must be even. On the other hand, since the central cell must be turned on, has to be odd, but this is a contradiction. Therefore, it is not possible to ensure that all lamps are turned on after pressing some buttons.
| a | b | c |
|---|---|---|
| d | e | f |
| g | h | i |
Final answer
a: no; b: 64
Techniques
Invariants / monovariantsCounting two ways