Maths Olympiad Prep

Library / IMO Shortlist /146 of 365

IMO Shortlist, 2007

Algebra Difficulty 8.4 Shortlist Prove it IMO

Given a sequence a1,a2,…,ana_{1}, a_{2}, \ldots, a_{n} of real numbers. For each ii (1≤i≤n1 \leq i \leq n) define
di=max⁡{aj:1≤j≤i}−min⁡{aj:i≤j≤n} d_{i}=\max \{a_{j}: 1 \leq j \leq i\}-\min \{a_{j}: i \leq j \leq n\}
and let
d=max⁡{di:1≤i≤n}. d=\max \{d_{i}: 1 \leq i \leq n\} .

a. Prove that for arbitrary real numbers x1≤x2≤…≤xnx_{1} \leq x_{2} \leq \ldots \leq x_{n},
max⁡{∣xi−ai∣:1≤i≤n}≥d2. \begin{equation*} \max \{\left|x_{i}-a_{i}\right|: 1 \leq i \leq n\} \geq \frac{d}{2} . \tag{1} \end{equation*}

b. Show that there exists a sequence x1≤x2≤…≤xnx_{1} \leq x_{2} \leq \ldots \leq x_{n} of real numbers such that we have equality in (1).

Solutions — 2

Solution 1

(a) Let 1≤p≤q≤r≤n1 \leq p \leq q \leq r \leq n be indices for which
d=dq,ap=max⁡{aj:1≤j≤q},ar=min⁡{aj:q≤j≤n} d=d_{q}, \quad a_{p}=\max \{a_{j}: 1 \leq j \leq q\}, \quad a_{r}=\min \{a_{j}: q \leq j \leq n\}
and thus d=ap−ard=a_{p}-a_{r}. (These indices are not necessarily unique.)
Figure 1
For arbitrary real numbers x1≤x2≤…≤xnx_{1} \leq x_{2} \leq \ldots \leq x_{n}, consider just the two quantities ∣xp−ap∣\left|x_{p}-a_{p}\right| and ∣xr−ar∣\left|x_{r}-a_{r}\right|. Since
(ap−xp)+(xr−ar)=(ap−ar)+(xr−xp)≥ap−ar=d, \left(a_{p}-x_{p}\right)+\left(x_{r}-a_{r}\right)=\left(a_{p}-a_{r}\right)+\left(x_{r}-x_{p}\right) \geq a_{p}-a_{r}=d,
we have either ap−xp≥d2a_{p}-x_{p} \geq \frac{d}{2} or xr−ar≥d2x_{r}-a_{r} \geq \frac{d}{2}. Hence,
max⁡{∣xi−ai∣:1≤i≤n}≥max⁡{∣xp−ap∣,∣xr−ar∣}≥max⁡{ap−xp,xr−ar}≥d2 \max \{\left|x_{i}-a_{i}\right|: 1 \leq i \leq n\} \geq \max \{\left|x_{p}-a_{p}\right|,\left|x_{r}-a_{r}\right|\} \geq \max \{a_{p}-x_{p}, x_{r}-a_{r}\} \geq \frac{d}{2}

