Skip to main content
OlympiadHQ

Browse · MathNet

Print

22nd Korean Mathematical Olympiad Final Round

South Korea counting and probability

Problem

In a table, there are coins each with one side white and the other side black. At the beginning all coins are aligned in a row with all their white sides up except one with its black side up. In each step we choose a coin with black side up and flip the two adjacent coins. If we choose the outermost coin, then we flip just one adjacent coin. Find all positions of the black coin at the beginning from which we can reach the state where all coins have black sides up.
Solution
For each coin in the table we give a positive integer one by one from the leftmost one. We show that if the black coin is in the th place, then we can make each coin's black side up after some steps. If we choose one by one, then all five coins having numbers from to become black side up.

Assume that all coins with numbers become black side up. If then we proceed the steps one by one with black coins having the following numbers and if then so that we can make all coins with numbers from to become black side up.

Now assume that all coins whose black sides are up have numbers in some state. We define Assume that we choose the coin having a number to proceed the step. First consider the case when . If and then the value after the procedure becomes which equals to . For the remaining one may easily check that is an invariant in each step. If then is changed by whether or not . Finally if , then one may easily check that is changed by . Therefore the remainder or of divided by is invariant under the procedure.

If every coin becomes black side up then . Therefore only when the coin whose black side is up is in the th place, we can make every coin's black side up.
Final answer
1005

Techniques

Invariants / monovariantsInduction / smoothing