Writeup: IMO Shortlist 2001 C1
Problem Statement:
Let be a sequence of positive integers. Let be the number of 3-element subsequences with , such that and . Considering all such sequences , find the greatest value of .
My Solution:
Note that sorting can't destroy any already valid 3-element subsequences and can only create new ones. So there will be a sorted sequence achieving a value of .
Then can be divided into blocks of identical elements. Let the first (and smallest) block have length , then number them ascending . It's apparent that the number of blocks is bounded above by
Note that replacing adding converting all the elements in block to add on to the block can only increase this upper bound.
If we keep repeating this process, eventually we are left with 3 blocks bounded above by with the constraint . By the maximum number must therefore be where we have ones, two's, and three's as a valid construction.