Skip to main content
OlympiadHQ

Browse · MathNet

Print

Japan Mathematical Olympiad

Japan counting and probability

Problem

There are pieces each of red cards and white cards. These cards are mixed and put on a pile. Then, each of the participating players is dealt cards from the pile, and then all of the players are seated in a circular arrangement facing interior of the circle. At every turn of the game each player will perform the following act simultaneously: If a player possesses at least one red card, he will pass one red card to the player sitting next to him on the left-side. If a player does not have any red card in his possession, then he will pass one white card to the player on his left. Determine the maximum possible number of turns necessary to reach for the first time the situation where every player will have one each of red and white cards.
Solution
Pick some player and call him . Let be and for designate by the player sitting at the -th position from the player counted clockwise. For a non-negative integer and a positive integer denote by the number obtained by subtracting the total number of red cards possessed by the players from the total number of white cards possessed by the same set of players after the -th turn. By -th turn we mean the initial distribution of red and white cards. Let us first prove the following lemma.

Lemma 1. If we choose the player suitably, then we can make for every positive integer . Proof. Choose a player arbitrarily and call him . Define and starting with in the same way as we defined and from . As the total number of red cards possessed by the players equals the total number of white cards possessed by the same set of players, we have , and therefore, we can choose a number () such that . Now, let be , then since , equals the number obtained by subtracting the total number of red cards possessed initially by the players from the total number of white cards possessed initially by the same set of players. Consequently, we have .

From now on we consider the player satisfying the condition of Lemma 1. We can now prove the following lemma.

Lemma 2. holds for every choice of the nonnegative integer and the positive integer . Proof. We prove the assertion by using the mathematical induction on . The assertion is valid for by our choice of . Suppose the assertion holds for the case . We will show that the existence of for which will lead to a contradiction. As , we may suppose that . We see from the definition of and the fact that the total number of cards possessed by is even that is also even. The value of is determined completely by the kind of cards receives and passes on at the -th turn, and this value is , or . Since and , we see that only possible combination is and and this can happen only if receives a red card and passes on a white card at the -th turn. But if passes on a white card at the -th turn, this means that must have white cards at the end of the -th turn, which implies that , which contradicts the induction hypothesis. Thus, we must have for all positive integers . This completes the mathematical induction and the proof of Lemma 2.

By letting in Lemma 2, we get for every . Combined with the fact for every , we can conclude that always possesses at least one red card, and consequently, receives a red card at every turn. Starting with this fact, we can prove by using mathematical induction on that for every positive integer , every one of the players possesses at least red card at the end of -th turn. Combined with the fact that always possesses at least red card, this tells us that every one of the players possesses at least red card at the end of -th turn. Since the total number of red cards is , this means that every player has exactly red card at the end of -th turn, which implies that the situation where every player possesses exactly white and red cards must be reached in at most turns.

On the other hand, if initially a certain player has white cards, the player sitting on his right has red cards and every other player has exactly white and red cards, the situation where every player has exactly white and red cards can be reached for the first time at the end of the -th turn.

Thus, the maximum number of turns necessary to achieve the desired situation is .
Final answer
2007

Techniques

Invariants / monovariantsInduction / smoothingColoring schemes, extremal argumentsGames / greedy algorithms