We have n≥2 lamps L1,…,Ln 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 Li and its neighbours (only one neighbour for i=1 or i=n, two neighbours for other i) are in the same state, then Li is switched off; - otherwise, Li is switched on. Initially all the lamps are off except the leftmost one which is on.
a. Prove that there are infinitely many integers n for which all the lamps will eventually be off.
b. Prove that there are infinitely many integers n for which the lamps will never be all off.
Solution
a. Experiments with small n lead to the guess that every n of the form 2k should be good. This is indeed the case, and more precisely: let Ak be the 2k×2k 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]; the bottom row shows the state after 2k−1 steps. The claim is that: The bottom row of Ak is [1,1,1,…,1]. This will of course suffice because one more move then produces [0,0,0,…,0], as required.
The proof is by induction on k. The base k=1 is obvious. Assume the claim to be true for a k≥1 and write the matrix Ak+1 in the block form (AkBkOkCk) with four 2k×2k matrices. After m steps, the last 1 in a row is at position m+1. Therefore Ok is the zero matrix. According to the induction hypothesis, the bottom row of [AkOk] is [1,…,1,0,…,0], with 2k ones and 2k zeros. The next row is thus [2k−10,…,0,1,1,2k−10,…,0] 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 Bk is the mirror image of Ck. In particular, the rightmost column of Bk is identical with the leftmost column of Ck.
Imagine the matrix Ck in isolation from the rest of Ak+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 Ck again in Ak. The 'leftmost' terms in the rows of Ck now have neighbours on their left side - but these neighbours are their exact copies. Consequently the actual evolution within Ck is the same, whether or not Ck is considered as a piece of Ak+1 or in isolation. And since the top row of Ck is [1,0,…,0], it follows that Ck is identical with Ak.
The bottom row of Ak is [1,1,…,1]; the same is the bottom row of Ck, hence also of Bk, which mirrors Ck. So the bottom row of Ak+1 consists of ones only and the induction is complete.
b. There are many ways to produce an infinite sequence of those n for which the state [0,0,…,0] will never be achieved. As an example, consider n=2k+1 (for k≥1). The evolution of the system can be represented by a matrix A of width 2k+1 with infinitely many rows. The top 2k rows form the matrix Ak 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]. But this is just the second row of 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], i.e. the second row of 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: MathNet,
licensed CC-BY-4.0.
Statement and solution reproduced as published; topic and difficulty added by this site.