# 2001 IMO Shortlist Problems/C7

## Problem

A pile of pebbles is placed in a vertical column. This configuration is modified according to the following rules. A pebble can be moved if it is at the top of a column which contains at least two more pebbles than the column immediately to its right. (If there are no pebbles to the right, think of this as a column with 0 pebbles.) At each stage, choose a pebble from among those that can be moved (if there are any) and place it at the top of the column to its right. If no pebbles can be moved, the configuration is called a *final configuration*. For each , show that, no matter what choices are made at each stage, the final configuration obtained is unique. Describe that configuration in terms of .

## Solution

Note that if a column moves a pebble to the right, either the first column is still bigger or they have the same size. This means that at every point in the process, the amount of pebbles in every column decreases from left to right.

At no point during this process can there be three or more columns with the same number of pebbles. We will show this by contradiction. These columns would have to be consecutive since the amount of pebbles in each column is decreasing. Letting there be pebbles in these columns, the configuration is Immediately before the first time at least three of these columns are present, The configuration must be either or , none of which are legal.

Additionally, at no point during this process can there be two columns with pebbles and two with pebbles for any natural number . We will show this by contradiction. If so, then the configuration is . Immediately before, we have or , none of which are legal.

Finally, we show that we can never have two columns with pebbles, two with columns, and one of every size between. We can do this by inducting on the number of pebbles on .

Base case: . This is covered above.

Inductive step: implies . Immediately before arriving at we must be at the position or which is impossible by our inductive hypothesis.

Thus, the final configuration must be a sequence of decreasing numbers with at most one appearing twice. There is exactly one way to represent any number in this form (start with the largest triangular number below it, add a column with the size of their difference), so there is exactly one possible final configuration.