Maths Olympiad Prep

Track / Stage 9 / 40 of 52 #2560 of 2604

Problem 2560

IMO P2/P5; hard shortlist
Combinatorics Difficulty 9.3 Prove it IMO Shortlist · IMO · 2007

Let A0=(a1,…,an)A_{0} = (a_{1}, \ldots, a_{n}) be a finite sequence of real numbers. For each k≥0k \geq 0, from the sequence Ak=(x1,…,xn)A_{k} = (x_{1}, \ldots, x_{n}) we construct a new sequence Ak+1A_{k+1} in the following way.
1. We choose a partition {1,…,n}=I∪J\{1, \ldots, n\} = I \cup J, where II and JJ are two disjoint sets, such that the expression
∣∑i∈Ixi−∑j∈Jxj∣ \left|\sum_{i \in I} x_{i} - \sum_{j \in J} x_{j}\right|
attains the smallest possible value. (We allow the sets II or JJ to be empty; in this case the corresponding sum is 00.) If there are several such partitions, one is chosen arbitrarily.
2. We set Ak+1=(y1,…,yn)A_{k+1} = (y_{1}, \ldots, y_{n}), where yi=xi+1y_{i} = x_{i} + 1 if i∈Ii \in I, and yi=xi−1y_{i} = x_{i} - 1 if i∈Ji \in J.
Prove that for some kk, the sequence AkA_{k} contains an element xx such that ∣x∣≥n/2|x| \geq n / 2.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Lemma. Suppose that all terms of the sequence (x1,…,xn)(x_{1}, \ldots, x_{n}) satisfy the inequality ∣xi∣<a|x_{i}| < a. Then there exists a partition {1,2,…,n}=I∪J\{1,2, \ldots, n\} = I \cup J into two disjoint sets such that
∣∑i∈Ixi−∑j∈Jxj∣<a.(1) |\sum_{i \in I} x_{i} - \sum_{j \in J} x_{j}| < a. \tag{1}
Proof. Apply an induction on nn. The base case n=1n = 1 is trivial. For the induction step, consider a sequence (x1,…,xn)(x_{1}, \ldots, x_{n}) (n>1n > 1). By the induction hypothesis there exists a splitting {1,…,n−1}=I′∪J′\{1, \ldots, n-1\} = I' \cup J' such that
∣∑i∈I′xi−∑j∈J′xj∣<a |\sum_{i \in I'} x_{i} - \sum_{j \in J'} x_{j}| < a
For convenience, suppose that ∑i∈I′xi≥∑j∈J′xj\sum_{i \in I'} x_{i} \geq \sum_{j \in J'} x_{j}. If xn≥0x_{n} \geq 0 then choose I=I′I = I', J=J′∪{n}J = J' \cup \{n\}; otherwise choose I=I′∪{n}I = I' \cup \{n\}, J=J′J = J'. In both cases, we have ∑i∈I′xi−∑j∈J′xj∈[0,a)\sum_{i \in I'} x_{i} - \sum_{j \in J'} x_{j} \in [0, a) and ∣xn∣∈[0,a)|x_{n}| \in [0, a); hence
∑i∈Ixi−∑j∈Jxj=∑i∈I′xi−∑j∈J′xj−∣xn∣∈(−a,a), \sum_{i \in I} x_{i} - \sum_{j \in J} x_{j} = \sum_{i \in I'} x_{i} - \sum_{j \in J'} x_{j} - |x_{n}| \in (-a, a),
as desired.
Let us turn now to the problem. To the contrary, assume that for all kk, all the numbers in AkA_{k} lie in interval (−n/2,n/2)(-n / 2, n / 2). Consider an arbitrary sequence Ak=(b1,…,bn)A_{k} = (b_{1}, \ldots, b_{n}). To obtain the term bib_{i}, we increased and decreased number aia_{i} by one several times. Therefore bi−aib_{i} - a_{i} is always an integer, and there are not more than nn possible values for bib_{i}. So, there are not more than nnn^{n} distinct possible sequences AkA_{k}, and hence two of the sequences A1,A2,…,Ann+1A_{1}, A_{2}, \ldots, A_{n^{n} + 1} should be identical, say Ap=AqA_{p} = A_{q} for some p<qp < q.
For any positive integer kk, let SkS_{k} be the sum of squares of elements in AkA_{k}. Consider two consecutive sequences Ak=(x1,…,xn)A_{k} = (x_{1}, \ldots, x_{n}) and Ak+1=(y1,…,yn)A_{k+1} = (y_{1}, \ldots, y_{n}). Let {1,2,…,n}=I∪J\{1,2, \ldots, n\} = I \cup J be the partition used in this step - that is, yi=xi+1y_{i} = x_{i} + 1 for all i∈Ii \in I and yj=xj−1y_{j} = x_{j} - 1 for all j∈Jj \in J. Since the value of ∣∑i∈Ixi−∑j∈Jxj∣|\sum_{i \in I} x_{i} - \sum_{j \in J} x_{j}| is the smallest possible, the Lemma implies that it is less than n/2n / 2. Then we have
Sk+1−Sk=∑i∈I((xi+1)2−xi2)+∑j∈J((xj−1)2−xj2)=n+2(∑i∈Ixi−∑j∈Jxj)>n−2⋅n2=0S_{k+1} - S_{k} = \sum_{i \in I} ((x_{i} + 1)^{2} - x_{i}^{2}) + \sum_{j \in J} ((x_{j} - 1)^{2} - x_{j}^{2}) = n + 2(\sum_{i \in I} x_{i} - \sum_{j \in J} x_{j}) > n - 2 \cdot \frac{n}{2} = 0.
Thus we obtain Sq>Sq−1>⋯>SpS_{q} > S_{q-1} > \cdots > S_{p}. This is impossible since Ap=AqA_{p} = A_{q} and hence Sp=SqS_{p} = S_{q}.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.