Maths Olympiad Prep

Track / Stage 9 / 20 of 52 #1900 of 1964

Problem 1900

IMO P2/P5; hard shortlist
Combinatorics Difficulty 9.2 Prove it IMO 2016 Shortlisted Problems · IMO · 2016

Find all integers n3n \geqslant 3 with the following property: for all real numbers a1,a2,,ana_{1}, a_{2}, \ldots, a_{n} and b1,b2,,bnb_{1}, b_{2}, \ldots, b_{n} satisfying ak+bk=1\left|a_{k}\right|+\left|b_{k}\right|=1 for 1kn1 \leqslant k \leqslant n, there exist x1,x2,,xnx_{1}, x_{2}, \ldots, x_{n}, each of which is either 1-1 or 11, such that
k=1nxkak+k=1nxkbk1 \left|\sum_{k=1}^{n} x_{k} a_{k}\right|+\left|\sum_{k=1}^{n} x_{k} b_{k}\right| \leqslant 1

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.

Official solutions — 2

Solution 1

Answer. nn can be any odd integer greater than or equal to 33.

For any even integer n4n \geqslant 4, we consider the case
a1=a2==an1=bn=0andb1=b2==bn1=an=1. a_{1}=a_{2}=\cdots=a_{n-1}=b_{n}=0 \quad \text{and} \quad b_{1}=b_{2}=\cdots=b_{n-1}=a_{n}=1.
The condition ak+bk=1\left|a_{k}\right|+\left|b_{k}\right|=1 is satisfied for each 1kn1 \leqslant k \leqslant n. No matter how we choose each xkx_{k}, both sums k=1nxkak\sum_{k=1}^{n} x_{k} a_{k} and k=1nxkbk\sum_{k=1}^{n} x_{k} b_{k} are odd integers. This implies k=1nxkak1\left|\sum_{k=1}^{n} x_{k} a_{k}\right| \geqslant 1 and k=1nxkbk1\left|\sum_{k=1}^{n} x_{k} b_{k}\right| \geqslant 1, which shows (1) cannot hold.

For any odd integer n3n \geqslant 3, we may assume without loss of generality bk0b_{k} \geqslant 0 for 1kn1 \leqslant k \leqslant n (this can be done by flipping the pair (ak,bk)\left(a_{k}, b_{k}\right) to (ak,bk)\left(-a_{k},-b_{k}\right) and xkx_{k} to xk-x_{k} if necessary) and a1a2am0>am+1ana_{1} \geqslant a_{2} \geqslant \cdots \geqslant a_{m} \geqslant 0>a_{m+1} \geqslant \cdots \geqslant a_{n}. We claim that the choice xk=(1)k+1x_{k}=(-1)^{k+1} for 1kn1 \leqslant k \leqslant n will work. Define
s=k=1mxkakandt=k=m+1nxkak s=\sum_{k=1}^{m} x_{k} a_{k} \quad \text{and} \quad t=-\sum_{k=m+1}^{n} x_{k} a_{k}
Note that
s=(a1a2)+(a3a4)+0 s=\left(a_{1}-a_{2}\right)+\left(a_{3}-a_{4}\right)+\cdots \geqslant 0
by the assumption a1a2ama_{1} \geqslant a_{2} \geqslant \cdots \geqslant a_{m} (when mm is odd, there is a single term ama_{m} at the end, which is also positive). Next, we have
s=a1(a2a3)(a4a5)a11 s=a_{1}-\left(a_{2}-a_{3}\right)-\left(a_{4}-a_{5}\right)-\cdots \leqslant a_{1} \leqslant 1
Similarly,
t=(an+an1)+(an2+an3)+0 t=\left(-a_{n}+a_{n-1}\right)+\left(-a_{n-2}+a_{n-3}\right)+\cdots \geqslant 0
and
t=an+(an1an2)+(an3an4)+an1. t=-a_{n}+\left(a_{n-1}-a_{n-2}\right)+\left(a_{n-3}-a_{n-4}\right)+\cdots \leqslant-a_{n} \leqslant 1.
From the condition, we have ak+bk=1a_{k}+b_{k}=1 for 1km1 \leqslant k \leqslant m and ak+bk=1-a_{k}+b_{k}=1 for m+1knm+1 \leqslant k \leqslant n. It follows that k=1nxkak=st\sum_{k=1}^{n} x_{k} a_{k}=s-t and k=1nxkbk=1st\sum_{k=1}^{n} x_{k} b_{k}=1-s-t. Hence it remains to prove
st+1st1 |s-t|+|1-s-t| \leqslant 1
under the constraint 0s,t10 \leqslant s, t \leqslant 1. By symmetry, we may assume sts \geqslant t. If 1st01-s-t \geqslant 0, then we have
st+1st=st+1st=12t1 |s-t|+|1-s-t|=s-t+1-s-t=1-2 t \leqslant 1
If 1st01-s-t \leqslant 0, then we have
st+1st=st1+s+t=2s11 |s-t|+|1-s-t|=s-t-1+s+t=2 s-1 \leqslant 1
Hence, the inequality is true in both cases.

