Skip to main content
OlympiadHQ

Browse · MathNet

Print

17th Junior Turkish Mathematical Olympiad

Turkey counting and probability

Problem

Find the smallest value of for which bags each containing finite number of colored balls, no matter how the contents of bags are arranged, can be distributed into boxes so that for each box at least one of the following two conditions is held: i. all bags of a box contain a ball of the same color ii. each bag of a box contains a ball colored differently from all balls of all other bags of this box.
Solution
The answer is . Let us show that . Suppose that there are bags each containing one ball colored , bags each containing ball colored , ..., bag containing ball colored . Let us show that these bags can not be distributed into boxes. A bag containing a ball colored we call bag colored . Note that if some box contains two bags colored then all remaining bags are also colored . A box containing only bags colored will be called a unicolored box. Consider any distribution of these bags. Suppose there are exactly unicolored boxes. Then there is a color so that there are at least bags of color . These bags are in distinct boxes and the total number of boxes is at least . Done.

Now we prove that boxes are sufficient for any arrangement of bag contents. Lemma: Suppose that there are at most bags containing a ball of the same color. Then these bags can be distributed into boxes. Proof: Let us choose a color, say . We can distribute all bags containing balls colored into distinct boxes, since the number of such bags is at most . Among remaining bags choose a color, say . Similarly we can distribute all bags containing balls colored into distinct boxes. Similarly, by choosing a new color each time we can distribute all bags into boxes according to rule ii. The lemma is proved.

At the first step consider a ball colored belonging to maximal number of bags. If this number is at most , by lemma we can distribute all bags into boxes. If not, put all these bags (at least bags) into one box and at the second step consider a ball colored belonging to maximal number of bags among all remaining bags. If this number is at most , by lemma we can distribute all bags into boxes. If not, put all these bags (at least ) having common ball numbered into one box and proceed by the same way in the third step. Since , at some step, say step number among all remaining bags at most bags will contain a ball of the same color . Now by lemma we can distribute remaining bags into at most boxes and since in the first steps we have used boxes, boxes are sufficient. Done.
Final answer
62

Techniques

Coloring schemes, extremal argumentsGames / greedy algorithms