Maths Olympiad Prep

Library / /476 of 520

Combinatorics Difficulty 6.2 National olympiad Prove it

5. (2003 US Olympiad Question) Let n0n \neq 0, for any integer sequence A={ai},0aii,i=0,1,2,,nA=\left\{a_{i}\right\}, 0 \leqslant a_{i} \leqslant i, i=0,1,2, \cdots, n, define another sequence t(A)={t(ai)}t(A)=\left\{t\left(a_{i}\right)\right\}. Here t(ai)t\left(a_{i}\right) represents the number of terms in sequence AA that are before aia_{i} and different from aia_{i}. Prove: Starting from any given sequence AA, after fewer than nn tt transformations, a sequence BB can be obtained such that t(B)=Bt(B)=B.

Solution

5. Notice that the sequence obtained after the exchange t(A)t(A) also satisfies the inequality 0t(ai)i(i=0,1,2,,n)0 \leqslant t\left(a_{i}\right) \leqslant i(i=0,1,2, \cdots, n). We will call all sequences that satisfy these inequalities as bounded index sequences. Below we prove ait(ai)(i=0,1,2,,n)a_{i} \leqslant t\left(a_{i}\right)(i=0,1,2, \cdots, n).

If ai=0a_{i}=0, it is obviously true. Otherwise, let x=ai>0,y=t(ai)x=a_{i}>0, y=t\left(a_{i}\right). The first xx terms a0,a1,,ax1a_{0}, a_{1}, \cdots, a_{x-1} are all not greater than x1x-1, so they are all different from xx, and they are before xx (as shown in Table 1), so yxy \geqslant x, i.e., ait(ai)=(i=0,1,2,,n)a_{i} \leqslant t\left(a_{i}\right)=(i=0,1,2, \cdots, n). This shows that the sequence will stabilize after a finite number of tt transformations, because in the bounded index sequence, the value of the ii-th term does not exceed ii. Next,

The value of the i(0in)i(0 \leqslant i \leqslant n)-th term has the following properties: (i) it is an integer; (ii) it has an upper bound ii; (iii) its value does not decrease during the tt transformation; (iv) once the value stabilizes under the tt transformation, it does not change.
This means that after no more than nn tt transformations, the sequence will stabilize.
Finally, we need to prove that starting from the initial bounded index sequence A={ai}(i=0,1,,n)A=\left\{a_{i}\right\}(i=0,1, \cdots, n), after no more than n1n-1 tt transformations, a stable sequence can be obtained. We prove this by mathematical induction on nn.
When n=1n=1, the two possible sequences are (a0,a1)=(0,0)\left(a_{0}, a_{1}\right)=(0,0) and (a0,a1)=(0,1)\left(a_{0}, a_{1}\right)=(0,1). Under the tt transformation, they are already stable.
Assume that any bounded index sequence {ai},i=0,1,2,,n\left\{a_{i}\right\}, i=0,1,2, \cdots, n becomes a stable sequence under the tt transformation after no more than n1n-1 tt transformations. Consider A={ai},i=0,1,2,,n+1A=\left\{a_{i}\right\}, i=0,1,2, \cdots, n+1, we prove that AA stabilizes after no more than nn tt transformations.

Assume it requires n+1n+1 tt transformations. This is only possible when an+1=0a_{n+1}=0, and each transformation increases the value of the (n+1)(n+1)-th term by exactly 1. Under the tt transformation, the value of the ii-th term is not affected by the terms after it. According to the induction hypothesis, the subsequence A={ai},i=0,1,2,,nA^{\prime}=\left\{a_{i}\right\}, i=0,1,2, \cdots, n, stabilizes after no more than n1n-1 tt transformations. Because the nn-th term stabilizes at x(xn)x(x \leqslant n) after no more than min{x,n1}\min \{x, n-1\} tt transformations, and the value of the (n+1)(n+1)-th term, based on the current assumption, becomes xx exactly after xx tt transformations. Therefore, it can be concluded that the (n+1)(n+1)-th term equals the value of the nn-th term after no more than n1n-1 tt transformations.

However, in a sequence, if two consecutive terms have the same value, they remain equal and stable. Because the value of the nn-th term stabilizes after no more than n1n-1 tt transformations, AA stabilizes after no more than n1n-1 tt transformations. This contradicts the assumption that it requires n+1n+1 tt transformations. Therefore, at most nn tt transformations are needed to stabilize an (n+1)(n+1)-term bounded index sequence.
To prove that if for some i,ai=t(ai)(i=0,1,2,,n)i, a_{i}=t\left(a_{i}\right)(i=0,1,2, \cdots, n), then the tt transformation will not change the value of the ii-th term. Consider the following two cases:
(1) If ai=t(ai)=0a_{i}=t\left(a_{i}\right)=0. This indicates that every term to the left of aia_{i} is 0. Then the first ii terms of t(A)t(A) are also 0, and this repeats.
(2) If ai=t(ai)=x>0a_{i}=t\left(a_{i}\right)=x>0, then the first xx terms are all different from xx. Because t(ai)=xt\left(a_{i}\right)=x, so ax,ax+1,,ai1a_{x}, a_{x+1}, \cdots, a_{i-1} are all equal to xx. Therefore, t(aj)=x(j=x,x+1,,i1)t\left(a_{j}\right)=x(j=x, x+1, \cdots, i-1). Another transformation tt will not change the value of the ii-th term (as shown in Table 2).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.