These show nn can be any odd integer greater than or equal to 33.

Solution 2

The even case can be handled in the same way as Solution 1. For the odd case, we prove by induction on nn.

Firstly, for n=3n=3, we may assume without loss of generality a1a2a30a_{1} \geqslant a_{2} \geqslant a_{3} \geqslant 0 and b1=a11b_{1}=a_{1}-1 (if b1=1a1b_{1}=1-a_{1}, we may replace each bkb_{k} by bk-b_{k}).

- Case 1. b2=a21b_{2}=a_{2}-1 and b3=a31b_{3}=a_{3}-1, in which case we take (x1,x2,x3)=(1,1,1)(x_{1}, x_{2}, x_{3})=(1,-1,1).
Let c=a1a2+a3c=a_{1}-a_{2}+a_{3} so that 0c10 \leqslant c \leqslant 1. Then b1b2+b3=a1a2+a31=1c|b_{1}-b_{2}+b_{3}|=|a_{1}-a_{2}+a_{3}-1|=1-c and hence c+b1b2+b3=1|c|+|b_{1}-b_{2}+b_{3}|=1.

- Case 2. b2=1a2b_{2}=1-a_{2} and b3=1a3b_{3}=1-a_{3}, in which case we take (x1,x2,x3)=(1,1,1)(x_{1}, x_{2}, x_{3})=(1,-1,1).
Let c=a1a2+a3c=a_{1}-a_{2}+a_{3} so that 0c10 \leqslant c \leqslant 1. Since a3a2a_{3} \leqslant a_{2} and a11a_{1} \leqslant 1, we have
c1b1b2+b3=a1+a2a311c. c-1 \leqslant b_{1}-b_{2}+b_{3}=a_{1}+a_{2}-a_{3}-1 \leqslant 1-c.
This gives b1b2+b31c|b_{1}-b_{2}+b_{3}| \leqslant 1-c and hence c+b1b2+b31|c|+|b_{1}-b_{2}+b_{3}| \leqslant 1.

- Case 3. b2=a21b_{2}=a_{2}-1 and b3=1a3b_{3}=1-a_{3}, in which case we take (x1,x2,x3)=(1,1,1)(x_{1}, x_{2}, x_{3})=(-1,1,1).
Let c=a1+a2+a3c=-a_{1}+a_{2}+a_{3}. If c0c \geqslant 0, then a31a_{3} \leqslant 1 and a2a1a_{2} \leqslant a_{1} imply
c1b1+b2+b3=a1+a2a3+11c c-1 \leqslant-b_{1}+b_{2}+b_{3}=-a_{1}+a_{2}-a_{3}+1 \leqslant 1-c
If c<0c<0, then a1a2+1a_{1} \leqslant a_{2}+1 and a30a_{3} \geqslant 0 imply
c1b1+b2+b3=a1+a2a3+11+c. -c-1 \leqslant-b_{1}+b_{2}+b_{3}=-a_{1}+a_{2}-a_{3}+1 \leqslant 1+c.
In both cases, we get b1+b2+b31c|-b_{1}+b_{2}+b_{3}| \leqslant 1-|c| and hence c+b1+b2+b31|c|+|-b_{1}+b_{2}+b_{3}| \leqslant 1.