(b) Define the sequence (xk)\left(x_{k}\right) as
x1=a1−d2,xk=max⁡{xk−1,ak−d2} for 2≤k≤n. x_{1}=a_{1}-\frac{d}{2}, \quad x_{k}=\max \{x_{k-1}, a_{k}-\frac{d}{2}\} \quad \text{ for } 2 \leq k \leq n .
We show that we have equality in (1) for this sequence.
By the definition, sequence ( xkx_{k} ) is non-decreasing and xk−ak≥−d2x_{k}-a_{k} \geq-\frac{d}{2} for all 1≤k≤n1 \leq k \leq n. Next we prove that
xk−ak≤d2 for all 1≤k≤n \begin{equation*} x_{k}-a_{k} \leq \frac{d}{2} \quad \text{ for all } 1 \leq k \leq n \tag{2} \end{equation*}
Consider an arbitrary index 1≤k≤n1 \leq k \leq n. Let ℓ≤k\ell \leq k be the smallest index such that xk=xℓx_{k}=x_{\ell}. We have either ℓ=1\ell=1, or ℓ≥2\ell \geq 2 and xℓ>xℓ−1x_{\ell}>x_{\ell-1}. In both cases,
xk=xℓ=aℓ−d2 \begin{equation*} x_{k}=x_{\ell}=a_{\ell}-\frac{d}{2} \tag{3} \end{equation*}
Since
aℓ−ak≤max⁡{aj:1≤j≤k}−min⁡{aj:k≤j≤n}=dk≤d a_{\ell}-a_{k} \leq \max \{a_{j}: 1 \leq j \leq k\}-\min \{a_{j}: k \leq j \leq n\}=d_{k} \leq d
equality (3) implies
xk−ak=aℓ−ak−d2≤d−d2=d2 x_{k}-a_{k}=a_{\ell}-a_{k}-\frac{d}{2} \leq d-\frac{d}{2}=\frac{d}{2}
We obtained that −d2≤xk−ak≤d2-\frac{d}{2} \leq x_{k}-a_{k} \leq \frac{d}{2} for all 1≤k≤n1 \leq k \leq n, so
max⁡{∣xi−ai∣:1≤i≤n}≤d2 \max \{\left|x_{i}-a_{i}\right|: 1 \leq i \leq n\} \leq \frac{d}{2}
We have equality because ∣x1−a1∣=d2\left|x_{1}-a_{1}\right|=\frac{d}{2}.

Solution 2

We present another construction of a sequence ( xix_{i} ) for part (b).
For each 1≤i≤n1 \leq i \leq n, let
Mi=max⁡{aj:1≤j≤i} and mi=min⁡{aj:i≤j≤n}. M_{i}=\max \{a_{j}: 1 \leq j \leq i\} \quad \text{ and } \quad m_{i}=\min \{a_{j}: i \leq j \leq n\} .
For all 1≤i<n1 \leq i<n, we have
Mi=max⁡{a1,…,ai}≤max⁡{a1,…,ai,ai+1}=Mi+1 M_{i}=\max \{a_{1}, \ldots, a_{i}\} \leq \max \{a_{1}, \ldots, a_{i}, a_{i+1}\}=M_{i+1}
and
mi=min⁡{ai,ai+1,…,an}≤min⁡{ai+1,…,an}=mi+1. m_{i}=\min \{a_{i}, a_{i+1}, \ldots, a_{n}\} \leq \min \{a_{i+1}, \ldots, a_{n}\}=m_{i+1} .
Therefore sequences ( MiM_{i} ) and ( mim_{i} ) are non-decreasing. Moreover, since aia_{i} is listed in both definitions,
mi≤ai≤Mi m_{i} \leq a_{i} \leq M_{i}
To achieve equality in (1), set
xi=Mi+mi2 x_{i}=\frac{M_{i}+m_{i}}{2}
Since sequences ( MiM_{i} ) and ( mim_{i} ) are non-decreasing, this sequence is non-decreasing as well.
From di=Mi−mid_{i}=M_{i}-m_{i} we obtain that
−di2=mi−Mi2=xi−Mi≤xi−ai≤xi−mi=Mi−mi2=di2 -\frac{d_{i}}{2}=\frac{m_{i}-M_{i}}{2}=x_{i}-M_{i} \leq x_{i}-a_{i} \leq x_{i}-m_{i}=\frac{M_{i}-m_{i}}{2}=\frac{d_{i}}{2}
Therefore
max⁡{∣xi−ai∣:1≤i≤n}≤max⁡{di2:1≤i≤n}=d2 \max \{\left|x_{i}-a_{i}\right|: 1 \leq i \leq n\} \leq \max \{\frac{d_{i}}{2}: 1 \leq i \leq n\}=\frac{d}{2}
Since the opposite inequality has been proved in part (a), we must have equality.

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

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