Maths Olympiad Prep

Library / /476 of 520

Combinatorics Difficulty 7.3 National olympiad, round 2 Prove it

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 NN be a box containing a maximum number of apples, say nn pieces. It is set aside. We now consider all possibilities of dividing the remaining 2004=36682004 = 3 \cdot 668 boxes into three piles, A,BA, B, and CC, each with 668 boxes. Let the total number of apples in these boxes be a,b,ca, b, c. By starting with any such division and renaming the formed piles if necessary, we see that there are divisions with abca \leqq b \leqq c. Among all these, we fix for the rest of the proof a division for which cac-a is minimal. If ca>nc-a > n, we could swap a box from AA with the maximum number of apples with a box from CC with the minimum number of apples and, due to the maximality of nn, after possibly renaming the piles, we would obtain a contradiction to the minimality of cac-a. Therefore, canc-a \leqq n, so a+ncba+n \geqq c \geqq b, from which it immediately follows that

a+n=(a+n)+(a+n)+a+n3c+b+a+n3 a+n = \frac{(a+n) + (a+n) + a+n}{3} \geqq \frac{c+b+a+n}{3}

If we ultimately decide to take the 669 boxes A{N}A \cup \{N\}, i.e., the boxes of pile AA together with the box NN, we would have at least met the condition on the number of apples to be taken. This is of course also true for B{N}B \cup \{N\} and C{N}C \cup \{N\}. Now, by the pigeonhole principle, let TT be one of these three piles that contains at least one-third of the pears occurring in them. Thus, the selection T{N}T \cup \{N\} 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 2m2m apples but no pears, 1002 boxes each containing 2m2m pears but no apples, and one box, (H)(H), containing mm apples and mm pears, where mm stands for a possibly large natural number (e.g., 100000). One can easily convince oneself that box HH 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 mm. 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 HH in the described situations. Therefore, they do not solve the problem without further ado.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.