![](https://cdn.mathpix.com/cropped/2024_12_15_e80179e8f1d0c8dbe641g-01.jpg?height=335&width=372&top_left_y=341&top_left_x=845) # 10th Benelux Mathematical Olympiad Luxembourg, 27th-29th April 2018 ## Problems and Solutions # BxMO 2018: Problems and Solutions ## Problem 1 (a) Determine the minimal value of $$ \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}-2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}-2018\right) $$ where $x$ and $y$ vary over the positive reals. (b) Determine the minimal value of $$ \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}+2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}+2018\right) $$ where $x$ and $y$ vary over the positive reals. (Pierre Haas, Luxembourg) ## Solution Solution 1. By the inequality between arithmetic and quadratic means, $$ \left(x+\frac{1}{y}\right)^{2}+\left(y+\frac{1}{x}\right)^{2} \geqslant \frac{1}{2}\left(x+\frac{1}{y}+y+\frac{1}{x}\right)^{2} $$ with equality if and only if $x+1 / y=y+1 / x$, which holds if $x=y$. It follows that $$ \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y} \pm 2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x} \pm 2018\right) \geqslant \frac{1}{2}\left(x+\frac{1}{y}+y+\frac{1}{x}\right)^{2} \pm 2018\left(x+\frac{1}{y}+y+\frac{1}{x}\right) . $$ The parabola $f(X)=\frac{1}{2} X^{2} \pm 2018 X$ attains its minimal value at $X=\mp 2018$, and increases monotonically away from this minimal value. By the inequality between arithmetic and geometric means, $(x+1 / x)+(y+1 / y) \geqslant 4$ with equality iff $x=y=1$. Hence (a) $\left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}-2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}-2018\right) \geqslant f(2018)=-\frac{2018^{2}}{2}$, and equality is attained if $x=y=u$, where $u+1 / u=1009$, a quadratic equation with discriminant $1009^{2}-4>0$, and that therefore has two real solutions which are clearly positive. (b) $\left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}+2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}+2018\right) \geqslant f(4)=8080$, with equality if and only if $x=y=1$. Remark. It is easy to see that equality is attained in the first inequality if and only if $x=y$. Indeed, if $x \leqslant y$, then $1 / y \leqslant 1 / x$, and so $x+1 / y \lessgtr y+1 / x$. Thus $x+1 / y=y+1 / x$ if and only if $x=y$. This is not required for the solution. Solution 2. By the inequality between arithmetic and geometric means, $x / y+y / x \geqslant 2$, and hence $$ \left(x+\frac{1}{y}\right)^{2}+\left(y+\frac{1}{x}\right)^{2}=x^{2}+\frac{1}{y^{2}}+y^{2}+\frac{1}{x^{2}}+2\left(\frac{x}{y}+\frac{y}{x}\right) \geqslant x^{2}+\frac{1}{x^{2}}+y^{2}+\frac{1}{y^{2}}+4=\left(x+\frac{1}{x}\right)^{2}+\left(y+\frac{1}{y}\right)^{2} $$ with equality if and only if $x=y$. It follows that $$ \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}-K\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}-K\right) \geqslant\left[\left(x+\frac{1}{x}\right)^{2}-K\left(x+\frac{1}{x}\right)\right]+\left[\left(y+\frac{1}{y}\right)^{2}-K\left(y+\frac{1}{y}\right)\right] . $$ ## BxMO 2018: Problems and Solutions Notice that the parabola $f(X)=X^{2}-K X=(X-K / 2)^{2}-K^{2} / 4$ attains its minimum value at $X=K / 2$, and increases monotonically away from this minimal value. Now $x+1 / x, y+1 / y \geqslant 2$, so it follows that $$ \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}-K\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}-K\right) \geqslant\left\{\begin{array}{cl} 2 f(K / 2)=-K^{2} / 2 & \text { if } K / 2 \geqslant 2 \Longleftrightarrow K \geqslant 4 \\ 2 f(2)=4(2-K) & \text { if } K / 2 \leqslant 2 \Longleftrightarrow K \leqslant 4 \end{array}\right. $$ Equality is attained if (and only if) $$ x=y=\frac{K}{4} \pm \sqrt{\frac{K^{2}}{16}-1} \quad(\text { if } K \geqslant 4), \quad x=y=1 \quad(\text { if } K \leqslant 4) $$ and so these lower bounds indeed represent the minimal values. Taking (a) $K=2018$ and (b) $K=-2018$ in this result completes the proof. Solution 3 for part (a). Completing squares, $$ \begin{aligned} \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}-2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}-2018\right) & =\left(x+\frac{1}{y}-1009\right)^{2}+\left(y+\frac{1}{x}-1009\right)^{2}-2 \cdot 1009^{2} \\ & \geqslant-2 \cdot 1009^{2} \end{aligned} $$ with equality if $x+1 / y=y+1 / x=1009$, which holds if $x=y=u$, where $u+1 / u=1009$, a quadratic equation with discriminant $1009^{2}-4>0$, and that therefore has two real solutions which are clearly positive. Remark. As in Solution 1, equality holds if and only if $x=y$, because, if $x \lessgtr y$, then $1 / y \lessgtr 1 / x$, and so $x+1 / y \lessgtr y+1 / x$. Thus $x+1 / y=y+1 / x$ if and only if $x=y$. This is not required for the solution. Solution 4 for part (b). Using the inequality between arithmetic and geometric means, $$ \begin{aligned} \left(x+\frac{1}{y}\right)(x+ & \left.\frac{1}{y}+2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}+2018\right) \\ & =\left(x+\frac{1}{y}\right)^{2}+\left(y+\frac{1}{x}\right)^{2}+2018\left[\left(x+\frac{1}{x}\right)+\left(y+\frac{1}{y}\right)\right] \geqslant 4 \frac{x}{y}+4 \frac{y}{x}+2018(2+2) \end{aligned} $$ But $x / y+y / x \geqslant 2$ by the same inequality, and hence $$ \left(x+\frac{1}{y}\right)\left(x+\frac{1}{y}+2018\right)+\left(y+\frac{1}{x}\right)\left(y+\frac{1}{x}+2018\right) \geqslant 8080 $$ with equality attained if and only if $x=y=1$. ## BxMO 2018: Problems and Solutions ## Problem 2 In the land of Heptanomisma, four different coins and three different banknotes are used, and their denominations are seven different (non-zero) natural numbers. The denomination of the smallest banknote is greater than the sum of the denominations of the four different coins. A tourist has exactly one coin of each denomination and exactly one banknote of each denomination, but he cannot afford the book on numismatics he wishes to buy. However, the mathematically inclined shopkeeper offers to sell the book to the tourist at a price of his choosing, provided that he can pay this price in more than one way. (The tourist can pay a price in more than one way if there are two different subsets of his coins and notes, the denominations of which both add up to this price.) (a) Prove that the tourist can purchase the book if the denomination of each banknote is smaller than 49. (b) Show that the tourist may have to leave the shop empty-handed if the denomination of the largest banknote is 49. (Stijn Cambie, Belgium) ## Solution Let the denominations of the coins and notes be $C_{1}N_{2}+N_{3} \geqslant 96$, which is a contradiction. Solution 2. Consider the hands of exactly one note and any number of (or possibly no) coins, as well as the hand consisting of the two smallest notes only, of value $N_{1}+N_{2}$. Each of these has one of the $N_{3}$ different values $v$ with $N_{1} \leqslant v3$. Considering $50=N_{1}+4$ yields $C_{1}=4$. Now $53=N_{3}+4=N_{2}+6,52=N_{2}+5=N_{1}+6$. Hence $C_{2}=6$ is not possible, so $C_{2}=5$. Then $51=N_{2}+C_{1}=N_{1}+C_{2}$, a contradiction. In the second case, notice that $N_{2}=48$ implies, by the argument in (a), that all the $N_{2}=48$ values $v$ with $N_{1} \leqslant v0$. Then $c>0$ by definition, and so $cy^{\prime}>b$. Hence $S$ lies on line segment $[A H]$. Remark 1. Solutions 1 and 2 for part (b) have not used the fact that $H$ is the orthocentre of triangle $A B C$, and therefore show that the result of (b) remains true if $H$ is replaced with a general point $X$. The first part of the problem is in some sense independent of $H$, too. The argument of solutions 3,5 , and 7 for part (a) can be extended to yield the following result: Let $A B C$ be a triangle, and let $X$ be a point of the plane. Let $D, E$, and $Y$ denote the respective midpoints of $[A B],[A C]$, and $[A X]$. The reflections of $B$ and $C$ in $Y$ are $P$ and $Q$, respectively. Lines $P E$ and $Q D$ intersect on the circumcircle $\omega$ of $A B C$ if and only if $X$ lies on the reflection of $\omega$ in $[B C]$. ## BxMO 2018: Problems and Solutions Remark 2. The intersection points of $P E, Q D$ and $P D, Q E$ are not well-defined if $P, Q, D, E$ lie on a line. In the notation of the analytic solution, this happens when $\frac{b}{2}=b+c$, i.e. $c=-\frac{b}{2}$. Computing the coordinates of $H$ explicitly using $B H \perp A C$ yields $c=a(1-a) / b$, and so $P, Q, D, E$ are aligned if and only if $b^{2}=2 a(a-1)$, which is the equation of a hyperbola passing through $B$ and $C$. (These triangles have an obtuse angle, so this configuration cannot appear for acute-angled triangles.) ![](https://cdn.mathpix.com/cropped/2024_12_15_e80179e8f1d0c8dbe641g-09.jpg?height=500&width=1106&top_left_y=561&top_left_x=475) ## BxMO 2018: Problems and Solutions ## Problem 4 An integer $n \geqslant 2$ having exactly $s$ positive divisors $1=d_{1}1+d_{1}+\cdots+d_{k-1}$. An integer $n \geqslant 2$ is said to be bad if it is not good. (a) Show that there are infinitely many bad integers. (b) Prove that, among any seven consecutive integers all greater than 2 , there are always at least four good integers. (c) Show that there are infinitely many sequences of seven consecutive good integers. (Gerhard Woeginger, Luxembourg) ## Solution (a) Solution 1. We note that $n=2^{m}$ has $m+1$ divisors, $d_{k}=2^{k-1}$ for $1 \leqslant k \leqslant m+1$. Thus $$ 1+d_{1}+\cdots+d_{k-1}=1+\left(2^{k-1}-1\right)=2^{k-1}=d_{k} $$ for each $k \geqslant 2$, and hence each power of 2 is a bad integer. This exhibits infinitely many bad integers. Remark. It is true more generally that If $n=2^{r} m$, where $m$ is a product of (odd) primes each less than $2^{r+1}$, then $n$ is bad. This is an immediate corollary of the previous result and the following observation: If $n=2^{r} m$ is bad, where $m$ is odd, then so is $p n$ for any odd prime $p<2^{r+1}$. Proof. Let $D_{K}>1$ be a divisor of $p n$, so $D_{K}=p$ or $D_{K}=d_{k}$ or $D_{K}=p d_{k}$, where $d_{k}>1$ is a divisor of $n$. In the first case, observe that there exists $t1$ is a divisor of $m$ !, then $D_{K}=d_{k}$ or $D_{K}=q$ or $D_{K}=q d_{k}$, where $d_{k}>1$ is a divisor of $(m-1)$ ! and $q>1$ is a divisor of $m$. In the first case, $\left\{d_{1}, \ldots, d_{k-1}\right\} \subseteq\left\{D_{1}, \ldots, D_{K-1}\right\}$, so, invoking the inductive hypothesis, $D_{K}=d_{k} \leqslant 1+\left(d_{1}+\cdots+d_{k-1}\right) \leqslant 1+\left(D_{1}+\cdots+D_{K-1}\right)$. In the second case, $q \leqslant m+1$, so $1,2, \ldots, q-1 \mid m$ ! and $\{1,2, \ldots, q-1\} \subseteq\left\{D_{1}, \ldots, D_{K-1}\right\}$. But $q^{2}-3 q+2 \geqslant 0$ for $q \geqslant 2$, and hence $$ D_{K}=q \leqslant \frac{q^{2}-q+2}{2}=1+(1+\cdots+q-1) \leqslant 1+\left(D_{1}+\cdots+D_{K-1}\right) $$ In the final case, $\left\{1,2, \ldots, q-1, q d_{1}, \ldots, q d_{k-1}\right\} \subseteq\left\{D_{1}, \ldots, D_{K-1}\right\}$, and so $$ D_{K}=q d_{k} \leqslant q\left(1+d_{1}+\cdots+d_{k-1}\right) \leqslant 1+(1+\cdots+q-1)+\left(q d_{1}+\cdots+q d_{k-1}\right) $$ and so $D_{K} \leqslant 1+\left(D_{1}+\cdots+D_{K-1}\right)$, completing the inductive step. ## BxMO 2018: Problems and Solutions (b) If $n$ is odd, then $d_{1}=1, d_{2}>2=1+d_{1}$, and $n$ is good. Among any seven consecutive positive integers, there are either four odd integers and three even ones, or four even ones and three odd ones. In the first case, these four odd integers are good. In the second case, we have to show that one of the consecutive even integers $n=2 m, n+2=2(m+1), n+4=2(m+2), n+6=2(m+3)$ is good. Notice that even integers of the form $n=2(6 \ell \pm 1)$, for $\ell \geqslant 1$, are good, since $d_{2}=24=1+1+2$, since they are divisible by neither 3 nor 4 . But at least one $m, m+1, m+2, m+3$ is congruent to $\pm 1(\bmod 6)($ and larger than 1 by assumption); this completes the proof. (c) Solution 1. Let $n=12 q$, an even number. By part (b), $n-3, n-2=2(6 q-1), n-1, n+1, n+2=2(6 q+1), n+3$ are good integers. Take $q>29$ to be prime. Then the divisors of $n$ less than $q$ are precisely the divisors of 12 . Now $q>1+(1+2+3+4+6+12)=29$, and so $n$ is good, too. Since there are infinitely many choices of the prime $q$, there are infinitely many sequences of seven consecutive good integers. Solution 2. Let $m=2^{3} \cdot 3^{2} \cdot 5 \cdot 7 \cdot 11 \cdot 13$. For any integer $k>0$, the seven consecutive integers $m k+1, m k+2, \ldots, m k+7$ are good. Indeed, the four odd numbers $m k+1, m k+3, m k+5, m k+7$ are good by part (b). Moreover, | $n$ | $d_{1}$ | $d_{2}$ | $d_{3}$ | $d_{4}$ | $d_{5}$ | | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | $m k+2$ | 1 | 2 | $\geqslant 16$ | | | $\Longrightarrow$ | | $m k+4$ | 1 | 2 | 4 | $\geqslant 16$ | | $\Longrightarrow$ | | $m k+6$ | 1 | 2 | 3 | 6 | $\geqslant 16$ | $\Longrightarrow$ | | $d_{4}>1+d_{1}+d_{2}$, | | | | | | | | $m+d_{2}+d_{3}$, | | | | | | | | $d_{5}>1+d_{1}+d_{2}+d_{3}+d_{4}$, | | | | | | | and so $m k+2, m k+4, m k+6$ are good integers, too. Hence there are infinitely many choices of seven consecutive good integers. Remark. This solution can also be phrased more indirectly in terms of congruence conditions modulo small remainders; the existence of infinitely many appropriate solutions is then guaranteed by the Chinese Remainder Theorem. Solution 3. Let $m=29$ !. For any integer $k>0$, the seven consecutive integers $m k+1, m k+2, \ldots, m k+7$ are good. Indeed, the divisors of these numbers are either at most 7 or at least 30 . But $30>1+(1+2+\cdots+7)=29$, and so these seven integers are good, giving infinitely many sequences of seven consecutive good integers. Remark. The ideas underlying these different solutions can be extended to show that there are arbitrarily long runs of consecutive good integers: For each integer $N$, there exist $N$ consecutive good integers. Proof 1 . Let $M=2+(1+2+\cdots+N)$, and let $m=M$ !. Any divisor of any of the $N$ consecutive integers $m+1, m+2, \ldots, m+N$ is either at most $N$ or at least $M$. But $M>1+(1+2+\cdots+N)$, and so these $N$ consecutive integers are good. Proof 2. Let $2=p_{1}\sigma(P)$, let $m=p_{1} p_{2} \cdots p_{t} P$. The $N$ consecutive integers $m+1, m+2, \ldots, m+N$ are all good. Indeed, for $1 \leqslant k \leqslant N$, any divisor of $m+k$ is either at most $k$ or at least $p_{t+1}$. But $p_{t+1}>1+p_{t}>1+\sigma(P)>1+\sigma(k)$, since $k \mid P$. This completes the proof.