![](https://cdn.mathpix.com/cropped/2024_06_05_5764d1cf8319bc2123f3g-01.jpg?height=408&width=1496&top_left_y=133&top_left_x=286) Sth MIDDLE EURDPEAN MATHEMATICAL DLYMPIAD VARAŽDIN 2011 CROATIA # PROBLEMS AND SOLUTIONS 5th Middle European Mathematical Olympiad Varaždin, Croatia, September 2011 ## ALGEBRA ## I 1 (Vjekoslav Kovač, Croatia) Initially, only the integer 44 is written on a board. An integer $a$ on the board can be replaced with four pairwise different integers $a_{1}, a_{2}, a_{3}, a_{4}$ such that the arithmetic mean $\frac{1}{4}\left(a_{1}+a_{2}+a_{3}+a_{4}\right)$ of the four new integers is equal to the number $a$. In a step we simultaneously replace all the integers on the board in the above way. After 30 steps we end up with $n=4^{30}$ integers $b_{1}, b_{2}, \ldots, b_{n}$ on the board. Prove that $$ \frac{b_{1}^{2}+b_{2}^{2}+\cdots+b_{n}^{2}}{n} \geqslant 2011 $$ ## First solution Let us first prove an auxiliary statement. Lemma. If $a_{1}, a_{2}, a_{3}, a_{4}$ are four different integers such that their average $a=\left(a_{1}+a_{2}+\right.$ $\left.a_{3}+a_{4}\right) / 4$ is also an integer, then $$ \frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}}{4}-a^{2} \geqslant \frac{5}{2} $$ Proof. Note that the expression on the left hand side can be transformed as $$ \begin{aligned} & \frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}}{4}-a^{2} \\ & =\frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}-8 a^{2}+4 a^{2}}{4} \\ & =\frac{a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}-2 a\left(a_{1}+a_{2}+a_{3}+a_{4}\right)+4 a^{2}}{4} \\ & =\frac{\left(a_{1}-a\right)^{2}+\left(a_{2}-a\right)^{2}+\left(a_{3}-a\right)^{2}+\left(a_{4}-a\right)^{2}}{4} \end{aligned} $$ Now, $a_{1}-a, a_{2}-a, a_{3}-a, a_{4}-a$ are four different integers that add up to 0 . We claim that sum of their squares is at least 10. If none of these integers is 0 , then that sum is at least $1^{2}+(-1)^{2}+2^{2}+(-2)^{2}=10$. On the other hand, if one of the integers is 0 , than the remaining three cannot be only from the set $\{1,-1,2,-2\}$, because no three different elements of that set add up to 0 . Therefore, the sum of their squares is at least $3^{2}+1^{2}+(-1)^{2}=11$. This completes the proof of the lemma. Returning to the given problem, we denote by $S_{k}$ the average of squares of the numbers on the board after $k$ steps. More precisely, $$ S_{k}=\frac{b_{k, 1}^{2}+b_{k, 2}^{2}+\cdots+b_{k, 4^{k}}^{2}}{4^{k}} $$ where $b_{k, 1}, b_{k, 2}, \ldots, b_{k, 4^{k}}$ are the numbers appearing on the board after the operation is performed $k$ times. Applying the above lemma to each of the numbers, adding up these inequalities, and dividing by $4^{k}$, we obtain $S_{k+1}-S_{k} \geqslant \frac{5}{2}$, so in particular $$ S_{30} \geqslant S_{0}+30 \cdot \frac{5}{2}=44^{2}+30 \cdot \frac{5}{2}=2011 $$ ## Second solution (by Michat Zajạc, Poland) Let $a_{0,1}=44$ and let $a_{i, 1}, a_{i, 2}, \ldots, a_{i, 4^{i}}$ be number written on the board after $i$ steps. In $(i+1)$-st step we replace the number $a_{i, k}$ with $a_{i+1,4 k-3}, a_{i+1,4 k-2}, a_{i+1,4 k-1}$ and $a_{i+1,4 k}$. We denote $$ S_{i}=\frac{\sum_{j=1}^{4} a_{i, j}^{2}}{4^{i}} $$ We want to prove that $S_{i+1} \geqslant S_{i}+2.5$, with equality occuring when each number $a$ is replaced by $(a-2, a-1, a+1, a+2)$. For a given number $a$, let $\left(b_{1}, b_{2}, b_{3}, b_{4}\right)$ be an arbitrary quadruple of integers that satisfy the conditions that $b_{1}+b_{2}+b_{3}+b_{4}=4 a$ and $b_{1}>b_{2}>b_{3}>b_{4}$. We will prove that $\left(b_{1}, b_{2}, b_{3}, b_{4}\right)$ majorizes $(a+2, a+1, a-1, a-2)$. First we conclude that $b_{1} \geqslant a+2$, otherwise $$ b_{1}+b_{2}+b_{3}+b_{4} \leqslant(a+1)+a+(a-1)+(a-2)<4 a . $$ Next, it holds that $b_{1}+b_{2} \geqslant(a+2)+(a+1)=2 a+3$. Otherwise, it holds that $b_{1}+b_{2} \leqslant 2 a+2$ and thus $b_{2} \leqslant a, b_{3} \leqslant a-1$ and $b_{4} \leqslant a-2$. This implies that $b_{1}+b_{2}+b_{3}+b_{4} \leqslant 4 a-1<4 a$, which is false. Finally, in order to prove that $b_{1}+b_{2}+b_{3} \geqslant 3 a+2$, which is equivalent to $b_{4} \leqslant a-2$, we assume otherwise: $b_{4} \geqslant a-1$ and we arrive to contradiction in the same way as in the first case (in this case the sum is strictly bigger than $4 a$ ). Thus, we have proved that $\left(b_{1}, b_{2}, b_{3}, b_{4}\right) \succ(a+2, a+1, a-1, a-2)$. The function $f(x)=x^{2}$ is convex (because $f^{\prime \prime}(x)=2>0$ ) and by Karamata inequality it holds that: $$ b_{1}^{2}+b_{2}^{2}+b_{3}^{2}+b_{4}^{2} \geqslant(a+2)^{2}+(a+1)^{2}+(a-1)^{2}+(a-2)^{2}=4 a^{2}+10 $$ Similar to first solution, we conclude that $S_{i+1} \geqslant S_{i}+2.5$ and finally by inductive argument: $$ S_{30} \geqslant S_{0}+30 \cdot 2.5=2011 $$ ## T 1 (Tonći Kokan, Croatia) Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that the equality $$ y^{2} f(x)+x^{2} f(y)+x y=x y f(x+y)+x^{2}+y^{2} $$ holds for all $x, y \in \mathbb{R}$, where $\mathbb{R}$ is the set of real numbers. ## First solution Substituting $y=0$ we find that $x^{2} f(0)=x^{2}$ holds for all real numbers $x$ which implies $f(0)=1$. Let us introduce a new function $g: \mathbb{R} \rightarrow \mathbb{R}$ given by $g(x)=f(x)-1$. Equation from the problem becomes $$ y^{2} g(x)+x^{2} g(y)=x y g(x+y) $$ while $g(0)=0$. Denoting $c=g(1)$ and introducing another function $h: \mathbb{R} \rightarrow \mathbb{R}$ defined by $h(x)=g(x)-c x$, we obviously get $h(0)=h(1)=0$, whereas the equation that must be satisfied is now $$ y^{2} h(x)+x^{2} h(y)=x y h(x+y) $$ Substituting $x=y=1$ in the last equation we get $h(2)=0$, while another substitution $x=-1, y=1$ gives $h(-1)=0$. Let us suppose that there exists a real number $y_{0}$ such that $h\left(y_{0}\right) \neq 0$. Putting $x=1, y=y_{0}+1$ in (2) we get: $$ h\left(y_{0}+1\right)=\left(y_{0}+1\right) h\left(y_{0}+2\right), \quad \text { or } \quad h\left(y_{0}+2\right)=\frac{h\left(y_{0}+1\right)}{y_{0}+1} $$ On the other hand, substituting $x=2, y=y_{0}$ in (2) gives $$ 4 h\left(y_{0}\right)=2 y_{0} h\left(y_{0}+2\right), \quad \text { i.e. } \quad h\left(y_{0}+2\right)=\frac{2 h\left(y_{0}\right)}{y_{0}} $$ Finally, putting $x=1, y=y_{0}$ in (2) leads to: $$ h\left(y_{0}\right)=y_{0} h\left(y_{0}+1\right), \quad \text { or } \quad h\left(y_{0}+1\right)=\frac{h\left(y_{0}\right)}{y_{0}} $$ From (3), (4) and (5) it follows that $y_{0}=-\frac{1}{2}$. However, substituting $x=y=-\frac{1}{2}$ in (2) and using $h(-1)=0$ we arrive at $h\left(-\frac{1}{2}\right)=0$, which is a contradiction. We conclude that $h(x)=0$ holds for all $x \in \mathbb{R}$ and thus $f(x)=c x+1$ is the only solution. We check that this really is the solution for every real number $c$. ## Second solution (by Matija Bašić, coordinator) We define function $h$ as in the first solution of the problem. Hence, we have $h(0)=0$, $h(1)=0$, $$ y^{2} h(x)+x^{2} h(y)=x y h(x+y) \text {. } $$ Substituting $y=x: \quad 2 x^{2} h(x)=x^{2} h(2 x), \forall x, \quad$ or $h(2 x)=2 h(x)$ for all $x$. Thus $h(2)=0$. Substituting $y=-x: \quad x^{2}(h(x)+h(-x))=x^{2} h(0)=0, \forall x, \quad$ which gives $$ h(-x)=-h(x), \quad \forall x $$ Thus $h(-1)=0$. Put $y=1$ in $(*): \quad h(x)+x^{2} h(1)=x h(x+1)$ i.e. $$ h(x)=x h(x+1) $$ In (1) we change $x \rightarrow x+1$ $$ h(x+1)=(x+1) h(x+2) $$ Put $y=2$ in $(*): \quad 4 h(x)+x^{2} h(2)=2 x h(x+2) \quad$ i.e. $$ 2 h(x)=x h(x+2) $$ Now we conclude $$ \begin{aligned} 2(x+1) h(x) & =(3)=x(x+1) h(x+2) \\ & =(2)=x h(x+1) \\ & =(1)=h(x) \end{aligned} $$ Therefore, $$ 2(x+1) h(x)=h(x), \quad \forall x $$ so $h(x)=0$ or $2(x+1)=1$ for all $x$. Obviously, $h(x)=0$ for all $x \neq-\frac{1}{2}$. Moreover, $2 h\left(-\frac{1}{2}\right)=h\left(2 \cdot\left(-\frac{1}{2}\right)\right)=h(-1)=0$ so $h\left(-\frac{1}{2}\right)=0$ holds as well. We have proved that $h(x)=0$ for all $x \in \mathbb{R}$, hence, $g(x)=c x, f(x)=c x+1$. Direct check shows that $f(x)=c x+1$ is the solution of the given functional equation for all $c \in \mathbb{R}$. ## Third solution (by Klemen Šivic, Slovenian leader) As in the first solution we obtain $f(0)=1$ and we define $g(x)=f(x)-1$. Then $g(0)=0$ and $$ g(x+y)=\frac{y}{x} g(x)+\frac{x}{y} g(y) \quad \text { for } x, y \neq 0 $$ Therefore $g(x+y+z)=\frac{y+z}{x} g(x)+\frac{x}{y+z} g(y+z)=\frac{y+z}{x} g(x)+\frac{x y}{z(y+z)} g(z)+\frac{x z}{y(y+z)} g(y)$ for all nonzero $x, y$ and $z$ such that $z \neq-y$. However, since the left side of the above equation is symmetric in $x$ and $z$, we obtain that $$ \frac{y+z}{x} g(x)+\frac{x y}{z(y+z)} g(z)+\frac{x z}{y(y+z)} g(y)=\frac{y+x}{z} g(z)+\frac{z y}{x(y+x)} g(x)+\frac{x z}{y(y+x)} g(y) $$ for all nonzero $x, y$ and $z$ such that $y \neq-x$ and $y \neq-z$. In this equation we set $y=z=1$ and we obtain $$ \frac{2 g(x)}{x}+x g(1)=\frac{1}{x(x+1)} g(x)+\left(x+1+\frac{x}{x+1}\right) g(1) \quad \text { for all } x \neq 0,-1 $$ i.e. $$ \frac{2 x+1}{x(x+1)} g(x)=\frac{2 x+1}{x+1} g(1) \quad \text { for all } x \neq 0,-1 $$ Therefore $$ g(x)=g(1) x \quad \text { for all } x \neq 0,-1,-\frac{1}{2} $$ Clearly, the above equation holds also for $x=0$. If we set $x=1$ and $y=-1$ into the equation (1), we obtain $g(-1)-g(1)$, and if we set $x=y=-\frac{1}{2}$, then we obtain $-g(1)=g(-1)=2 g\left(-\frac{1}{2}\right)$, therefore $g\left(-\frac{1}{2}\right)=-\frac{g(1)}{2}$. Hence $g(x)=g(1) x$ for all $x \in \mathbb{R}$. $f(1)=a$ can be arbitrary, therefore all solutions are functions $g(x)=a x$, or equivalently, $f(x)=a x+1$ for all $x \in \mathbb{R}$, where $a \in \mathbb{R}$ is arbitrary. ## Fourth solution (by team Hungary) Similar to the first solution, we introduce the function $g(x)$ and prove that $g(0)=0$ and $g(-x)=-g(x)$. Inserting $y=1$ and $y=-1$ into the equation for $g(x)$ we ge: $$ \begin{aligned} g(x)+x^{2} g(1) & =x g(x+1) \\ g(x)+x^{2} g(-1) & =-x g(x-1) \end{aligned} $$ Inserting $x+1$ instead of $x$ into (2) we get: $$ g(x+1)+(x+1)^{2} g(-1)=-(x+1) g(x) $$ From (2) and (3) we get represent $g(x+1)$ in two ways: $$ g(x+1)=\frac{g(x)+x^{2} g(1)}{x}=-(x+1) g(x)-(x+1)^{2} g(-1) \quad \text { for } x \neq 0 $$ Solving for $g(x)$ and using $g(-1)=-g(1)$ we get: $$ g(x)\left(x^{2}+x+1\right)=g(1) x\left(x^{2}+x+1\right) $$ Since $x^{2}+x+1>0$ for all $x \in \mathbb{R}$ we get $g(x)=g(1) x$ and $f(x)=c x+1$. Direct check shows that this is, indeed, the solution of the given functional equation for all $c \in \mathbb{R}$. ## T 2 (Kristina Ana Škreb, Croatia) Let $a, b, c$ be positive real numbers such that $$ \frac{a}{1+a}+\frac{b}{1+b}+\frac{c}{1+c}=2 $$ Prove that $$ \frac{\sqrt{a}+\sqrt{b}+\sqrt{c}}{2} \geqslant \frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}} $$ ## First solution Note that the condition of the problem is equivalent to $$ \frac{1}{1+a}+\frac{1}{1+b}+\frac{1}{1+c}=1 $$ We want to prove that $$ \begin{gathered} \frac{\sqrt{a}+\sqrt{b}+\sqrt{c}}{2} \geqslant \frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}} \\ \Longleftrightarrow \quad \sqrt{a}+\sqrt{b}+\sqrt{c} \geqslant 2\left(\frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}}\right) \\ \Longleftrightarrow \quad\left(\sqrt{a}+\frac{1}{\sqrt{a}}\right)+\left(\sqrt{b}+\frac{1}{\sqrt{b}}\right)+\left(\sqrt{c}+\frac{1}{\sqrt{c}}\right) \geqslant 3\left(\frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}}\right) \\ \Longleftrightarrow \quad \frac{a+1}{\sqrt{a}}+\frac{b+1}{\sqrt{b}}+\frac{c+1}{\sqrt{c}} \geqslant 3\left(\frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}}\right) \end{gathered} $$ From (1) we see that at most one of the numbers $a, b$, and $c$ can be strictly smaller than 1. (Otherwise, we would have $\frac{1}{1+a}+\frac{1}{1+b}+\frac{1}{1+c}>\frac{1}{2}+\frac{1}{2}=1$.) Without loss of generality we can take $a \geqslant b \geqslant c$. Case 1. $a \geqslant b \geqslant c \geqslant 1$ We have $$ \sqrt{a}(\sqrt{a b}-1) \geqslant \sqrt{b}(\sqrt{a b}-1) \quad \Longrightarrow \quad \frac{a+1}{\sqrt{a}} \geqslant \frac{b+1}{\sqrt{b}} $$ and also $$ \sqrt{b}(\sqrt{b c}-1) \geqslant \sqrt{c}(\sqrt{b c}-1) \quad \Longrightarrow \quad \frac{b+1}{\sqrt{b}} \geqslant \frac{c+1}{\sqrt{c}} $$ Case 2. $a \geqslant b \geqslant 1$, and $c<1$ The same way as in Case 1 , we get $\frac{a+1}{\sqrt{a}} \geqslant \frac{b+1}{\sqrt{b}}$. Since $a, b$, and $c$ are positive numbers, (1) implies $$ \frac{1}{1+b} \leqslant 1-\frac{1}{1+c}=\frac{c}{1+c} \quad \Longrightarrow \quad b c \geqslant 1 \quad \Longrightarrow \quad b \geqslant \frac{1}{c} $$ And this gives $$ \sqrt{b}\left(\sqrt{\frac{b}{c}}-1\right) \geqslant \sqrt{\frac{1}{c}}\left(\sqrt{\frac{b}{c}}-1\right) \Longrightarrow \frac{b+1}{\sqrt{b}} \geqslant \frac{c+1}{\sqrt{c}} $$ We have showed that $$ a \geqslant b \geqslant c \quad \Longrightarrow \quad \frac{a+1}{\sqrt{a}} \geqslant \frac{b+1}{\sqrt{b}} \geqslant \frac{c+1}{\sqrt{c}} $$ and $$ a \geqslant b \geqslant c \quad \Longrightarrow \quad \frac{1}{1+a} \leqslant \frac{1}{1+b} \leqslant \frac{1}{1+c} $$ hold. Now (3), (4) and the Chebyshev inequality imply $$ \begin{aligned} \frac{a+1}{\sqrt{a}}+\frac{b+1}{\sqrt{b}}+\frac{c+1}{\sqrt{c}} & =\left(\frac{a+1}{\sqrt{a}}+\frac{b+1}{\sqrt{b}}+\frac{c+1}{\sqrt{c}}\right)\left(\frac{1}{1+a}+\frac{1}{1+b}+\frac{1}{1+c}\right) \\ & \geqslant 3\left(\frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}}\right) \end{aligned} $$ which is exactly (2). ## Second solution (by Klemen Šivic, Slovenian leader) We make a substitution $x=\frac{1}{a+1}, y=\frac{1}{b+1}, z=\frac{1}{c+1}$. The condition $$ \frac{1}{1+a}+\frac{1}{1+b}+\frac{1}{1+c}=1 $$ is then equivalent to $$ x+y+z=1 $$ and the original variables can be expressed as $a=\frac{1}{x}-1=\frac{1-x}{x}=\frac{y+z}{x}, b=\frac{x+z}{y}$ and $c=\frac{x+y}{z}$. The inequality $$ \frac{\sqrt{a}+\sqrt{b}+\sqrt{c}}{2} \geqslant \frac{1}{\sqrt{a}}+\frac{1}{\sqrt{b}}+\frac{1}{\sqrt{c}} $$ is then equivalent to $$ \sqrt{\frac{x+y}{2 z}}+\sqrt{\frac{y+z}{2 x}}+\sqrt{\frac{z+x}{2 y}} \geqslant \sqrt{\frac{2 x}{y+z}}+\sqrt{\frac{2 y}{z+x}}+\sqrt{\frac{2 z}{y+x}} $$ We will prove that this inequality holds for all positive numbers $x, y$ and $z$. We make a substitution $p=x+y, q=y+z, r=z+x$. Then $p, q$ and $r$ are sides of a triangle and we have to prove that $$ \sqrt{\frac{p}{q+r-p}}+\sqrt{\frac{q}{r+p-q}}+\sqrt{\frac{r}{p+q-r}} \geqslant \sqrt{\frac{p+q-r}{r}}+\sqrt{\frac{q+r-p}{p}}+\sqrt{\frac{r+p-q}{q}} $$ Since $p, q$ and $r$ are sides of a triangle, we can write $p=2 R \sin \alpha, q=2 R \sin \beta$ and $r=2 R \sin \gamma$, where $R$ is the circumradius and $\alpha, \beta$ and $\gamma$ angles of the triangle with sides $p, q$ and $r$. Then $$ \begin{gathered} \sqrt{\frac{p}{q+r-p}}=\sqrt{\frac{\sin \alpha}{\sin \beta+\sin \gamma-\sin \alpha}}=\sqrt{\frac{\sin (\beta+\gamma)}{\sin \beta+\sin \gamma-\sin (\beta+\gamma)}}= \\ \quad=\sqrt{\frac{2 \sin \frac{\beta+\gamma}{2} \cos \frac{\beta+\gamma}{2}}{2 \sin \frac{\beta+\gamma}{2}\left(\cos \frac{\beta-\gamma}{2}-\cos \frac{\beta+\gamma}{2}\right)}}=\sqrt{\frac{\sin \frac{\alpha}{2}}{2 \sin \frac{\beta}{2} \sin \frac{\gamma}{2}}} \end{gathered} $$ Similarly we compute the other terms in (1), therefore (1) is equivalent to $$ \begin{aligned} & \sqrt{\frac{\sin \frac{\alpha}{2}}{2 \sin \frac{\beta}{2} \sin \frac{\gamma}{2}}}+\sqrt{\frac{\sin \frac{\beta}{2}}{2 \sin \frac{\gamma}{2} \sin \frac{\alpha}{2}}}+\sqrt{\frac{\sin \frac{\gamma}{2}}{2 \sin \frac{\alpha}{2} \sin \frac{\beta}{2}}} \\ & \quad \geqslant \sqrt{\frac{2 \sin \frac{\alpha}{2} \sin \frac{\beta}{2}}{\sin \frac{\gamma}{2}}}+\sqrt{\frac{2 \sin \frac{\beta}{2} \sin \frac{\gamma}{2}}{\sin \frac{\alpha}{2}}}+\sqrt{\frac{2 \sin \frac{\gamma}{2} \sin \frac{\alpha}{2}}{\sin \frac{\beta}{2}}} \end{aligned} $$ or equivalently, to $$ \begin{aligned} \sin \frac{\alpha}{2}+\sin \frac{\beta}{2}+\sin \frac{\gamma}{2} & \geqslant 2\left(\sin \frac{\alpha}{2} \sin \frac{\beta}{2}+\sin \frac{\alpha}{2} \sin \frac{\gamma}{2}+\sin \frac{\beta}{2} \sin \frac{\gamma}{2}\right) \\ & =\left(\sin \frac{\alpha}{2}+\sin \frac{\beta}{2}+\sin \frac{\gamma}{2}\right)^{2}-\left(\sin ^{2} \frac{\alpha}{2}+\sin ^{2} \frac{\beta}{2}+\sin ^{2} \frac{\gamma}{2}\right) \end{aligned} $$ Since $\sin x$ is concave function on $(0, \pi)$, Jensen's inequality implies that $$ \sin \frac{\alpha}{2}+\sin \frac{\beta}{2}+\sin \frac{\gamma}{2} \leqslant 3 \sin \frac{\alpha+\beta+\gamma}{6}=3 \sin \frac{\pi}{6}=\frac{3}{2} $$ Therefore $$ \begin{aligned} \sin \frac{\alpha}{2}+\sin \frac{\beta}{2}+\sin \frac{\gamma}{2} & \geqslant \frac{2}{3}\left(\sin \frac{\alpha}{2}+\sin \frac{\beta}{2}+\sin \frac{\gamma}{2}\right)^{2} \\ & \geqslant\left(\sin \frac{\alpha}{2}+\sin \frac{\beta}{2}+\sin \frac{\gamma}{2}\right)^{2}-\left(\sin ^{2} \frac{\alpha}{2}+\sin ^{2} \frac{\beta}{2}+\sin ^{2} \frac{\gamma}{2}\right) \end{aligned} $$ where at the end we used the arithmetic-quadratic mean. Therefore the inequality is proved. ## Third solution (by team Croatia) Let $a=2 x, b=2 y, c=2 z$. Then our condition is equivalent to : $$ \frac{x}{1+2 x}+\frac{y}{1+2 y}+\frac{z}{1+2 z}=1 \quad \Longleftrightarrow \quad \frac{1}{1+2 x}+\frac{1}{1+2 y}+\frac{1}{1+2 z}=2 $$ and we need to prove that $$ \sqrt{x}+\sqrt{y}+\sqrt{z} \geqslant \frac{1}{\sqrt{x}}+\frac{1}{\sqrt{y}}+\frac{1}{\sqrt{z}} $$ which is equivalent to : $$ \sum_{c y c} \frac{x-1}{\sqrt{x}} \geqslant 0 \Longleftrightarrow \sum_{c y c} \frac{x-1}{2 x+1} \cdot \frac{2 x+1}{\sqrt{x}} \geqslant 0 $$ Since this inequality is symmetric, we can assume $x \geqslant y \geqslant z$. We prove that then: $$ \frac{x-1}{2 x+1} \geqslant \frac{y-1}{2 y+1} \geqslant \frac{z-1}{2 z+1} $$ and $$ \frac{2 x+1}{\sqrt{x}} \geqslant \frac{2 y+1}{\sqrt{y}} \geqslant \frac{2 z+1}{\sqrt{z}} $$ In order to prove (1) we note that: $$ \frac{x-1}{2 x+1} \geqslant \frac{y-1}{2 y+1} \Longleftrightarrow 3 x \geqslant 3 y $$ which holds. The same argument holds for $y$ and $z$. In order to prove (2) we factor the inequality in the following equivalent way: $$ (\sqrt{x}-\sqrt{y})(2 \sqrt{x y}-1) \geqslant 0 $$ By the assumption, $\sqrt{x}-\sqrt{y} \geqslant 0$ thus we need to prove that $2 \sqrt{x y}-1 \geqslant 0$. Assume the opposite, ie. that $4 x y<1$. Then: $$ \frac{1}{1+2 x}+\frac{1}{1+2 y}=\frac{2(1+x+y)}{1+2(x+y)+4 x y}=1+\frac{1-4 x y}{(1+2 x)(1+2 y)}>1 $$ which contradicts the condition. We have proven that triplets $$ \left(\frac{x-1}{2 x+1}, \frac{y-1}{2 y+1}, \frac{z-1}{2 z+1}\right) \quad \text { and } \quad\left(\frac{2 x+1}{\sqrt{x}}, \frac{2 y+1}{\sqrt{y}}, \frac{2 z+1}{\sqrt{z}}\right) $$ are ordered in the same way thus by Chebyshev inequality we have: $$ \sum_{\text {cyc }}\left(\frac{x-1}{2 x+1} \cdot \frac{2 x+1}{\sqrt{x}}\right) \geqslant \frac{1}{3} \sum_{\text {cyc }} \frac{x-1}{2 x+1} \cdot \sum_{\text {cyc }} \frac{2 x+1}{\sqrt{x}}=0 $$ ## COMBINATORICS ## I 2 (Tomislav Pejković, Croatia) Let $n \geqslant 3$ be an integer. John and Mary play the following game: First John labels the sides of a regular $n$-gon with the numbers $1,2, \ldots, n$ in whatever order he wants, using each number exactly once. Then Mary divides this $n$-gon into triangles by drawing $n-3$ diagonals which do not intersect each other inside the $n$-gon. All these diagonals are labeled with number 1. Into each of the triangles the product of the numbers on its sides is written. Let $S$ be the sum of those $n-2$ products. Determine the value of $S$ if Mary wants the number $S$ to be as small as possible and John wants $S$ to be as large as possible and if they both make the best possible choices. ## Solution (by Rudi Mrazović, coordinator) For $n=3$ the answer is 6 . Suppose $n \geqslant 4$. It is obvious that in each triangulation there are at least two triangles that share two sides with the polygon. We will prove that it is always best for Mary to choose a triangulation for which there is no more than two triangles of this kind. We call a triangle in a triangulation bad if all of its sides are diagonals of the polygon. First we prove that Mary can choose an optimal triangulation that contains no bad triangles. Assume on the contrary that every optimal triangulation contains a bad triangle. For an optimal triangulation $\mathcal{T}$ let $d(\mathcal{T})$ be the length of the smallest side of all bad triangles in $\mathcal{T}$. Among all optimal triangulations with minimal number of bad triangles let $\mathcal{T}_{0}$ be such that $d\left(\mathcal{T}_{0}\right)$ is minimal. Consider a bad triangle $A B C$ in $\mathcal{T}_{0}$ such that $|A B|=d\left(\mathcal{T}_{0}\right)$. Let $A B D$ be the other triangle of $\mathcal{T}_{0}$ that contains $\overline{A B}$ as one of its sides. Since $D$ lies on the arc $\overparen{A B}$ of the circumcircle of $A B C$ that does not contain $C$ and $\varangle A C B$ is acute, we have $|A D|<|A B|$ and $|B D|<|A B|$. Let $\mathcal{T}_{1}$ be the triangulation obtained from $\mathcal{T}_{0}$ by replacing $\overline{A B}$ with $\overline{C D}$. If the sides $\overline{A D}$ and $\overline{B D}$ have labels $a$ and $b$ respectively, then $$ S\left(\mathcal{T}_{1}\right)-S\left(\mathcal{T}_{0}\right)=a+b-a b-1=-(a-1)(b-1) \leqslant 0 $$ Because $\mathcal{T}_{0}$ is optimal triangulation, we conclude that $\mathcal{T}_{1}$ is also optimal. Since $\mathcal{T}_{0}$ has the minimal number of bad triangles at least one of the segments $\overline{A D}$ and $\overline{B D}$ should be a diagonal, but then $d\left(\mathcal{T}_{1}\right)$ is less than $d\left(\mathcal{T}_{0}\right)$ what is a contradiction. Now that we know that Mary can choose an optimal triangulation that contains no bad triangles, we easily conclude that in a such triangulation there are exactly two triangles that share two sides with the polygon. If we denote by $x_{1}$ (respectively $x_{2}$ ) the number of triangles that have exactly one (respectively two) of their sides being the sides of the polygon, then $x_{1}+x_{2}=n-2$ and $x_{1}+2 x_{2}=n$, so $x_{2}=2$. Mary's strategy is to choose these two triangles so that the side of the polygon labeled with 1 is contained in one of these triangles and the side labeled with 2 is contained in the other. By this strategy Mary makes sure that $$ \begin{aligned} S & \leqslant \max \left\{\frac{n(n+1)}{2}-(1+2+n+n-1)+1 \cdot n+2 \cdot(n-1)\right. \\ & \left.\frac{n(n+1)}{2}-(1+2+n+n-1)+1 \cdot(n-1)+2 \cdot n\right\} \\ & \frac{n^{2}+3 n-6}{2} \end{aligned} $$ On the other hand, John can force Mary to achieve exactly this bound by labeling the sides of the polygon in the following order $$ 1, n-1,4, n-3,5, \ldots, n-2,3, n, 2 $$ Thus, the answer to our problem is $S=\frac{n^{2}+3 n-6}{2}$, for each $n \geqslant 3$. ## T 3 (Viktor Harangi, Hungary) For an integer $n \geqslant 3$, let $\mathcal{M}$ be the set $\{(x, y) \mid x, y \in \mathbb{Z}, 1 \leqslant x \leqslant n, 1 \leqslant y \leqslant n\}$ of points in the plane. ( $\mathbb{Z}$ is the set of integers.) What is the maximum possible number of points in a subset $S \subseteq \mathcal{M}$ which does not contain three distinct points being the vertices of a right triangle? ## Solution We will prove that the maximal cardinality of $S$ is $2 n-2$. The set $$ S=\{1\} \times\{2, \ldots, n\} \cup\{2, \ldots, n\} \times\{1\} $$ has cardinality $2 n-2$ and it does not contain three distinct points that form a right triangle. We will show that any subset $S \subset \mathcal{M}$ which does not contain three distinct points that form a right triangle can have at most $2 n-2$ points. For such set $S$ consider its subsets: - $S_{x}$ consists of those points $P=(x, y)$ in $S$ that have unique $x$ coordinate, that is, there exists no $y^{\prime} \neq y$ such that $\left(x, y^{\prime}\right) \in S$. - $S_{y}$ consists of those points $P=(x, y)$ in $S$ that have unique $y$ coordinate, that is, there exists no $x^{\prime} \neq x$ such that $\left(x^{\prime}, y\right) \in S$. We claim that $S=S_{x} \cup S_{y}$. We prove this by contradiction. Assume ther exists a point $P \in S \backslash\left(S_{x} \cup S_{y}\right)$. Since $P \notin S_{x}$, there exists $P_{x} \neq P$ in $S$ with the same $x$ coordinate as $P$. Similarly, there exists $P_{y} \neq P$ in $S$ with the same $y$ coordinate as $P$. Hence $P, P_{x}, P_{y} \in S$ and $\varangle P_{x} P P_{y}=90^{\circ}$, a contradiction. Clearly, $\left|S_{x}\right| \leqslant n$, and if $\left|S_{x}\right|=n$, then $S=S_{x}$. The same holds for $S_{y}$. So, $|S|=n$ or $\left|S_{x}\right|,\left|S_{y}\right| \leqslant n-1$ and $|S| \leqslant\left|S_{x}\right|+\left|S_{y}\right| \leqslant 2 n-2$. It follows that the cardinality of $S$ is at $\operatorname{most} \max (n, 2 n-2)=2 n-2$. ## T 4 (Vjekoslav Kovač, Croatia) Let $n \geqslant 3$ be an integer. At a MEMO-like competition, there are $3 n$ participants, there are $n$ languages spoken, and each participant speaks exactly three different languages. Prove that at least $\left\lceil\frac{2 n}{9}\right\rceil$ of the spoken languages can be chosen in such a way that no participant speaks more than two of the chosen languages. ( $\lceil x\rceil$ is the smallest integer which is greater than or equal to $x$.) ## First solution Consider the classifications of the set of $n$ available languages into easy, medium, and hard languages. There are $3^{n}$ possible classifications in total and we denote by $S$ the set of all possible classifications. For each classification $s \in S$, let $A(s)$ be the number of easy languages and let $B(s)$ be the number of students who speak 3 easy languages. If we add up quantities $A(s)$ over all possible classifications $s \in S$, the resulting sum will be $\sum_{s \in S} A(s)=n 3^{n-1}$. In order to verify that, we realize that the result should be the same for medium and hard languages too, but all three of these sums add up to $$ 3 \sum_{s \in S} A(s)=\text { number of classifications } \times \text { number of languages }=3^{n} \cdot n \text {. } $$ On the other hand, we use double counting to compute the sum of quantities $B(s)$ over all possible classifications $s \in S$. For each student there are $3^{n-3}$ classifications for which he speaks 3 easy languages, as we only have the choice to classify each of the $n-3$ languages that the student does not speak. In two ways, we count the cardinality of the set $$ \{(X, s) \text { : for a classification } s \text { student } X \text { speaks } 3 \text { easy languages }\} $$ to get the identity $$ \sum_{s \in S} B(s)=3 n \cdot 3^{n-3}=n 3^{n-2} $$ We claim that there exists a classification $s \in S$ such that $A(s)-B(s) \geqslant \frac{2 n}{9}$. If we assume on the contrary that $A(s)-B(s)<\frac{2 n}{9}$ for all classifications $s \in S$, then summing over all $3^{n}$ of them would give $$ n 3^{n-1}-n 3^{n-2}=\sum_{s \in S} A(s)-\sum_{s \in S} B(s)<3^{n} \cdot \frac{2 n}{9} $$ i.e. $2 n 3^{n-2}<2 n 3^{n-2}$, which is a contradiction. Let us consider any classification $s \in S$ of languages satisfying $A(s)-B(s) \geqslant \frac{2 n}{9}$. We can first choose all $A(s)$ easy languages. Then we find all $B(s)$ students who can speak 3 of these languages, and for each of them we remove one of the languages the student speaks. This leaves us with a choice of at least $\frac{2 n}{9}$ languages. Remark: Classification of languages simply as easy or hard would not give the desired bound. It would lead to a choice of at least $\frac{n}{8}$ languages only. Taking more than three language classes would not be a better strategy either. ## Solution (by Rudi Mrazović, coordinator) In this proof we will use probabilistic method. Let $p \in[0,1]$. For each language, suppose we choose it with probability $p$ and we make these decisions independently. ${ }^{1}$ Let $A$ be the number of chosen languages (i.e. the number of $1 \mathrm{~s}$ in $\omega$ ) and $B$ the number of students whose all three languages are among chosen ones. Lets calculate the expectations ${ }^{2}$ of these random variables. $$ \begin{aligned} \mathbb{E} A & =\mathbb{E}\left[\sum_{\text {language } l} \mathbf{1}_{\text {we have chosen the language } l}\right]=\sum_{\text {language } l} \mathbb{E}\left[\mathbf{1}_{\text {we have chosen the language } l}\right] \\ & =\sum_{\text {language } l} \mathbb{P}(\text { we have chosen the language } l)=n p \\ \mathbb{E} B & =\mathbb{E}\left[\sum_{\text {student } s} \mathbf{1}_{\text {student's }} s \text { languages are all chosen }\right]=\sum_{\text {student } s} \mathbb{E}\left[\mathbf{1}_{\text {student's } s \text { languages are all chosen }}\right] \\ & \left.=\sum_{\text {student } s} \mathbb{P} \text { (student's } s \text { languages are all chosen }\right)=3 n p^{3} \end{aligned} $$ We will use the following obvious (and easily proved inequality). For arbitrary random variable $X$ we have $$ \mathbb{P}(X \geqslant \mathbb{E} X)>0 $$ For $X=A-B$ we get $$ \mathbb{P}\left(A-B \geqslant n p-3 n p^{3}\right)>0 $$ In this way we have proved that there is a choosing of languages such that $A-B \geqslant$ $n p-3 n p^{3}$. For this choosing for each student that speaks three chosen languages remove one of them. In the end we are left with at least $A-B$ (and thus $n p-3 n p^{3}$ ) languages that do the job. Taking $p=\frac{1}{3}$ we get what we need, i.e. we can choose at least $\left\lceil\frac{2 n}{9}\right\rceil$ such that no student speaks more than two of them. ## Alternative approach (based on the solution by team Poland) We choose $\left\lceil\frac{n}{3}\right\rceil$ languages uniformly and randomly. Similarly to the previous probabilistic solution we show that with positive probability the number of students that speak three of the chosen languages is less or equal to $\left\lfloor\frac{n}{9}\right\rfloor$. Again, use the same trick of removing some of the languages to obtain at least $\left\lceil\frac{2 n}{9}\right\rceil$ of them such that no student speaks three of them.[^0] ## I 3 (Nik Stopar, Slovenia) In a plane the circles $\mathcal{K}_{1}$ and $\mathcal{K}_{2}$ with centers $I_{1}$ and $I_{2}$, respectively, intersect in two points $A$ and $B$. Assume that $\varangle I_{1} A I_{2}$ is obtuse. The tangent to $\mathcal{K}_{1}$ in $A$ intersects $\mathcal{K}_{2}$ again in $C$ and the tangent to $\mathcal{K}_{2}$ in $A$ intersects $\mathcal{K}_{1}$ again in $D$. Let $\mathcal{K}_{3}$ be the circumcircle of the triangle $B C D$. Let $E$ be the midpoint of that arc $C D$ of $\mathcal{K}_{3}$ that contains $B$. The lines $A C$ and $A D$ intersect $\mathcal{K}_{3}$ again in $K$ and $L$, respectively. Prove that the line $A E$ is perpendicular to $K L$. First solution (by Tomislav Pejković, coordinator) ![](https://cdn.mathpix.com/cropped/2024_06_05_5764d1cf8319bc2123f3g-16.jpg?height=973&width=826&top_left_y=924&top_left_x=612) Since $A D$ is tangent to $\mathcal{K}_{2}$, it follows that $\varangle A C B=\varangle D A B$. Similarly, $\varangle A D B=\varangle B A C$. From this we have $\varangle D B C=(\varangle A D B+\varangle D A B)+(\varangle B A C+\varangle A C B)=2(\varangle D A B+\varangle B A C)$, hence $$ \varangle D B C=2 \varangle D A C . $$ By $\widehat{X Y}$ we denote the angle $\varangle X Z Y$ where $Z$ is a point on the circle $\mathcal{K}_{3}$ such that $X, Y, Z$ are ordered counterclockwise. Since $E$ is the midpoint of the arc $C D$ and the points $C, E, D, K$ are concyclic we have $$ \varangle A K E=\frac{1}{2} \overparen{C D}=\frac{1}{2}\left(180^{\circ}-\overparen{D C}\right)=\frac{1}{2}\left(180^{\circ}-\varangle C B D\right)=90^{\circ}-\varangle D A C $$ This means that $K E$ and $A L$ are perpendicular. Analogously, $L E$ and $A K$ are perpendicular and $E$ is the orthocenter of the triangle $A K L$. Hence $A E$ and $K L$ are perpendicular. Remark: We use the notation $\overparen{C D}$ and $\overparen{D C}$ because it provides a convenient way of writing the solution in all cases regardless of the mutual position of the points $A, D, L, C, K$. ## Second solution Since $A D$ is tangent to $\mathcal{K}_{2}$, it follows that $\varangle A C B=\varangle D A B$. Similarly, $\varangle A D B=\varangle B A C$. From this we have $\varangle D B C=(\varangle A D B+\varangle D A B)+(\varangle B A C+\varangle A C B)=2(\varangle D A B+\varangle B A C)$, hence $$ \varangle D E C=\varangle D B C=2 \varangle D A C . $$ Since $|E D|=|E C|$, the point $E$ is the circumcenter of $A C D$. Therefore $|E C|=|E A|=$ $|E D|$. Because the points $C, B, D, K$ are concyclic we have $\varangle K D B=\varangle A C B$. From this and the first arguments of this solution we have that $|D K|=|A K|$. Since we proved $|E A|=$ $|E D|$, we conclude that the line $K E$ is the bisector of the segment $A D$ and therefore perpendicular to it. Analogously, $L E$ and $A K$ are perpendicular and $E$ is the orthocenter of the triangle $A K L$. Hence $A E$ and $K L$ are perpendicular. Remark: The identity $\varangle K D B=\varangle A C B$ holds in all cases regardless of the mutual position of the points $A, D, L, C, K$. ## Third solution (by Karol Kaszuba, Poland) Let us apply inversion with respect to a circle with the center $A$ and radius $r$. Denote the image of point $X$ with $X^{\prime}$. From the assumptions of the problem and well known facts about the inversion directly follows that $A D^{\prime} B^{\prime} C^{\prime}$ is a parallelogram. From the definition of the image of the point by inversion we have $$ \left|E^{\prime} C^{\prime}\right|=|E C| \frac{r^{2}}{|A E||A C|}, \quad\left|E^{\prime} D^{\prime}\right|=|E D| \frac{r^{2}}{|A E||A D|} $$ Dividing these two identities and using that $E$ is the midpoint of the arc $\overparen{C D}$ we obtain $$ \frac{\left|E^{\prime} C^{\prime}\right|}{\left|E^{\prime} D^{\prime}\right|}=\frac{|E C|}{|E D|} \cdot \frac{|A D|}{|A C|}=\frac{|A D|}{|A C|}=\frac{\left|A C^{\prime}\right|}{\left|A D^{\prime}\right|}=\frac{\left|D^{\prime} B^{\prime}\right|}{\left|C^{\prime} B^{\prime}\right|} $$ We consider all points $X$ with the property $$ \frac{\left|X C^{\prime}\right|}{\left|X D^{\prime}\right|}=\frac{\left|D^{\prime} B^{\prime}\right|}{\left|C^{\prime} B^{\prime}\right|} $$ These points form the Apollonius circle and hence there are exactly two such points intersecting the image of $\mathcal{K}_{3}$, each on different arc $\overline{C^{\prime} D^{\prime}}$. One of these is the point $E^{\prime}$. Since the point symmetric to $B^{\prime}$ with respect to the line $C^{\prime} D^{\prime}$ also lies on the same arc $\widehat{C^{\prime} D^{\prime}}$ as $E^{\prime}$ and lies on the mentioned Apollonius circle we conclude that $E^{\prime}$ is symmetric to $B^{\prime}$. This implies $\left|E^{\prime} C^{\prime}\right|=\left|B^{\prime} D^{\prime}\right|=\left|C^{\prime} A^{\prime}\right|$ (first equality holds because of the symmetry the second because $A D^{\prime} B^{\prime} C^{\prime}$ is a parallelogram) and similarly $\left|E^{\prime} D^{\prime}\right|=\left|D^{\prime} A^{\prime}\right|$. Hence $A C^{\prime} E^{\prime} D^{\prime}$ is a deltoid so $A E^{\prime} \perp C^{\prime} D^{\prime}$. This means that $A E^{\prime}$ contains the orthocenter of the triangle $A C^{\prime} D^{\prime}$. It is well know that the orthocenter and circumcenter are isogonal conjugates (lying on the lines which are symmetric with respect to the angle bisector). On the other hand triangles $A C^{\prime} D^{\prime}$ and $A L^{\prime} K^{\prime}$ are inversely similar, so the circumcenter of $A K^{\prime} L^{\prime}$ lies on the same line through $A$ as the orthocenter of $A C^{\prime} D^{\prime}$. All of this shows that $A E^{\prime}$ pass through the circumcenter of $A K^{\prime} L^{\prime}$, so $A E$ is perpendicular to $K L$. ## T 5 (Michal Szabados, Slovakia) Let $A B C D E$ be a convex pentagon with all five sides equal in length. The diagonals $A D$ and $E C$ meet in $S$ with $\varangle A S E=60^{\circ}$. Prove that $A B C D E$ has a pair of parallel sides. ## First solution Let $F$ be such that $D E F$ is an equilateral triangle and the points $B$ and $F$ lay in the opposite half-planes determined by $D E$. Denote $\varangle D A E=\alpha$. Then $\varangle A D E=\alpha$. ![](https://cdn.mathpix.com/cropped/2024_06_05_5764d1cf8319bc2123f3g-19.jpg?height=699&width=805&top_left_y=787&top_left_x=634) Since $\varangle E S D=120^{\circ}$, we have $\varangle D E C=60^{\circ}-\alpha$. Then $\varangle S C D=\varangle E C D$ and $$ \varangle A D C=\varangle S D C=180^{\circ}-\varangle S C D-\varangle D S C=60^{\circ}+\alpha . $$ Obviously $\varangle A D F=60^{\circ}+\alpha$ and because $|F D|=|C D|$ we conclude that $A D F \simeq A D C$. Similarly, $\varangle A E C=\varangle F E C=120^{\circ}-\alpha$, so $A C E \cong F C E$. From these two pairs of equal triangles we conclude $|A F|=|A C|=|F C|$, so both triangles $D E F$ and $A C F$ are equilateral. If $E$ lies on the line $A F$ or $D$ lies on the line $F C$ then $|A C|=2|E D|=|A B|+|B C|$ and $B$ lies on $A C$, which is not possible. Therefore exactly one of the points $D$ and $E$ lays inside the triangle $A C F$. Without loss of generality, let it be the point $E$. The triangles $A E F$ and $A B C$ have their corresponding sides equal therefore $A E F \cong A B C$ and this yields $60^{\circ}=\varangle F A C=\varangle E A B$, so $|E B|=|A B|$. Hence $B C D E$ is a rhombus, i.e., $E D \| B C$. ## Second solution (by Matija Bašić, coordinator) Let $\alpha$ be as in the first solution. In the same way we prove $\varangle A E C=120^{\circ}-\alpha$ and $\varangle C E D=60^{\circ}-\alpha$. Let $F$ be the symmetric image of $A$ with respect to $C E$. We get $\varangle D E F=120^{\circ}-\alpha-\left(60^{\circ}-\alpha\right)=60^{\circ}$. Since $|D E|=|A E|=|E F|$, triangle $D E F$ is equilateral. Because $|A B|=|B C|=|D F|=|C D|$ the triangles $A B C$ and $C D F$ are congruent. If the point $D$ is outside the triangle $A C F$ then this implies that $B$ and $D$ are symmetric with respect to $C E$, so $|B E|=|D E|$. Hence $B C D E$ is a rhombus and $D E \| B C$. If the point $D$ is inside the triangle $A C F$ then the point $E$ is outside that triangle and we see in the similar way that $F$ and $C$ are symmetric with respect to $A D$ and also $B$ and $E$ are symmetric with respect to $A D$. Hence $|B D|=|D E|$ and $A B D E$ is a rhombus, so $D E \| A B$. ## Third solution (by Gerd Baron, Austrian leader) Define the point $B^{\prime}$ such that $B^{\prime} C D E$ is rhombus. If the pentagon $A B^{\prime} C D E$ is convex, denote $\varangle E A D=\varangle E D A=\alpha$. Similarly to other solution we have $\varangle A E B^{\prime}=\varangle A E D-\varangle B^{\prime} E C-\varangle C E D=180^{\circ}-2 \alpha-\left(60^{\circ}-\alpha\right)-\left(60^{\circ}-\alpha\right)=$ $60^{\circ}$. Since $|A E|=\left|B^{\prime} E\right|$, we conclude that $A B^{\prime} E$ is equilateral. Points $B$ and $B^{\prime}$ are on the same side of the line $A C$, so we conclude that $B=B^{\prime}$, so $D E \| A B$. If the pentagon $A B^{\prime} C D E$ is not convex, denote the intersection of $B^{\prime} E$ and $A D$ by $F$ and $\varangle D E C=\varangle D C E=\beta$. Similarly to other solutions we have $A E B^{\prime}=180^{\circ}-\varangle E A F-$ $\varangle E F A=180^{\circ}-\varangle E D A-(\varangle F E C+\varangle F S E)=180^{\circ}-\left(60^{\circ}-\beta\right)-\left(\beta+60^{\circ}\right)=60^{\circ}$. Since $|A E|=\left|B^{\prime} E\right|$, we conclude that $A B^{\prime} E$ is equilateral. Let $B^{\prime \prime}$ be the symmetric image of $B^{\prime}$ with respect to $A C$. Then $A B^{\prime \prime} C B^{\prime}$ is a rhombus and $B=B^{\prime \prime}$, so we conclude $B^{\prime} C \| A B^{\prime \prime}$ and hence $D E \| A B$. ## Fourth solution (by team Slovakia) Denote $\varangle D E C=\varangle D C E=\alpha$ and suppose that all five sides of the pentagon have length a. As in the previous solutions we see that $\varangle S E A=60^{\circ}+\alpha, \varangle S D C=120^{\circ}-\alpha$. Applying the law of sines to the triangles $A S E$ and $C S D$ implies $$ |S A|=\frac{a \sin \left(60^{\circ}+\alpha\right)}{\sin 60^{\circ}}=\frac{a \sin \left(120^{\circ}-\alpha\right)}{\sin 60^{\circ}}=|S C| $$ The triangle $A S C$ is isosceles and $\varangle A C S=\varangle C A S=30^{\circ}$ and we have $|A C|=\sqrt{3} \cdot|A S|$. The law of cosines applied to the triangle $A B C$ gives $$ a^{2}=a^{2}+3|A S|^{2}-2 \sqrt{3} a \cdot|A S| \cdot \cos (\varangle A C B) $$ from where we get $\cos (\varangle A C B)=\frac{3|A S|}{2 \sqrt{3} a}=\sin \left(60^{\circ}+\alpha\right)=\cos \left(30^{\circ}-\alpha\right)$. Since $0<\varangle A C B<90^{\circ}$ we have two possibilities. The first possibility is that $\varangle A C B=30^{\circ}-\alpha$, so $\varangle B C E=\alpha=\varangle C E D$ and hence $B C \| E D$. The second possibility is that $\varangle A C B=\alpha-30^{\circ}$, so $\varangle B A D=60^{\circ}-\alpha=\varangle A D E$ and hence $A B \| E D$. ## Fifth solution (by team Germany) We construct a point $Q$ on the line $S E$ such that $A S Q$ is the equilateral triangle. As in the previous solutions it is easily seen that $\varangle E A Q=\varangle D C S$ and since $\varangle A Q S=60^{\circ}=$ $\varangle C S D$ and $|A E|=|D C|$ we have that the triangle $A E Q$ and $S C D$ are congruent, so $|A S|=|A Q|=|C S|$. This shows that the quadrilateral $A B C S$ is a deltoid, so $\varangle A S B=\varangle B S C=60^{\circ}$ and the point $S$ is the Fermat's point of the triangle $B D E$. Let point $X$ be such that $B E X$ is equilateral and that $S$ and $X$ lie on different sides of the line $E B$. It is well know that the property of the Fermat's point $S$ is that $X, S$ and $D$ are collinear. Also, since $|B X|=|E X|, X$ lies on the bisector of the segment $\overline{B E}$. We have two cases. In the first case, the segment bisector of $\overline{B E}$ coincides with the line $D S$, so $A B D E$ is a rhombus and $A B \| E D$. In the second case, the segment bisector of $\overline{B E}$ intersects the line $A S$ at exactly one point. From the remarks we have given, that point must be $X$ and also $A$, so $A=X$. Then the triangle $B E A$ is equilateral, so $A B C D$ is a rhombus and $B C \| E D$. ## T 6, (Michal Rolínek, Josef Tkadlec, Czech Republic) Let $A B C$ be an acute triangle. Denote by $B_{0}$ and $C_{0}$ the feet of the altitudes from vertices $B$ and $C$, respectively. Let $X$ be a point inside the triangle $A B C$ such that the line $B X$ is tangent to the circumcircle of the triangle $A X C_{0}$ and the line $C X$ is tangent to the circumcircle of the triangle $A X B_{0}$. Show that the line $A X$ is perpendicular to $B C$. ## First solution ![](https://cdn.mathpix.com/cropped/2024_06_05_5764d1cf8319bc2123f3g-22.jpg?height=634&width=805&top_left_y=757&top_left_x=634) Let $A_{0}$ be the foot of the altitude from $A$. The quadrilateral $A C A_{0} C_{0}$ is cyclic because $\varangle A A_{0} C=\varangle A C_{0} C=90^{\circ}$. By the power of the point $B$ with respect to that circle we have $|B A|\left|B C_{0}\right|=\left|B A_{0}\right||B C|$. The power of the point $B$ with respect to the circumcircle of $A X C_{0}$ gives $|B X|^{2}=$ $|B A|\left|B C_{0}\right|$. Similarly, we have $|C X|^{2}=|C A|\left|C B_{0}\right|=\left|C A_{0}\right||B C|$. Summing these two results we have $$ |B X|^{2}+|C X|^{2}=\left|B A_{0}\right||B C|+\left|C A_{0}\right||B C|=|B C|^{2} $$ The converse of Pythagora's theorem implies $\varangle B X C=90^{\circ}$. Moreover, from $|B X|^{2}=\left|B A_{0}\right||B C|$, i.e. $|B X|:|B C|=\left|B A_{0}\right|:|B X|$ we have that the triangles $B X A_{0}$ and $B C X$ are similar. It follows that $$ \varangle B A_{0} X=\varangle B X C=90^{\circ}=\varangle B A_{0} A, $$ so $A_{0}, X$ and $A$ are collinear, so $A X$ and $B C$ are perpendicular. ## Second solution (by Tomislav Pejković, coordinator) Let $H$ be the orthocenter of the triangle $A B C$. Because $B X$ is tangent to the circumcircle of $A X C_{0}$ we have $\varangle B X C_{0}=\varangle B A X$ (the tangent chord angle theorem). Hence the triangles $B A X$ and $B X C_{0}$ are similar. Analogously, the triangle $C A X$ and $C X B_{0}$ are similar. ![](https://cdn.mathpix.com/cropped/2024_06_05_5764d1cf8319bc2123f3g-23.jpg?height=637&width=808&top_left_y=567&top_left_x=630) Observe that the quadrilateral $A C_{0} H B_{0}$ is cyclic because $\varangle A C_{0} H=\varangle A B_{0} H=90^{\circ}$. The power of the point $B$ with respect to circumcircles of $A C_{0} X$ and $A C_{0} H B_{0}$ gives $$ \left|B B_{0}\right||B H|=|B A|\left|B C_{0}\right|=|B X|^{2} $$ From this we conclude that the triangles $B X H$ and $B B_{0} X$ are similar and $\varangle B X H=$ $\varangle X B_{0} H=\varangle X B_{0} C-90^{\circ}$. Since $C A X$ and $C X B_{0}$ are similar we have $\varangle X B_{0} C=\varangle A X C$. We obtained $\varangle B X H=\varangle A X C-90^{\circ}$ and analogously $\varangle C X H=\varangle A X B-90^{\circ}$. Summing up these results we get $$ \varangle B X C=\varangle B X H+\varangle C X H=\varangle A X C+\varangle A X B-180^{\circ}=180^{\circ}-\varangle B X C $$ and so $\varangle B X C=90^{\circ}$. Hence, the points $B, C_{0}, X, B_{0}, C$ all lie on the same circle and we have $$ \varangle A X B=\varangle B C_{0} X=180^{\circ}-\varangle X B_{0} B=180^{\circ}-\varangle B X H $$ which means that $A, X$ and $H$ are collinear. So $A X$ and $B C$ are perpendicular. ## Third solution (by teams Croatia, Hungary and Poland) By power of the point we have $$ |C X|^{2}=|C A|\left|C B_{0}\right|, \quad|B X|^{2}=|B A|\left|B C_{0}\right| $$ so the point $X$ is the intersection of the circle with center $C$ and radius $\sqrt{|C A|\left|C B_{0}\right|}$ and the circle with center $B$ and radius $\sqrt{|B A|\left|B C_{0}\right|}$. There are two such points, but only one is in the interior of the triangle $A B C$, so we conclude that the point $X$ is unique. On the other hand we will prove that the point $Y$ which is the intersection of the circle with diameter $\overline{B C}$ and the altitude from the point $A$ has the same properties as the point $X$, from which we conclude that $X$ and $Y$ are the same point and hence $X$ lies on the line perpendicular to $B C$. Since $\varangle B B_{0} C=90^{\circ}$, the quadrilateral $B C B_{0} Y$ is cyclic and hence $\varangle C B B_{0}=\varangle C Y B_{0}$. On the other hand $\varangle C A Y=90^{\circ}-\varangle A C B=\varangle C B B_{0}=\varangle C Y B_{0}$, so by the tangent-chord theorem the line $C Y$ is tangent to the circumcircle of the triangle $A Y B_{0}$. Analogously, the line $B Y$ is tangent to the circumcircle of the triangle $A Y C_{0}$. Hence, $X=Y$. ## I 4 (Kamil Duszenko, Poland) Let $k$ and $m$, with $k>m$, be positive integers such that the number $k m\left(k^{2}-m^{2}\right)$ is divisible by $k^{3}-m^{3}$. Prove that $(k-m)^{3}>3 k m$. ## First solution Let $d$ be the greatest common divisor of $k$ and $m$. Write $k=d a, m=d b$. Then $a$ and $b$ are relatively prime. Moreover, $a>b$. The number $k m\left(k^{2}-m^{2}\right)=d^{4} a b\left(a^{2}-b^{2}\right)=d^{4} a b(a-b)(a+b)$ is divisible by $k^{3}-m^{3}=$ $d^{3}\left(a^{3}-b^{3}\right)=d^{3}(a-b)\left(a^{2}+a b+b^{2}\right)$, so we have $$ a^{2}+a b+b^{2} \mid d a b(a+b) $$ However, since the numbers $a$ and $b$ are relatively prime, the number $a^{2}+a b+b^{2}$ is relatively prime to $a, b$, and $a+b$. (For example, in case of $a+b$ we note that $a^{2}+a b+b^{2}=(a+b) a+b^{2}$, and $a+b$ is relatively prime to $b$ and hence to $b^{2}$.) Thus $$ a^{2}+a b+b^{2} \mid d $$ This, in particular, yields $d \geqslant a^{2}+a b+b^{2}=(a-b)^{2}+3 a b>3 a b$. Therefore $$ (k-m)^{3}=d^{3}(a-b)^{3} \geqslant d^{3}=d^{2} \cdot d>d^{2} \cdot 3 a b=3 k m $$ ## Second solution (by Wojciech Nadara, Poland) Since $k^{2}+k m+m^{2}$ divides $k m(k+m)$ and $\left(k^{2}+k m+m^{2}\right)(k+m)$ we have that it divides their difference $(k+m)\left(k^{2}+m^{2}\right)=k^{3}+k^{2} m+k m^{2}+m^{3}$. From this we conclude that $k^{2}+k m+m^{2}$ also divides $k^{3}+k^{2} m+k m^{2}+m^{3}-k\left(k^{2}+k m+m^{2}\right)=m^{3}$. Analogously, we conclude that $k^{2}+k m+m^{2}$ divides $k^{3}$. Multiplying the second power of $k^{2}+k m+m^{2} \mid k^{3}$ with $k^{2}+k m+m^{2} \mid m^{3}$ we conclude $\left(k^{2}+k m+m^{2}\right)^{3} \mid k^{6} m^{3}$. Hence $k^{2}+k m+m^{2}$ also divides $k^{2} m$ and analogously $k m^{2}$. Adding all the results we have obtained we conclude that $k^{2}+k m+m^{2}$ divides $k^{3}-$ $3 k^{2} m+3 k m^{2}-m^{3}=(k-m)^{3}$. Because $k>m$, i.e. $k-m>0$, we have $k^{2}+k m+m^{2} \leqslant(k-m)^{3}$. Since $(k-m)^{2}$ is equivalent to $k^{2}+k m+m^{2}>3 k m$, we obtain $3 k m<(k-m)^{3}$. ## T 7 (Mariusz Skaba, Poland) Let $A$ and $B$ be disjoint nonempty sets with $A \cup B=\{1,2,3, \ldots, 10\}$. Show that there exist elements $a \in A$ and $b \in B$ such that the number $a^{3}+a b^{2}+b^{3}$ is divisible by 11 . ## Solution For each $n=0,1,2, \ldots$ the numbers $2^{n}, 2^{n+1}, 2^{n+2}, \ldots, 2^{n+9}$ have different remainders when divided by 11 . Suppose that for every $b \in B$ there is no $a \in A$ such that $a \equiv 2 b(\bmod 11)$. From the above statement there exists $n \in\{0,1, \ldots, 9\}$ such that $b \equiv 2^{n}(\bmod 11)$ and we conclude that elements of $B$ give ten different remainders when divided by 11 , so $B$ has 10 elements. That is a contradiction with the fact that $A$ is nonempty. Therefore there exist $b \in B$ and $a \in A$ such that $a \equiv 2 b(\bmod 11)$, and we have $$ a^{3}+a b^{2}+b^{3} \equiv 8 b^{3}+2 b^{3}+b^{3}=11 b^{3} \equiv 0 \quad(\bmod 11) $$ ## T 8 (Aivaras Novikas, Lithuania) We call a positive integer $n$ amazing if there exist positive integers $a, b, c$ such that the equality $$ n=(b, c)(a, b c)+(c, a)(b, c a)+(a, b)(c, a b) $$ holds. Prove that there exist 2011 consecutive positive integers which are amazing. (By $(m, n)$ we denote the greatest common divisor of positive integers $m$ and $n$.) ## Solution We may choose such positive integers $x_{1}, x_{2}, \ldots, x_{2011}$ that the numbers $$ y_{1}=x_{1}^{2}\left(x_{1}+2\right), \quad y_{2}=x_{2}^{2}\left(x_{2}+2\right), \quad \ldots, \quad y_{2011}=x_{2011}^{2}\left(x_{2011}+2\right) $$ are pairwise coprime. For example, we may choose $x_{1}=1$ and $x_{i}=y_{1} y_{2} \ldots y_{i-1}-1$ for every consecutive $i$. This choice guarantees that for every integer $2 \leqslant i \leqslant 2011$ both $x_{i}$ and $x_{i}+2$ (hence, $y_{i}$ as well) are coprime with any of the numbers $y_{1}, y_{2}, \ldots, y_{i-1}$. If a positive integer $n$ is divisible by any of the numbers $y_{1}, y_{2}, \ldots, y_{2011}$ then it is amazing. Indeed, if, say, $n=y_{i} m=x_{i}^{2}\left(x_{i}+2\right) m$ for some positive integers $m$ and $1 \leqslant i \leqslant 2011$ then $n=(b, c)(a, b c)+(c, a)(b, c a)+(a, b)(c, a b)$ for $a=m x_{i}^{2}, b=m x_{i}, c=x_{i}$. Since the numbers $y_{1}, y_{2}, \ldots, y_{2011}$ are pairwise coprime, the Chinese remainder theorem implies that there exists a positive integer $k$ satisfying the equalities $$ k \equiv-i \quad\left(\bmod y_{i}\right), \quad i=1,2, \ldots, 2011 $$ This means that $k+i$ is divisible by $y_{i}$ for any $1 \leqslant i \leqslant 2011$. Thus, the consecutive positive integers $k+1, k+2, \ldots, k+2011$ are all amazing, and the statement of the problem is proved. [^0]: ${ }^{1}$ Formally, we consider probability space $\left(\{0,1\}^{n}, \mathcal{P}\left(\{0,1\}^{n}\right), \mathbb{P}\right)$ where $$ \mathbb{P}(\omega)=p^{k(\omega)}(1-p)^{n-k(\omega)}, \quad \text { for each } \omega \in\{0,1\}^{n} $$ ${ }^{2}$ The expectation of integer random variable $X$ is the number $\mathbb{E} X=\sum_{k=0}^{n} k \mathbb{P}(X=k)$.