Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO2024 Shortlisted Problems

2024 counting and probability

Problem

Let be a positive integer. A class of students run races, in each of which they are ranked with no draws. A student is eligible for a rating for positive integers and if they come in the top places in at least of the races. Their final score is the maximum possible value of across all ratings for which they are eligible. Find the maximum possible sum of all the scores of the students.
Solution
The answer can be achieved by the students finishing in the same order in every race. To show that this is the maximum, we will apply a series of modifications to the results of the races, each of which does not decrease the total score, such that after such modifications the first positions are the same in every race. Say that a student is scored on the place if their score is because they came in the top places in of the races and is minimal with this property for that student.

Supposing that the first positions are the same in every race, look at the students scored on the place. If there are no such students, let be minimal such that some student is scored on the place. Then, in every race where appears in any place from the through the inclusive (of which there must be at least , otherwise would achieve a higher rating of 0 based on the place), reorder the students in places through so that finishes in the place instead (and otherwise the ordering of those students is arbitrary). Now is scored on the place, their score has gone up by and no other scores have gone down (some might have gone up as well).

Now we know that the first positions are the same in every race and at least one student is scored on the place. Pick one such student . In each race where finishes behind the place, swap them with the student who finishes in the place, leaving the positions of all other students unchanged. Each such swap increases the score of by 1 and decreases the score of by at most 1, so such swaps do not decrease the total score. At the end of this process, the first positions are the same in every race and the total score has not decreased.

Repeating this times yields the required result.

Note that taking shows each student has a nonnegative score. Consider a student who has race ranks and a final score of . We first prove that Without loss of generality, suppose that . There must exist some with and . In order to maximise while retaining the score of , we can replace each of by , and replace each of by . Then the sum is The final inequality follows from the fact that given , the quantity is minimised when .

The sum of ranks of all students across all races is . If the total of all student scores is , then (1) implies This rearranges to , as required.

---

Alternative solution.

The answer can be achieved by having the same ranking for all races.

Note that taking shows each student has a nonnegative score. Consider a student who has race ranks and a final score of . We first prove that Without loss of generality, suppose that . There must exist some with and . In order to maximise while retaining the score of , we can replace each of by , and replace each of by . Then the sum is The final inequality follows from the fact that given , the quantity is minimised when .

The sum of ranks of all students across all races is . If the total of all student scores is , then (1) implies This rearranges to , as required.

---

Alternative solution.

In each race, assign the student in the place a weight of . If a student finishes in the top places in at least of the races, the total of their weights is at least . Thus the sum of a student's weights across all races is at least their score, and so the sum of all weights for all students across all races is at least the sum of all the scores of all students. The sum of weights in each race is , so the sum of all weights across all races is . Equality is achieved if and only if, for each student, the values of and determining that student's score have and they finish in exactly the place in all races; that is, if the students are ranked the same in every race.

---

Alternative solution.

Given a positive integer for each student , define to be the number of races in which finished in the top places, and define ; for a race , let be 1 if finished in the top places in race and 0 otherwise, so Then the problem asks for the maximum across all possible results of the races of Given , the sum is maximised (not necessarily uniquely) for some choice of the rankings in race , which is the same choice for every race. So the maximum possible sum of the scores of all the students occurs when all students are ranked the same in all races, which yields the given answer.
Final answer
n(n-1)/2

Techniques

Induction / smoothingCounting two waysInvariants / monovariants