Skip to main content
OlympiadHQ

Browse · MathNet

Print

International Mathematical Olympiad Shortlisted Problems

counting and probability

Problem

Let be a positive integer. Find the smallest integer with the following property: Given any real numbers such that and for , it is possible to partition these numbers into groups (some of which may be empty) such that the sum of the numbers in each group is at most .

problem
Solution
Answer. .

Solution 1. If and , then each group in such a partition can contain at most one number, since . Therefore . It remains to show that a suitable partition into groups always exists. We proceed by induction on . For the result is trivial. If , then since we may find two numbers , such that . We "merge" these two numbers into one new number . By the induction hypothesis, a suitable partition exists for the numbers . This induces a suitable partition for .

Solution 2. We will show that it is even possible to split the sequence into contiguous groups so that the sum of the numbers in each group does not exceed . Consider a segment of length , and partition it into segments of lengths , respectively, as shown below. Consider a second partition of into equal parts by "empty dots". Assume that the empty dots are in segments . (If a dot is on the boundary of two segments, we choose the right segment). These segments are distinct because they have length at most . Consider the partition: In the example above, this partition is . We claim that in this partition, the sum of the numbers in each group is at most . For the sets this is obvious since . For the sets this follows from the fact that the corresponding segments lie between two neighboring empty dots, or between an endpoint of and its nearest empty dot. Therefore the sum of their lengths cannot exceed .

Solution 3. First put all numbers greater than in their own groups. Then, form the remaining groups as follows: For each group, add new 's one at a time until their sum exceeds . Since the last summand is at most , this group has sum at most . Continue this procedure until we have used all the 's. Notice that the last group may have sum less than . If the sum of the numbers in the last two groups is less than or equal to , we merge them into one group. In the end we are left with groups. If we are done. Otherwise the first have sums greater than and the last two have total sum greater than . Therefore so as desired.
Final answer
2n-1

Techniques

Induction / smoothingGames / greedy algorithmsCombinatorial optimization