Browse · MathNet
PrintIMO 2006 Shortlisted Problems
2006 counting and probability
Problem
We have lamps 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 and its neighbours (only one neighbour for or , two neighbours for other ) are in the same state, then is switched off; - otherwise, is switched on. Initially all the lamps are off except the leftmost one which is on.
a. Prove that there are infinitely many integers for which all the lamps will eventually be off.
b. Prove that there are infinitely many integers for which the lamps will never be all off.
a. Prove that there are infinitely many integers for which all the lamps will eventually be off.
b. Prove that there are infinitely many integers for which the lamps will never be all off.
Solution
a. Experiments with small lead to the guess that every of the form should be good. This is indeed the case, and more precisely: let be the matrix whose rows represent the evolution of the system, with entries (for off and on respectively). The top row shows the initial state ; the bottom row shows the state after steps. The claim is that: This will of course suffice because one more move then produces , as required.
The proof is by induction on . The base is obvious. Assume the claim to be true for a and write the matrix in the block form \left(\right) with four matrices. After steps, the last in a row is at position . Therefore is the zero matrix. According to the induction hypothesis, the bottom row of is , with ones and zeros. The next row is thus 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 is the mirror image of . In particular, the rightmost column of is identical with the leftmost column of .
Imagine the matrix in isolation from the rest of . 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 again in . The 'leftmost' terms in the rows of now have neighbours on their left side - but these neighbours are their exact copies. Consequently the actual evolution within is the same, whether or not is considered as a piece of or in isolation. And since the top row of is , it follows that is identical with .
The bottom row of is ; the same is the bottom row of , hence also of , which mirrors . So the bottom row of consists of ones only and the induction is complete.
b. There are many ways to produce an infinite sequence of those for which the state will never be achieved. As an example, consider (for ). The evolution of the system can be represented by a matrix of width with infinitely many rows. The top rows form the matrix discussed above, with one column of zeros attached at its right.
In the next row we then have the vector . But this is just the second row of reversed. Subsequent rows will be mirror copies of the foregoing ones, starting from the second one. So the configuration , i.e. the second row of , will reappear. Further rows will periodically repeat this pattern and there will be no row of zeros.
The proof is by induction on . The base is obvious. Assume the claim to be true for a and write the matrix in the block form \left(\right) with four matrices. After steps, the last in a row is at position . Therefore is the zero matrix. According to the induction hypothesis, the bottom row of is , with ones and zeros. The next row is thus 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 is the mirror image of . In particular, the rightmost column of is identical with the leftmost column of .
Imagine the matrix in isolation from the rest of . 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 again in . The 'leftmost' terms in the rows of now have neighbours on their left side - but these neighbours are their exact copies. Consequently the actual evolution within is the same, whether or not is considered as a piece of or in isolation. And since the top row of is , it follows that is identical with .
The bottom row of is ; the same is the bottom row of , hence also of , which mirrors . So the bottom row of consists of ones only and the induction is complete.
b. There are many ways to produce an infinite sequence of those for which the state will never be achieved. As an example, consider (for ). The evolution of the system can be represented by a matrix of width with infinitely many rows. The top rows form the matrix discussed above, with one column of zeros attached at its right.
In the next row we then have the vector . But this is just the second row of reversed. Subsequent rows will be mirror copies of the foregoing ones, starting from the second one. So the configuration , i.e. the second row of , will reappear. Further rows will periodically repeat this pattern and there will be no row of zeros.
Techniques
Recursion, bijectionInvariants / monovariantsMatrices