Skip to main content
OlympiadHQ

Browse · MathNet

Print

USA IMO 2003

United States 2003 counting and probability

Problem

Let . For every sequence of integers satisfying , for , define another sequence by setting to be the number of terms in the sequence that precede the term and are different from . Show that, starting from any sequence as above, fewer than applications of the transformation lead to a sequence such that .
Solution
First Solution. Note first that the transformed sequence also satisfies the inequalities , for . Call any integer sequence that satisfies these inequalities an index bounded sequence. We prove now that , for . Indeed, this is clear if . Otherwise, let and . None of the first consecutive terms is greater than , so they are all different from and precede (see the diagram below). Thus , that is, , for .



This already shows that the sequences stabilize after finitely many applications of the transformation , because the value of the index term in index bounded sequences cannot exceed . Next we prove that if , for some , then no further applications of will ever change the index term. We consider two cases.

In this case, we assume that . This means that no term on the left of is different from 0, that is, they are all 0. Therefore the first terms in will also be 0 and this repeats (see the diagram below).



In this case, we assume that . The first terms are all different from . Because , the terms must then all be equal to . Consequently, for and further applications of cannot change the index term (see the diagram below).
01......
......
......
For , the index entry satisfies the following properties: (i) it takes integer values; (ii) it is bounded above by ; (iii) its value does not decrease under transformation ; and (iv) once it stabilizes under transformation , it never changes again. This shows that no more than applications of lead to a sequence that is stable under the transformation .

Finally, we need to show that no more than applications of is needed to obtain a fixed sequence from an initial -term index bounded sequence . We induct on .

For , the two possible index bounded sequences and are already fixed by so we need zero applications of .

Assume that any index bounded sequence reach a fixed sequence after no more than applications of . Consider an index bounded sequence . It suffices to show that will be stabilized in no more than applications of . We approach indirectly by assuming on the contrary that applications of transformations are needed. This can happen only if and each application of increased the index term by exactly 1. Under transformation , the resulting value of index term will not be effected by index term for . Hence by the induction hypothesis, the subsequence will be stabilized in no more than applications of . Because index term is stabilized at value after no more than applications of and index term obtains value after exactly applications of under our current assumptions. We conclude that the index term would become equal to the index term after no more than applications of . However, once two consecutive terms in a sequence are equal they stay equal and stabilize together. Because the index term needs no more than transformations to be stabilized, can be stabilized in no more than applications of , which contradicts our assumption of applications needed. Thus our assumption was wrong and we need at most applications of transformation to stabilize an -term index bounded sequence. This completes our inductive proof.

---

Alternative solution.

Second Solution. We prove that for , the claim holds without the initial condition . (Of course this does not prove anything stronger, but it's convenient.) We do this by induction on , the case being easy to check by hand as in the first solution.

Note that if is a sequence in the image of , and is the sequence , then the following two statements are true:

(a) If is the sequence obtained from by subtracting 1 from each nonzero term, then . (If there are no zero terms in , then subtracting 1 clearly has no effect. If there is a zero term in , it must occur at the beginning, and then every nonzero term is at least 2.)

(b) One can compute by applying to the sequence , adding 1 to each nonzero term, and putting a zero in front.

The recipe of (b) works for computing for any , by (a) and induction on .

We now apply the induction hypothesis to to see that it stabilizes after more applications of ; by the recipe above, that means stabilizes after applications of .

Techniques

Invariants / monovariantsInduction / smoothingSequences and Series