bill's blog

Writeup: IMO Shortlist 2001 C1

Problem Statement:

Let A=(a1,a2,,a2001) be a sequence of positive integers. Let m be the number of 3-element subsequences (ai,aj,ak) with 1i<j<k2001, such that aj=ai+1 and ak=aj+1. Considering all such sequences A, find the greatest value of m.

My Solution:

Note that sorting A can't destroy any already valid 3-element subsequences and can only create new ones. So there will be a sorted sequence A achieving a value of m.

Then A can be divided into blocks of identical elements. Let the first (and smallest) block have length b0, then number them ascending b1,b2,...,bn. It's apparent that the number of blocks is bounded above by

b0b1b2+b1b2b3++bn2bn1bn.

Note that replacing adding converting all the elements in block b0 to add on to the block b3 can only increase this upper bound.

If we keep repeating this process, eventually we are left with 3 blocks bounded above by b0b1b2 with the constraint b0+b1+b2=2001. By AMGM the maximum number m must therefore be 6673 where we have 667 ones, 667 two's, and 667 three's as a valid construction.