Maths Olympiad Prep

Library / /12 of 18

Combinatorics Difficulty 6.8 National olympiad Prove it Argentina

Consider the following sequence of tables:

<table><tr><td></td></tr></table>

1-table

<table><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr></table>

2-table

<table><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr></table>

3-table

In each cell of a kk-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 kk determine the maximum number of bulbs that can be turned on in the kk-table by pressing several switches.

Solution

A kk-table has 2k2+2k2k^2 + 2k 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 kk white diagonals with k+1k+1 cells in each, running from top left to bottom right. Likewise the black part is the union of kk black diagonals with k+1k+1 cells in each, running from top right to bottom left. Pressing the switch in a cell CC can change only the state of cells with the opposite color, and only in diagonals containing cells adjacent to CC. Moreover, observe that if a diagonal (of the opposite color) is affected by pressing the switch in CC 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 kk is even, it follows that at least one of the k+1k+1 bulbs in each of the 2k2k diagonals is off after any number of moves. So at most (2k2+2k)2k=2k2(2k^2 + 2k) - 2k = 2k^2 bulbs on can be obtained. (No similar restriction follows for kk odd.) We present examples that all 2k2+2k2k^2 + 2k bulbs can be turned on in the odd case, and exactly 2k22k^2 bulbs on can be achieved in the even case.

For kk 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 kk (which is involved in the process since kk is odd): press the first two switches, jump over the next two and so on. For the odd-numbered rows k+2,k+4,,2k1k+2, k+4, \dots, 2k-1 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 kk-table has exactly one neighbor whose switch is pressed. Hence all bulbs will be on eventually.

Figure 1

kk odd

Figure 2

kk even

Let kk be even. We regard the kk-table TT as an extension of a (k1)(k-1)-table TT' so that TT and TT' share the same center. The cells of TT outside TT' are precisely the border cells of TT. Apply to TT' the sequence of switches described in the odd case. It turns on all cells in TT'. Observe in addition that all border cells of TT above the middle horizontal line are also turned on—but the border cells below the middle horizontal line are off. There are 2k2k such cells, so the procedure achieves exactly 2k22k^2 bulbs on.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.