DR.WANG Mathematics中文

2010 USAMO · Question 2

Counting & combinatorics · Binomial coefficients · circle

Problem outline

Rank nn students from 11 (shortest) to nn (tallest). They stand in a circle, all facing forwards along the circle. A student may change places with the person directly ahead only if the student is at least two ranks taller. Show that every sequence of such exchanges terminates after at most (n3)\binom n3 moves.

Show answer and methods 1 methods

Answer

Ranks i<ji<j exchange at most j−i−1j-i-1 times. Summing gives the stated bound.

Method 1 Count overtakes between two consecutive ranks

Consider any finite prefix of a legal move sequence. Write T(i,j)T(i,j) for the number of times jj passes ii, with j>ij>i. Consecutive ranks never exchange, so T(i,i+1)=0T(i,i+1)=0.

For j≥i+2j\ge i+2, follow only i,i+1,ji,i+1,j in their circular order, looking in the direction of travel. Immediately before jj passes ii their order starting at jj is j,i,i+1j,i,i+1; immediately afterwards it is j,i+1,ij,i+1,i. To pass ii again, jj must return to the first order. No exchange with an outsider affects this order, and i,i+1i,i+1 cannot pass one another. Consequently some exchange of jj with i+1i+1 must occur between successive passes of ii by jj.

It follows that T(i,j)≤1+T(i+1,j)T(i,j)\le1+T(i+1,j). Inducting on j−ij-i yields T(i,j)≤j−i−1T(i,j)\le j-i-1. On summing over all i<ji<j, the quantity j−i−1j-i-1 counts the possible third ranks kk with i<k<ji<k<j. Each triple occurs once, so the bound is (n3)\binom n3. It applies to every finite prefix, ruling out an infinite sequence.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)