There are markers, each with one side white and the other side black, aligned in a row so that their white sides are all up in the beginning. In each step, if possible, we choose a marker with the white side up (but not the one of outermost markers), remove it, and reverse the closest marker to the left and the closest marker to the right of it. Prove that one can achieve the state with only two markers remaining if and only if is not divisible by . (Short-list, IMO-2005)
, 2006
Solution
It is easy to handle the cases :
a. : , by removing middle and reversing the other two;
b. : ;
c. : .
The last reduction shows that for , we can pick any six 's and reduce it three 's there by reducing the case to that of . Since we have ended with 2 markers for and , it follows by induction that the 'two marker state' is achievable for or .
We have to show that this is not possible for . Observe that the number of 's is invariant modulo in each move: ; ; ; . Since all are in the beginning, the final two markers must be either or . We assign weights to and .
Take the group of symmetries of an equilateral triangle with centre at origin and -axis passing through a vertex; let denote rotation by about the centre in clock-wise direction; and let denote the reflection in axis. Then it is easy to see that
Thus we may assign , . The properties of and show that they obey the reductions , ; ; and the total weights remain unchanged after each move. Hence if the 'two marker state is achievable, then the end weights must be either or (corresponding to and respectively). If , the total weight at the beginning is . But or as is evident from the definitions of these functions. Hence 'two marker state' is not achievable for .