Browse · MathNet
PrintMathematical Olympiad Rioplatense
Argentina counting and probability
Problem
Consider the following sequence of tables:
1-table
2-table
3-table
In each cell of a -table there are a switch and a bulb. Initially all bulbs are off. Pressing a switch changes the state (from on to off and vice versa) only of the bulbs in the cells adjacent to the cell of the switch. (Two cells are adjacent if they have a common side.)
For each value of determine the maximum number of bulbs that can be turned on in the -table by pressing several switches.


1-table
2-table
3-table
In each cell of a -table there are a switch and a bulb. Initially all bulbs are off. Pressing a switch changes the state (from on to off and vice versa) only of the bulbs in the cells adjacent to the cell of the switch. (Two cells are adjacent if they have a common side.)
For each value of determine the maximum number of bulbs that can be turned on in the -table by pressing several switches.
Solution
A -table has cells. Imagine them colored black and white in chessboard pattern, with the top right cell black. The white part can be regarded as the union of white diagonals with cells in each, running from top left to bottom right. Likewise the black part is the union of black diagonals with cells in each, running from top right to bottom left. Pressing the switch in a cell can change only the state of cells with the opposite color, and only in diagonals containing cells adjacent to . Moreover, observe that if a diagonal (of the opposite color) is affected by pressing the switch in then exactly two bulbs in it change state. Consequently the parity of the number of bulbs in state on is constant for every diagonal. All bulbs were off initially. Hence each diagonal contains an even number of bulbs that are on, after any number of moves.
If is even, it follows that at least one of the bulbs in each of the diagonals is off after any number of moves. So at most bulbs on can be obtained. (No similar restriction follows for odd.) We present examples that all bulbs can be turned on in the odd case, and exactly bulbs on can be achieved in the even case.
For odd the procedure involves only switches in odd-numbered rows (from top to bottom). Press the two switches in row 1. In row 3 press the pairs of switches (1,2) and (5,6); in row 5 the pairs (1,2), (5,6) and (9,10). Proceed similarly till row (which is involved in the process since is odd): press the first two switches, jump over the next two and so on. For the odd-numbered rows the rule is similar. We press two switches and jump over the next two, but starting with the second switch in each of these rows. Every cell in the -table has exactly one neighbor whose switch is pressed. Hence all bulbs will be on eventually.
odd
even
Let be even. We regard the -table as an extension of a -table so that and share the same center. The cells of outside are precisely the border cells of . Apply to the sequence of switches described in the odd case. It turns on all cells in . Observe in addition that all border cells of above the middle horizontal line are also turned on—but the border cells below the middle horizontal line are off. There are such cells, so the procedure achieves exactly bulbs on.
If is even, it follows that at least one of the bulbs in each of the diagonals is off after any number of moves. So at most bulbs on can be obtained. (No similar restriction follows for odd.) We present examples that all bulbs can be turned on in the odd case, and exactly bulbs on can be achieved in the even case.
For odd the procedure involves only switches in odd-numbered rows (from top to bottom). Press the two switches in row 1. In row 3 press the pairs of switches (1,2) and (5,6); in row 5 the pairs (1,2), (5,6) and (9,10). Proceed similarly till row (which is involved in the process since is odd): press the first two switches, jump over the next two and so on. For the odd-numbered rows the rule is similar. We press two switches and jump over the next two, but starting with the second switch in each of these rows. Every cell in the -table has exactly one neighbor whose switch is pressed. Hence all bulbs will be on eventually.
odd
even
Let be even. We regard the -table as an extension of a -table so that and share the same center. The cells of outside are precisely the border cells of . Apply to the sequence of switches described in the odd case. It turns on all cells in . Observe in addition that all border cells of above the middle horizontal line are also turned on—but the border cells below the middle horizontal line are off. There are such cells, so the procedure achieves exactly bulbs on.
Final answer
Maximum = 2k^2 + 2k if k is odd; Maximum = 2k^2 if k is even.
Techniques
Invariants / monovariantsColoring schemes, extremal arguments