Skip to main content
OlympiadHQ

Browse · MathNet

Print

BxMO Team Selection Test

Netherlands counting and probability

Problem

Jesse and Tjeerd are playing a game. Jesse has stones. There are two boxes: in the black box there is space for half of the stones (rounded down) and in the white box there is space for half of the stones (rounded up). Jesse and Tjeerd alternate turns, with Jesse as first player. In his turn, Jesse takes one new stone, writes a positive real number on the stone and puts it in one of the boxes which is not full yet. Tjeerd can see all the numbers on the stones in each of the boxes and is allowed to move one stone of his choice to the other box, if that other box is not full yet, but he is also allowed to choose to do nothing. The game stops when both boxes are full. If the total value of the stones in the black box is greater than the total value of the stones in the white box, Jesse wins; otherwise Tjeerd wins. Determine for each who can always win this game (and give a winning strategy).
Solution
We will show that the capacity of the two boxes does not matter, as long as the total capacity is (and at least 1 for each box). Jesse can always win this game, and can do that by first playing the power of two, and then in each following turn the next power of two that is smaller or greater. That means: if he played the numbers at a certain moment, he will play either or in his next turn. By playing cleverly, Jesse can make sure that the greatest power of two among the stones played so far is always contained in the black box. We will prove this by induction. In his first move, he puts the stone with value in the black box and the claim is true; this is the base case of the induction. When it is his turn again, and Tjeerd moved the greatest power of two so far, which according to the induction hypothesis was contained in the black box, to the white box, then the black box actually has a free space, and Jesse can put a new greater power of two in there, and the claim is true. If Tjeerd moved some other stone or did nothing, then the greatest power of two so far is still in the black box, and Jesse can play a smaller power of two; it does not matter where he puts it. Also in this case, the claim is true. This proves the induction step, and the claim is proved.

Therefore, after playing the last stone, the greatest power of two is in the black box. It is greater than the sum of all smaller powers of two played (), hence it is certainly greater than the sum of the powers of two in the white box. Therefore, the total value inside the black box is greater than the total value in the white box.
Final answer
Jesse always wins for every n ≥ 2.

Techniques

Games / greedy algorithmsInvariants / monovariantsSums and products