In a room, there are 2005 fruit crates, each containing one or more types of fruit, with each type of fruit being present in whole numbers.
a) Show that it is always possible to select 669 fruit crates that together contain at least one third of all the apples and at least one third of all the pears.
b) Can the crates in part a) always be chosen such that they also contain at least one third of all the peaches?
Solution
a) Let be a box containing a maximum number of apples, say pieces. It is set aside. We now consider all possibilities of dividing the remaining boxes into three piles, , and , each with 668 boxes. Let the total number of apples in these boxes be . By starting with any such division and renaming the formed piles if necessary, we see that there are divisions with . Among all these, we fix for the rest of the proof a division for which is minimal. If , we could swap a box from with the maximum number of apples with a box from with the minimum number of apples and, due to the maximality of , after possibly renaming the piles, we would obtain a contradiction to the minimality of . Therefore, , so , from which it immediately follows that
If we ultimately decide to take the 669 boxes , i.e., the boxes of pile together with the box , we would have at least met the condition on the number of apples to be taken. This is of course also true for and . Now, by the pigeonhole principle, let be one of these three piles that contains at least one-third of the pears occurring in them. Thus, the selection certainly meets the requirement for the number of pears to be chosen and is therefore as desired.
b) Here it suffices to provide a counterexample. Let one of the boxes contain nothing but an apple, another only a pear, and in the remaining 2003 boxes, let there be a peach each. If we wanted to meet the given conditions, we would have to select the box with the apple, the box with the pear, and 668 boxes with a peach, thus requiring a total of 670 boxes.
Remark. In part (a), it is instructive to consider the case where there are 1002 boxes each containing apples but no pears, 1002 boxes each containing pears but no apples, and one box, , containing apples and pears, where stands for a possibly large natural number (e.g., 100000). One can easily convince oneself that box must be taken. This is still the case even if the described configuration is slightly modified, i.e., by changing the number of fruits (e.g., 1, 2, 3) in comparison to . Most proposed algorithmic approaches of the form "Take boxes with the maximum number of fruits/apples/pears until ... and then always take boxes with the maximum number of ..." do not always lead to taking box in the described situations. Therefore, they do not solve the problem without further ado.