Maths Olympiad Prep

Library / /48 of 48

Combinatorics Difficulty 7.9 National Olympiad, round 2 Prove it Turkey

There are two boxes: one contains 2929 distinguishable balls and the other one is empty. In a move applied to a picked box we choose some collection of balls from this box and transfer them to the other box. Starting with the non-empty box we repeatedly apply these moves, picking boxes alternatively. What is the maximal possible number of moves if each ball collection can be selected at most once?

Solution

Answer: 22922^{29}-2.

Let us show that the total number of moves cannot be 22912^{29}-1. If the total number of moves is 22912^{29}-1 then all non-empty subsets of a 2929 element set should be selected. The total number of subsets containing a given element is 2282^{28}, which is an even number. Therefore, at the end of all moves all balls should be in the box which was full at the beginning. On the other hand, since 22912^{29}-1 is odd, a box which was empty at the beginning should contain at least one ball, a contradiction.

Suppose that at the beginning box AA contains nn balls {a1,a2,,an}\{a_1, a_2, \dots, a_n\} and box BB is empty. We show that the total number of moves can be equal to 22922^{29}-2.

Solution 1:

Let us prove the following lemma.

Lemma: Let n>2n > 2. It is possible to make all moves containing a fixed ball aa and after these 2n12^{n-1} moves return to the initial position with empty BB.

Proof: We will use induction over nn. If n=3n=3 it can be done by applying moves {a1,a2}\{a_1, a_2\}, {a1}\{a_1\}, {a1,a3}\{a_1, a_3\}, {a1,a2,a3}\{a_1, a_2, a_3\}.

Now suppose that for n=kn=k the inductive hypothesis is correct. Let us fix balls aa and bb. By inductive hypothesis, by applying all 2n22^{n-2} moves containing aa and not containing bb it is possible to return to the initial position. After that, again by inductive hypothesis, by applying all 2n22^{n-2} moves containing both aa and bb it is possible to return to the initial position. Thus, by applying all 2n12^{n-1} moves containing aa we return to the initial position. The lemma is proved.

By the lemma, we can make all moves containing ball a1a_1 and return to the initial position, after that make all moves not containing a1a_1 but containing a2a_2 and return to the initial position, after that make all moves not containing a1,a2a_1, a_2 but containing a3a_3 and return to the initial position, ..., and make all moves not containing a1,a2,...,a26a_1, a_2, ..., a_{26} but containing a27a_{27} and return to the initial position. Finally, by making two moves with ball groups {a28,a29}\{a_{28}, a_{29}\} and {a28}\{a_{28}\} we will make all possible moves except a move {a29}\{a_{29}\}. Done.

Solution 2:

By induction over nn, let us show that for each n2n \ge 2, it is possible to make 2n22^n - 2 moves such that the only not made move is {a1}\{a_1\} and after making all 2n22^n - 2 moves, all balls except a1a_1 are in box AA and a1a_1 is in box BB.

If n=2n=2 it can be done by applying moves {a1,a2},{a2}\{a_1, a_2\}, \{a_2\}.

Now suppose that for n=kn=k the inductive hypothesis is correct and n=k+1n=k+1. Let us separate ball ak+1a_{k+1} and to the remaining n=kn=k balls apply 2k22^k-2 moves existing by inductive hypothesis. After that make a move {ak+1}\{a_{k+1}\} transferring ball ak+1a_{k+1} to box BB. By inductive hypothesis the box will contain two balls: a1a_1 and ak+1a_{k+1}. Let us make a move {a1,ak+1}\{a_1, a_{k+1}\}. Finally, we can repeat all 2k22^k-2 moves made at the beginning by adding ball ak+1a_{k+1} to all of them. In total we will make 2k2+2+2k2=2k+122^k-2+2+2^k-2=2^{k+1}-2 legal moves. Done.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.