Maths Olympiad Prep

Library / Austria competition problems /38 of 39

Austria competition problems, 2010

Algebra Difficulty 7.2 National Olympiad, round 2 Prove it Austria

For a positive integer nn, let fn(x)f_n(x) be defined by
fn(x)=∑k=1n∣x−k∣. f_n(x) = \sum_{k=1}^{n} |x - k|.
Determine the solution to the inequality fn(x)<41f_n(x) < 41 for every two-digit integer nn (in decimal notation).
G. Baron, Vienna

Solution

Note first that the function fn(x)f_n(x) satisfies fn(x)=fn(n+1−x)f_n(x) = f_n(n+1-x):
fn(n+1−x)=∑k=1n∣n+1−x−k∣=∑k=1n∣x−(n+1−k)∣=∑k=1n∣x−k∣=fn(x) f_n(n+1-x) = \sum_{k=1}^{n} |n+1-x-k| = \sum_{k=1}^{n} |x - (n+1-k)| = \sum_{k=1}^{n} |x-k| = f_n(x)
by reversing the order of summation. Let us first consider the case x<1x < 1: then, x−k<0x-k < 0 for every k≥1k \ge 1 and thus
fn(x)=∑k=1n(k−x)=n(n+1)2−nx>n(n+1)2−n=n(n−1)2≥10⋅92=45>41, f_n(x) = \sum_{k=1}^{n} (k-x) = \frac{n(n+1)}{2} - nx > \frac{n(n+1)}{2} - n = \frac{n(n-1)}{2} \ge \frac{10 \cdot 9}{2} = 45 > 41,
so this case can be excluded. By symmetry (identity above), we can exclude x>nx > n as well. Thus we are left with 1≤x≤n1 \le x \le n. Suppose that x∈[ℓ,ℓ+1]x \in [\ell, \ell + 1] for some integer ℓ\ell with 1≤ℓ≤n−11 \le \ell \le n - 1. Then x−k≤0x - k \le 0 for k≥ℓ+1k \ge \ell + 1 and x−k≥0x - k \ge 0 for k≤ℓk \le \ell, and we obtain
fn(x)=∑k=1ℓ(x−k)+∑k=ℓ+1n(k−x)=ℓx−ℓ(ℓ+1)2+(n−ℓ)(n+ℓ+1)2−(n−ℓ)x=n(n+1)2−ℓ(ℓ+1)+(2ℓ−n)x. \begin{aligned} f_n(x) &= \sum_{k=1}^{\ell} (x-k) + \sum_{k=\ell+1}^{n} (k-x) = \ell x - \frac{\ell(\ell+1)}{2} + \frac{(n-\ell)(n+\ell+1)}{2} - (n-\ell)x \\ &= \frac{n(n+1)}{2} - \ell(\ell+1) + (2\ell-n)x. \end{aligned}
This shows that fn(x)f_n(x) is strictly decreasing on [ℓ,ℓ+1][\ell, \ell + 1] if ℓ<n2\ell < \frac{n}{2}, constant on [n2,n2+1][\frac{n}{2}, \frac{n}{2} + 1] (if nn is even) and strictly increasing on [ℓ,ℓ+1][\ell, \ell + 1] if ℓ>n2\ell > \frac{n}{2}. We conclude:
* If nn is even, then fn(x)f_n(x) is strictly decreasing on [1,n2][1, \frac{n}{2}], constant on [n2,n2+1][\frac{n}{2}, \frac{n}{2} + 1] and strictly increasing on [n2+1,n][\frac{n}{2} + 1, n].
* If nn is odd, then fn(x)f_n(x) is strictly decreasing on [1,n+12][1, \frac{n+1}{2}] and strictly increasing on [n+12,n][\frac{n+1}{2}, n].
We see that the minimum of fn(x)f_n(x) is always attained at m=⌊n+12⌋m = \lfloor \frac{n+1}{2} \rfloor. Now we can complete squares in the above to obtain
fn(m)=n(n+1)2−m(m+1)+(2m−n)m=n(n+1)2+m2−(n+1)m=n(n+1)2+(m−n+12)2−(n+12)2≥n(n+1)2−(n+12)2=n2−14. \begin{aligned} f_n(m) &= \frac{n(n+1)}{2} - m(m+1) + (2m-n)m = \frac{n(n+1)}{2} + m^2 - (n+1)m \\ &= \frac{n(n+1)}{2} + \left(m - \frac{n+1}{2}\right)^2 - \left(\frac{n+1}{2}\right)^2 \ge \frac{n(n+1)}{2} - \left(\frac{n+1}{2}\right)^2 = \frac{n^2-1}{4}. \end{aligned}
If n≥13n \ge 13, then this implies fn(x)≥fn(m)≥132−14=42>41f_n(x) \ge f_n(m) \ge \frac{13^2-1}{4} = 42 > 41 for all xx, so that there is no solution. It remains to consider n∈{10,11,12}n \in \{10, 11, 12\}.
* For n=10n = 10, we obtain from above that
f10(32)=55−2−8⋅32=41 f_{10}\left(\frac{3}{2}\right) = 55 - 2 - 8 \cdot \frac{3}{2} = 41
and by the symmetry property f10(192)=41f_{10}\left(\frac{19}{2}\right) = 41. In view of our monotonicity considerations, f10(x)≥41f_{10}(x) \ge 41 for x≤32x \le \frac{3}{2} and x≥192x \ge \frac{19}{2} and f10(x)<41f_{10}(x) < 41 on the remaining interval. So we find that the solution set in this case is (32,192)\left(\frac{3}{2}, \frac{19}{2}\right).
* For n=11n = 11, we have
f11(197)=66−6−7⋅197=41 f_{11}\left(\frac{19}{7}\right) = 66 - 6 - 7 \cdot \frac{19}{7} = 41
and f11(657)=41f_{11}\left(\frac{65}{7}\right) = 41 by symmetry. The same argument as before shows that the solution set is (197,657)\left(\frac{19}{7}, \frac{65}{7}\right) in this case.
* For n=12n = 12, we have
f12(174)=78−20−4⋅174=41 f_{12}\left(\frac{17}{4}\right) = 78 - 20 - 4 \cdot \frac{17}{4} = 41
and f12(354)=41f_{12}\left(\frac{35}{4}\right) = 41 by symmetry. Hence we obtain the solution set (174,354)\left(\frac{17}{4}, \frac{35}{4}\right) in this case.
Let us summarize the solutions:
* 32<x<192\frac{3}{2} < x < \frac{19}{2} for n=10n = 10,
* 197<x<657\frac{19}{7} < x < \frac{65}{7} for n=11n = 11,
* 174<x<354\frac{17}{4} < x < \frac{35}{4} for n=12n = 12,
* no solutions if n≥13n \ge 13.

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.