Olympiad Maths Prep

Track / Stage 7 / 118 of 300 #1518 of 2000

Problem 1518

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

Let f:RRf:\mathbb{R}\rightarrow \mathbb{R} a function such that f(a+b2){f(a),f(b)}, ()a,bRf\left(\frac{a+b}{2}\right)\in \{f(a),f(b)\},\ (\forall)a,b\in \mathbb{R}.

a) Give an example of a non-constant function that satisfy the hypothesis.

b)If ff is continuous, prove that ff is constant.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

### Part (a)
1. Define the function f:RR f: \mathbb{R} \rightarrow \mathbb{R} as follows:
f(x)=χR+(x)={1if x>00if x0 f(x) = \chi_{\mathbb{R}^+} (x) = \begin{cases} 1 & \text{if } x > 0 \\ 0 & \text{if } x \leq 0 \end{cases}
2. Verify the hypothesis for different cases:
- If both a,b>0 a, b > 0 or a,b0 a, b \leq 0 , then f(a)=f(b) f(a) = f(b) and the hypothesis f(a+b2){f(a),f(b)} f\left(\frac{a+b}{2}\right) \in \{f(a), f(b)\} is trivially satisfied.
- If a>0 a > 0 and b0 b \leq 0 , then {f(a),f(b)}={1,0} \{ f(a), f(b) \} = \{1, 0\} . The midpoint a+b2 \frac{a+b}{2} will be either positive or non-positive, so f(a+b2) f\left(\frac{a+b}{2}\right) will be either 1 or 0, which is in {f(a),f(b)} \{f(a), f(b)\} .

Thus, the function f(x)=χR+(x) f(x) = \chi_{\mathbb{R}^+} (x) satisfies the hypothesis and is a non-constant function.

### Part (b)
1. Assume f f is continuous and suppose, for contradiction, that there exist a0,b0R a_0, b_0 \in \mathbb{R} such that f(a0)f(b0) f(a_0) \neq f(b_0) .
2. Define c1=a0+b02 c_1 = \frac{a_0 + b_0}{2} . By the hypothesis, f(c1) f(c_1) must be either f(a0) f(a_0) or f(b0) f(b_0) .
3. Depending on the value of f(c1) f(c_1) :
- If f(c1)=f(a0) f(c_1) = f(a_0) , set a1=c1 a_1 = c_1 and b1=b0 b_1 = b_0 .
- If f(c1)=f(b0) f(c_1) = f(b_0) , set a1=a0 a_1 = a_0 and b1=c1 b_1 = c_1 .
4. Note that f(a1)f(b1) f(a_1) \neq f(b_1) because f(a0)f(b0) f(a_0) \neq f(b_0) .
5. Repeat this process to construct sequences (ak) (a_k) and (bk) (b_k) such that:
- ak+1=ak+bk2 a_{k+1} = \frac{a_k + b_k}{2} or bk+1=ak+bk2 b_{k+1} = \frac{a_k + b_k}{2} .
- f(ak)f(bk) f(a_k) \neq f(b_k) for all k k .
6. Since ak a_k and bk b_k are bounded and the interval [ak,bk] [a_k, b_k] is halved at each step, both sequences (ak) (a_k) and (bk) (b_k) converge to the same limit αR \alpha \in \mathbb{R} .
7. By the continuity of f f , we have:
limkf(ak)=f(α)andlimkf(bk)=f(α) \lim_{k \to \infty} f(a_k) = f(\alpha) \quad \text{and} \quad \lim_{k \to \infty} f(b_k) = f(\alpha)
8. However, since f(ak)=f(a0) f(a_k) = f(a_0) and f(bk)=f(b0) f(b_k) = f(b_0) for all k k , we have:
f(a0)=f(α)andf(b0)=f(α) f(a_0) = f(\alpha) \quad \text{and} \quad f(b_0) = f(\alpha)
9. This leads to a contradiction because f(a0)f(b0) f(a_0) \neq f(b_0) .

Therefore, the assumption that f(a0)f(b0) f(a_0) \neq f(b_0) must be false, implying that f f is constant.

\blacksquare

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