There are two boxes: one contains 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: .
Let us show that the total number of moves cannot be . If the total number of moves is then all non-empty subsets of a element set should be selected. The total number of subsets containing a given element is , 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 is odd, a box which was empty at the beginning should contain at least one ball, a contradiction.
Suppose that at the beginning box contains balls and box is empty. We show that the total number of moves can be equal to .
Solution 1:
Let us prove the following lemma.
Lemma: Let . It is possible to make all moves containing a fixed ball and after these moves return to the initial position with empty .
Proof: We will use induction over . If it can be done by applying moves , , , .
Now suppose that for the inductive hypothesis is correct. Let us fix balls and . By inductive hypothesis, by applying all moves containing and not containing it is possible to return to the initial position. After that, again by inductive hypothesis, by applying all moves containing both and it is possible to return to the initial position. Thus, by applying all moves containing we return to the initial position. The lemma is proved.
By the lemma, we can make all moves containing ball and return to the initial position, after that make all moves not containing but containing and return to the initial position, after that make all moves not containing but containing and return to the initial position, ..., and make all moves not containing but containing and return to the initial position. Finally, by making two moves with ball groups and we will make all possible moves except a move . Done.
Solution 2:
By induction over , let us show that for each , it is possible to make moves such that the only not made move is and after making all moves, all balls except are in box and is in box .
If it can be done by applying moves .
Now suppose that for the inductive hypothesis is correct and . Let us separate ball and to the remaining balls apply moves existing by inductive hypothesis. After that make a move transferring ball to box . By inductive hypothesis the box will contain two balls: and . Let us make a move . Finally, we can repeat all moves made at the beginning by adding ball to all of them. In total we will make legal moves. Done.