Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO Team Selection Test 1

Netherlands counting and probability

Problem

In a sequence consisting of distinct numbers, a pair with is called ascending if and descending if . Determine the largest positive integer with the property that every sequence of distinct numbers has at least non-overlapping ascending pairs or at least non-overlapping descending pairs.
Solution
We will prove that the greatest is . First consider the sequence . The first numbers in the sequence are not usable in an ascending pair, because for each of these numbers the numbers left of it are all greater and the numbers right of it are all smaller. Therefore, for the ascending pairs only the last numbers are available and that gives at most non-overlapping ascending pairs. For a descending pair with we get that cannot be one of the numbers through , because for each of these numbers there are only greater numbers right of it. Hence, must be one of the first numbers, from which we deduce that there can be at most non-overlapping descending pairs. We conclude that no will satisfy the conditions.

Now we will prove that for all , there are at least non-overlapping ascending or non-overlapping descending pairs in any sequence of distinct numbers. We will prove this by induction on . For , the sequence has length and this pair of numbers is either descending or ascending, which means the statement is correct. Now let and suppose the statement is true for . We consider the case and take any sequence of distinct numbers. If the sequence is completely ascending, we can make neighbouring pairs which are all ascending. These are pairs. Analogously, if the sequence is fully descending, there are at least descending pairs. If the sequence is not fully ascending and also not fully descending, there is a spot in the sequence where the sequence is first ascending and then descending or the other way around. In other words: there are numbers in the sequence with or . In both cases, these three numbers contain both an ascending and descending pair. Now apply the induction hypothesis to the sequence . This is a sequence with distinct numbers, so there are at least non-overlapping ascending pairs or non-overlapping descending pairs. In the former case, we can add the ascending pair from to it, and in the latter case, we can add the descending pair to it. In this way, we obtain non-overlapping ascending pairs or non-overlapping descending pairs. This completes the induction.

Now substitute in this result: in a sequence consisting of distinct numbers, there are always at least non-overlapping ascending pairs or at least non-overlapping descending pairs. This is also true for a sequence consisting of numbers (just ignore the last two numbers).

Hence, satisfies the conditions and is the greatest such .
Final answer
333

Techniques

Induction / smoothingColoring schemes, extremal arguments