Olympiad Maths Prep

Track / Stage 5 / 358 of 400 #958 of 2000

Problem 958

AIME late
Combinatorics Difficulty 5.9 Prove it

The numbers 1 to 101 are written in a random order on the board. Show that it is possible to erase 90 of them so that the 10 remaining are either in ascending or descending order.

## Solutions

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Let a1,,a101a_{1}, \ldots, a_{101} be the numbers in the order in which they are written. For any ii, let xix_{i} (respectively yiy_{i}) be the length of the longest increasing (respectively decreasing) subsequence of the sequence a1,,a101a_{1}, \ldots, a_{101} starting at aia_{i}. Our goal is to show that there exists ii such that either xix_{i} or yiy_{i} is greater than or equal to 11. Otherwise, there are at most 102xl10^{2}x_{l}. Similarly, if ak>ala_{k}>a_{l}, then yk>yly_{k}>y_{l}. We thus obtain a contradiction.

Remark: By the same reasoning, we can show more generally that in any sequence of mn+1m n+1 distinct numbers, we can find an increasing subsequence of length m+1m+1 or a decreasing subsequence of length n+1n+1. This result is known as the Erdös and Szekeres theorem.

## 3 Thursday afternoon: Pierre Bornsztein

Games and Strategies.

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