Browse · MathNet
PrintJapan Mathematical Olympiad
Japan counting and probability
Problem
2008 boys and 2008 girls decided to get together and play the game of exchanging presents. Each participating boy was asked to bring a bouquet of flowers and each participating girl was asked to bring a bar of chocolate to the get-together. When all the participants showed up, they were lined up in some way and were seated in a circular arrangement with every one facing toward the interior of the circle. Then they were ordered to pass on simultaneously the presents they brought to the person sitting on their right in the circular arrangement. After the actions were repeated a certain number of times the situation was reached where every participating boy had in his possession a chocolate bar and every participating girl possessed a bouquet of flowers. How many possible arrangements of the chairs occupied by the boys are there?
Solution
Let us call the situation the [initial state] if every participating boy has a bouquet of flowers and every participating girl has a chocolate bar, and call the situation the [good state] if every participating boy has a chocolate bar and every participating girl has a bouquet of flowers.
Suppose the good state was attained for the first time after actions, then after actions, the situation returns for the first time to the initial state. This is because the good state represents the situation in which the possessions of boys and girls are completely reversed from those in the initial state, and therefore, if we repeat once more the process of reversing the possessions of boys and girls completely, it is clear that the situation returns to the initial state. Furthermore, if for some the situation returned to the initial state after actions, then this would mean that after actions the initial state and the good state were interchanged, and since , this is a contradiction. So, is exactly the number of actions necessary to return to the initial state for the first time. Let us prove the following Lemma
Lemma. Suppose after actions the situation returns for the first time to the initial state. If the situation returns to the initial state after actions, then must be a multiple of .
Proof of Lemma can be represented as with a nonnegative integer and a number satisfying . From the definition of it follows that the situation returns to the initial state after actions. Consequently, after actions the situation is the same as the situation reached after actions from the initial state. If , then this would mean that the situation returns to the initial state in less than actions, and this contradicts the fact that was assumed to be the number of actions necessary to return for the first time to the initial state. Therefore, we must have , and this proves the Lemma.
From what we obtained above, we see that the situation returns to the initial state after the repetition of even multiples of actions, and goes into the good state after an odd multiples of actions. Furthermore, in view of the Lemma, we see that at no other time the initial state or the good state would be attained.
Since there are altogether people participating, it is clear that after actions, the situation returns to the initial state. Therefore, must be a factor of , and this implies that must be one of the numbers
. We note that the good state can be reached also by going through actions if , by actions if , by actions if and by actions if respectively. By the Lemma, we see that there are no common seating arrangement among the seating arrangements corresponding to as the number of actions necessary to get to the good state for the first time. Therefore, to obtain the possible number of seating arrangements to satisfy the requirement of the problem, it is enough to determine how many possible seating arrangements there are which produce the good state after and actions.
So, let , and consider seating arrangements that will produce the good state after actions. Since the number is an even integer, we see that if we decide the seating arrangement for some block consisting of consecutive chairs by deciding whether a boy or a girl sits in each of these chairs, then precisely seating arrangement for all the participants satisfying the requirement of the problem can be produced by putting alternately this arrangement of seating and the arrangement obtained by changing a boy by a girl and a girl by a boy in each chair to each of distinct blocks of consecutive chairs. Therefore, there are seating arrangement satisfying the requirement for each .
Consequently, the number of possible arrangements satisfying the requirement of the problem is
Final answer
2^{251} + 2^{502} + 2^{1004} + 2^{2008}
Techniques
Enumeration with symmetryInvariants / monovariants