Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team Selection Test for EGMO 2019

Turkey 2019 counting and probability

Problem

There are heaps of beads on the table containing 2019 beads in total. In each move we choose a heap: either remove it from the table or divide it into two not necessarily equal parts. Find the maximal possible value of such that for any initial distribution of beads after finite number of moves one can get heaps with pairwise distinct number of beads.
Solution
Answer: 45.

The maximal value of can not be greater than 45. Indeed, if , then since it is possible that at the beginning there are heaps each containing at most 45 beads. Obviously in this case one can not get heaps with pairwise distinct number of beads, since the heap with most beads should contain at least 46 beads.

Lemma. If heaps contain at least beads in total, then we can get heaps containing beads.

Proof by induction on . is obvious. Suppose that the lemma is true for . Consider heaps with beads in total. Then the heap with maximal number of beads contains at least beads. If the heap with maximal number of beads contains exactly beads, the remaining heaps contain and by inductive hypothesis we can get heaps containing beads. Since we also have a heap having beads we are done. If the heap with maximal number of beads contains more than beads, let us divide it into two heaps so that one of these two new heaps, say , contains beads. There are heaps except containing beads in total. The smallest heap among these heaps contains at most beads. If we remove it then the remaining heaps contain at least beads in total. By inductive hypothesis we can get heaps containing beads. Since we also have a heap we are done.

Since by lemma one can get heaps containing beads. Done.
Final answer
45

Techniques

Induction / smoothingColoring schemes, extremal arguments