Maths Olympiad Prep

Track / Stage 9 / 19 of 52 #2539 of 2604

Problem 2539

IMO P2/P5; hard shortlist
Algebra Difficulty 9.2 Prove it Team Selection Test Selection Test · United States

Find all real-valued functions ff defined on pairs of real numbers, having the following property: for all real numbers a,b,ca, b, c, the median of f(a,b)f(a, b), f(b,c)f(b, c), f(c,a)f(c, a) equals the median of a,b,ca, b, c. (The median of three real numbers, not necessarily distinct, is the number that is in the middle when the three numbers are arranged in non-decreasing order.)

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

There are two solutions:
* f(a,b)=af(a, b) = a for all a,ba, b, and
* f(a,b)=bf(a, b) = b for all a,ba, b.
Clearly these functions meet the condition. We must show there are no others.

By setting a=b=ca = b = c we get f(a,a)=af(a, a) = a for all aa. Next, for all a,ba, b, the median of f(a,a)f(a, a), f(a,b)f(a, b), f(b,a)f(b, a) must equal the median of a,a,ba, a, b, namely aa, so for all a,ba, b, one of f(a,b)f(a, b), f(b,a)f(b, a) is at most aa and the other is at least aa. Switching a,ba, b, we also see that one of f(a,b)f(a, b), f(b,a)f(b, a) is at most bb and the other is at least bb. Therefore, we have
min⁡{f(a,b),f(b,a)}≤min⁡{a,b}(13) \min\{f(a, b), f(b, a)\} \le \min\{a, b\} \qquad (13)
and
max⁡{f(a,b),f(b,a)}≥max⁡{a,b}.(14) \max\{f(a, b), f(b, a)\} \ge \max\{a, b\}. \qquad (14)
Next, consider any three numbers a<b<ca < b < c. The median of f(a,b)f(a, b), f(b,c)f(b, c), f(c,a)f(c, a) must equal bb, so one of f(a,b)f(a, b), f(b,c)f(b, c) equals bb (since f(c,a)f(c, a) must be either at most aa or at least cc). Similarly, considering f(a,c)f(a, c), f(c,b)f(c, b), f(b,a)f(b, a), we see that one of f(c,b)f(c, b), f(b,a)f(b, a) equals bb. The numbers f(a,b)f(a, b), f(b,a)f(b, a) cannot both be bb, by (13), and f(b,c)f(b, c), f(c,b)f(c, b) cannot both be bb, by (13). We conclude that either
f(a,b)=f(c,b)=b(15) f(a, b) = f(c, b) = b \qquad (15)
or
f(b,c)=f(b,a)=b.(16) f(b, c) = f(b, a) = b. \qquad (16)
In particular, for any a<ba < b, choosing c>bc > b arbitrarily, we see that one of f(a,b)f(a, b), f(b,a)f(b, a) must equal aa. Likewise, for any b<cb < c, choosing a<ba < b arbitrarily, we see that one of f(b,c)f(b, c), f(c,b)f(c, b) must equal bb.

Putting these two conclusions together, for any a≠ba \ne b, one of f(a,b)f(a, b), f(b,a)f(b, a) equals min⁡{a,b}\min\{a, b\} and the other equals max⁡{a,b}\max\{a, b\}. In other words, for a≠ba \ne b, {f(a,b),f(b,a)}\{f(a, b), f(b, a)\} and {a,b}\{a, b\} are equal as sets. Call {a,b}\{a, b\} a first-pair if f(a,b)=af(a, b) = a and f(b,a)=bf(b, a) = b, and a second-pair if f(a,b)=bf(a, b) = b and f(b,a)=af(b, a) = a.

Now again consider any three numbers a<b<ca < b < c. If either {a,b}\{a, b\} or {b,c}\{b, c\} is a first-pair, then (15) cannot hold, so (16) holds, and {a,b}\{a, b\} and {b,c}\{b, c\} are both first-pairs. That is, {a,b}\{a, b\} is a first-pair if and only if {b,c}\{b, c\} is. Pick any other numbers a′a' and c′c' such that a′<ba' < b and c′>bc' > b. The same logic gives
{a′,b} is a first-pair  ⟺  {b,c} is a first-pair  ⟺  {a,b} is a first-pair  ⟺  {b,c′} is a first-pair. \begin{align*} \{a', b\} \text{ is a first-pair} &\iff \{b, c\} \text{ is a first-pair} \\ &\iff \{a, b\} \text{ is a first-pair} \\ &\iff \{b, c'\} \text{ is a first-pair.} \end{align*}
This shows that, given any p,q≠bp, q \ne b, {p,b}\{p, b\} is a first-pair if and only if {q,b}\{q, b\} is. Since bb is arbitrary, we have for any distinct p,q,r,sp, q, r, s that
{p,q} is a first-pair  ⟺  {s,q}={q,s} is a first-pair  ⟺  {r,s} is a first-pair. \begin{align*} \{p, q\} \text{ is a first-pair} &\iff \{s, q\} = \{q, s\} \text{ is a first-pair} \\ &\iff \{r, s\} \text{ is a first-pair.} \end{align*}
That is, if some first-pair exists, then every pair is a first-pair, so f(a,b)=af(a, b) = a for all a,ba, b. Otherwise, every pair is a second-pair, so f(a,b)=bf(a, b) = b for all a,ba, b. Thus, the only possibilities for the function ff are the two solutions we initially identified.

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