- Case 4. b2=1a2b_{2}=1-a_{2} and b3=a31b_{3}=a_{3}-1, in which case we take (x1,x2,x3)=(1,1,1)(x_{1}, x_{2}, x_{3})=(-1,1,1).
Let c=a1+a2+a3c=-a_{1}+a_{2}+a_{3}. If c0c \geqslant 0, then a21a_{2} \leqslant 1 and a3a1a_{3} \leqslant a_{1} imply
c1b1+b2+b3=a1a2+a3+11c. c-1 \leqslant-b_{1}+b_{2}+b_{3}=-a_{1}-a_{2}+a_{3}+1 \leqslant 1-c.
If c<0c<0, then a1a3+1a_{1} \leqslant a_{3}+1 and a20a_{2} \geqslant 0 imply
c1b1+b2+b3=a1a2+a3+11+c. -c-1 \leqslant-b_{1}+b_{2}+b_{3}=-a_{1}-a_{2}+a_{3}+1 \leqslant 1+c.
In both cases, we get b1+b2+b31c|-b_{1}+b_{2}+b_{3}| \leqslant 1-|c| and hence c+b1+b2+b31|c|+|-b_{1}+b_{2}+b_{3}| \leqslant 1.

We have found x1,x2,x3x_{1}, x_{2}, x_{3} satisfying (1) in each case for n=3n=3.

Now, let n5n \geqslant 5 be odd and suppose the result holds for any smaller odd cases. Again we may assume ak0a_{k} \geqslant 0 for each 1kn1 \leqslant k \leqslant n. By the Pigeonhole Principle, there are at least three indices kk for which bk=ak1b_{k}=a_{k}-1 or bk=1akb_{k}=1-a_{k}. Without loss of generality, suppose bk=ak1b_{k}=a_{k}-1 for k=1,2,3k=1,2,3. Again by the Pigeonhole Principle, as a1,a2,a3a_{1}, a_{2}, a_{3} lies between 00 and 11, the difference of two of them is at most 12\frac{1}{2}. By changing indices if necessary, we may assume 0d=a1a2120 \leqslant d=a_{1}-a_{2} \leqslant \frac{1}{2}.

By the inductive hypothesis, we can choose x3,x4,,xnx_{3}, x_{4}, \ldots, x_{n} such that a=k=3nxkaka' = \sum_{k=3}^{n} x_{k} a_{k} and b=k=3nxkbkb' = \sum_{k=3}^{n} x_{k} b_{k} satisfy a+b1|a'|+|b'| \leqslant 1. We may further assume a0a' \geqslant 0.

- Case 1. b0b' \geqslant 0, in which case we take (x1,x2)=(1,1)(x_{1}, x_{2})=(-1,1).
We have a1+a2+a+(a11)+(a21)+b=d+a+d+bmax{a+b2d,ab,ba,2dab}1|-a_{1}+a_{2}+a'|+|-(a_{1}-1)+(a_{2}-1)+b'|=|-d+a'|+|-d+b'| \leqslant \max \{a'+b'-2d, a'-b', b'-a', 2d-a'-b'\} \leqslant 1 since 0a,b,a+b10 \leqslant a', b', a'+b' \leqslant 1 and 0d120 \leqslant d \leqslant \frac{1}{2}.

- Case 2. 0>ba0 > b' \geqslant -a', in which case we take (x1,x2)=(1,1)(x_{1}, x_{2})=(-1,1).
We have a1+a2+a+(a11)+(a21)+b=d+a+d+b|-a_{1}+a_{2}+a'|+|-(a_{1}-1)+(a_{2}-1)+b'|=|-d+a'|+|-d+b'|. If d+a0-d+a' \geqslant 0, this equals ab=a+b1a'-b'=|a'|+|b'| \leqslant 1. If d+a<0-d+a'<0, this equals 2dab2d12d-a'-b' \leqslant 2d \leqslant 1.

- Case 3. b<ab'<-a', in which case we take (x1,x2)=(1,1)(x_{1}, x_{2})=(1,-1).
We have a1a2+a+(a11)(a21)+b=d+a+d+b|a_{1}-a_{2}+a'|+|(a_{1}-1)-(a_{2}-1)+b'|=|d+a'|+|d+b'|. If d+b0d+b' \geqslant 0, this equals 2d+a+b<2d12d+a'+b'<2d \leqslant 1. If d+b<0d+b'<0, this equals ab=a+b1a'-b'=|a'|+|b'| \leqslant 1.

Therefore, we have found x1,x2,,xnx_{1}, x_{2}, \ldots, x_{n} satisfying (1) in each case. By induction, the property holds for all odd integers n3n \geqslant 3.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.