Maths Olympiad Prep

Library / /509 of 520

Combinatorics Difficulty 7.7 National olympiad, round 2 Prove it

We have n2n \geq 2 lamps L1,,LnL_{1}, \ldots, L_{n} in a row, each of them being either on or off. Every second we simultaneously modify the state of each lamp as follows:
- if the lamp LiL_{i} and its neighbours (only one neighbour for i=1i=1 or i=ni=n, two neighbours for other ii) are in the same state, then LiL_{i} is switched off;
- otherwise, LiL_{i} is switched on.
Initially all the lamps are off except the leftmost one which is on.
(a) Prove that there are infinitely many integers nn for which all the lamps will eventually be off.
(b) Prove that there are infinitely many integers nn for which the lamps will never be all off.
(France)

Solution

(a) Experiments with small nn lead to the guess that every nn of the form 2k2^{k} should be good. This is indeed the case, and more precisely: let AkA_{k} be the 2k×2k2^{k} \times 2^{k} matrix whose rows represent the evolution of the system, with entries 0,1 (for off and on respectively). The top row shows the initial state [1,0,0,,0][1,0,0, \ldots, 0]; the bottom row shows the state after 2k12^{k}-1 steps. The claim is that:
 The bottom row of Ak is [1,1,1,,1] \text { The bottom row of } A_{k} \text { is }[1,1,1, \ldots, 1] \text {. }
This will of course suffice because one more move then produces [0,0,0,,0][0,0,0, \ldots, 0], as required.
The proof is by induction on kk. The base k=1k=1 is obvious. Assume the claim to be true for a k1k \geq 1 and write the matrix Ak+1A_{k+1} in the block form (AkOkBkCk)\left(\begin{array}{ll}A_{k} & O_{k} \\ B_{k} & C_{k}\end{array}\right) with four 2k×2k2^{k} \times 2^{k} matrices. After mm steps, the last 1 in a row is at position m+1m+1. Therefore OkO_{k} is the zero matrix. According to the induction hypothesis, the bottom row of [AkOk]\left[A_{k} O_{k}\right] is [1,,1,0,,0][1, \ldots, 1,0, \ldots, 0], with 2k2^{k} ones and 2k2^{k} zeros. The next row is thus
[0,,02k1,1,1,0,,02k1] [\underbrace{0, \ldots, 0}_{2^{k}-1}, 1,1, \underbrace{0, \ldots, 0}_{2^{k}-1}]
It is symmetric about its midpoint, and this symmetry is preserved in all subsequent rows because the procedure described in the problem statement is left/right symmetric. Thus BkB_{k} is the mirror image of CkC_{k}. In particular, the rightmost column of BkB_{k} is identical with the leftmost column of CkC_{k}.
Imagine the matrix CkC_{k} in isolation from the rest of Ak+1A_{k+1}. Suppose it is subject to evolution as defined in the problem: the first (leftmost) term in a row depends only on the two first terms in the preceding row, according as they are equal or not. Now embed CkC_{k} again in AkA_{k}. The 'leftmost' terms in the rows of CkC_{k} now have neighbors on their left side- but these neighbors are their exact copies. Consequently the actual evolution within CkC_{k} is the same, whether or not CkC_{k} is considered as a piece of Ak+1A_{k+1} or in isolation. And since the top row of CkC_{k} is [1,0,,0][1,0, \ldots, 0], it follows that CkC_{k} is identical with AkA_{k}.
The bottom row of AkA_{k} is [1,1,,1][1,1, \ldots, 1]; the same is the bottom row of CkC_{k}, hence also of BkB_{k}, which mirrors CkC_{k}. So the bottom row of Ak+1A_{k+1} consists of ones only and the induction is complete.
(b) There are many ways to produce an infinite sequence of those nn for which the state [0,0,,0][0,0, \ldots, 0] will never be achieved. As an example, consider n=2k+1n=2^{k}+1 (for k1k \geq 1 ). The evolution of the system can be represented by a matrix A\mathcal{A} of width 2k+12^{k}+1 with infinitely many rows. The top 2k2^{k} rows form the matrix AkA_{k} discussed above, with one column of zeros attached at its right.
In the next row we then have the vector [0,0,,0,1,1][0,0, \ldots, 0,1,1]. But this is just the second row of A\mathcal{A} reversed. Subsequent rows will be mirror copies of the foregoing ones, starting from the second one. So the configuration [1,1,0,,0,0][1,1,0, \ldots, 0,0], i.e. the second row of A\mathcal{A}, will reappear. Further rows will periodically repeat this pattern and there will be no row of zeros.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.