In transparent boxes there are red balls and blue balls. One needs to choose 50 boxes such that, together, they contain at least half of the red balls and at least half of the blue balls. Is such a choice possible irrespective on the number of balls and on the way they are distributed in the boxes, if:
a) ;
b) ?
Solutions — 2
Solution 1
a) The answer is in the negative. If we have 100 boxes, and 25 of the boxes only contain one red ball each, while the other 75 boxes contain just one blue ball each, then one needs to choose at least 13 of the boxes containing red balls and at least 38 of the boxes containing blue balls, which means one would need to choose at least 51 boxes. Thus, such a choice is not always possible.
b) We prove by induction that from boxes one can always choose that contain at least half of the balls of both colors.
For : if choosing two boxes would not be possible, then the remaining box must contain the majority of the red balls, or the majority of the blue balls. But there is only one such choice for each color, and there are 3 ways of choosing the boxes, so at least one of the choices must work.
The inductive step. We say two boxes are comparable if one of them has at least as many red balls as the other one and at least as many blue balls as the other one. If two comparable boxes exist, we eliminate them and apply the inductive hypothesis to the remaining boxes. Then, to the boxes thus chosen, we add that box of the two comparable ones that contains more red and more blue balls. If no two boxes are comparable, we denote by and the number of red balls and blue balls in box no. , respectively. Changing the order of the boxes, one may assume that and . In this case, simply choose the boxes whose ranks are odd (boxes 1, 3, 5, 99).
Solution 2
An easier solution to point b) (given in the contest by Dinu Iosifescu). Denoting by the number of red balls in the box , we may assume, without loss of generality, that . Then we can choose box no. 1, then, from box no. 2 and box no. 3 we choose the one containing more blue balls, from box no. 4 and box no. 5 we choose the one containing more blue balls, and so on from box no. 98 and box no. 99 we choose the one containing more blue balls. It is clear that this choice satisfies the conditions in the statement.