Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabia Mathematical Competitions 2012

Saudi Arabia 2012 counting and probability

Problem

Let be a positive integer. Suppose we have a circle with positions labeled in clockwise order. counters, each with one side white and the other side black, are placed on the circle with one counter in each of the numbered positions. Initially all counters have the white side facing up, except the counter at position which shows black. We are allowed to perform the following operation: (i) Choose a counter whose black side is facing up, and let be the next two counters in clockwise order. (ii) Flip counter so that it is showing the other color. (iii) Move two spaces clockwise, and move one space counterclockwise. (So after the operation we still have one counter in each position.) Let be any nonempty subset of . Show that we can perform a finite sequence of moves after which the numbers in correspond exactly to the positions of the black counters.
Solution
The operation is invertible; its inverse is to take consecutive counters with black, move to the front, and flip . We will work with this operation instead, and show that from any initial position with at least one black counter, we can reach the configuration with one black counter on position .

Let denote a black counter and denote a white counter. Suppose we do not have two consecutive counters of the same color anywhere. Take a configuration and perform the move changing it to . Given that we have two consecutive white counters, we can find a configuration and perform the move changing it to . So no matter what we start with, we will be able to obtain two consecutive black counters somewhere.

Now we use our two consecutive black counters to turn everything black. Suppose there is a white counter; by taking the first white counter preceding a run of at least two consecutive black counters we have a configuration of the form . Perform the move to obtain , eliminating this white counter. By repeating this process we change all the counters to black.

It now suffices to show that we can get to just one black counter from this, since we can cyclically shift any moves from this point to ensure it ends up on space . Given the configuration , two moves will change it to . So we can change the black counters to white in pairs. Repeat this process in a way that keeps all the white counters and black counters consecutive. If is odd, this gives us one black counter at the end. If is even, we get two consecutive black counters with the rest white. Then perform three moves on , which changes it to . This completes the proof.

Techniques

Games / greedy algorithmsInvariants / monovariantsColoring schemes, extremal arguments