# Problems and solutions ## INDIVIDUAL COMPETITION Problem I-1. Let $a, b, c$ be positive real numbers such that $$ a+b+c=\frac{1}{a^{2}}+\frac{1}{b^{2}}+\frac{1}{c^{2}} $$ Prove that $$ 2(a+b+c) \geq \sqrt[3]{7 a^{2} b+1}+\sqrt[3]{7 b^{2} c+1}+\sqrt[3]{7 c^{2} a+1} $$ Find all triples $(a, b, c)$ for which equality holds. Solution. From the AM-GM inequality, we obtain that $$ \sqrt[3]{7 a^{2} b+1}=2 \cdot \sqrt[3]{a \cdot a \cdot\left(\frac{7 b}{8}+\frac{1}{8 a^{2}}\right)} \leq \frac{2}{3}\left(a+a+\frac{7 b}{8}+\frac{1}{8 a^{2}}\right) $$ We have analogous upper bounds for $\sqrt[3]{7 b^{2} c+1}$ and $\sqrt[3]{7 c^{2} a+1}$. Adding up these three inequalities, we obtain that $$ \sqrt[3]{7 a^{2} b+1}+\sqrt[3]{7 b^{2} c+1}+\sqrt[3]{7 c^{2} a+1} \leq \frac{2}{3}\left(\frac{23(a+b+c)}{8}+\frac{1}{8}\left(\frac{1}{a^{2}}+\frac{1}{b^{2}}+\frac{1}{c^{2}}\right)\right) $$ Using the condition of the problem, we obtain $$ \sqrt[3]{7 a^{2} b+1}+\sqrt[3]{7 b^{2} c+1}+\sqrt[3]{7 c^{2} a+1} \leq 2(a+b+c) $$ Equality holds if and only if $a, b$, and $c$ satisfy the system of equations $$ \begin{aligned} & a=\frac{7 b}{8}+\frac{1}{8 a^{2}} \\ & b=\frac{7 c}{8}+\frac{1}{8 b^{2}} \\ & c=\frac{7 a}{8}+\frac{1}{8 c^{2}} \end{aligned} $$ Note that this system actually implies the equation stipulated in the problem. Defining $f(x)=\frac{8}{7}\left(x-\frac{1}{8 x^{2}}\right)$, we can rewrite the system as $$ \begin{aligned} & b=f(a) \\ & c=f(b) \end{aligned} $$ $$ a=f(c) $$ We prove that $f(x)$ is a non-decreasing function. Let $u \geq v$. Then $$ \begin{aligned} f(u)-f(v) & =\frac{8}{7}\left((u-v)+\frac{1}{8 v^{2}}-\frac{1}{8 u^{2}}\right) \\ & =\frac{8}{7}\left((u-v)+\frac{(u-v)(u+v)}{8 u^{2} v^{2}}\right) \\ & =\frac{8}{7}(u-v)\left(1+\frac{u+v}{8 u^{2} v^{2}}\right) \\ & \geq 0 . \end{aligned} $$ Since the system of equations is cyclically symmetric, we may assume that $a=$ $\max \{a, b, c\}$. Since $a \geq b$, we have $b=f(a) \geq f(b)=c$, so $c=f(b) \geq f(c)=a$. In all, $c \geq a \geq b \geq c$, so $a=b=c$. We now have to find the solutions of $f(a)=a$. $$ \begin{aligned} \frac{8}{7}\left(a-\frac{1}{8 a^{2}}\right) & =a \\ 8 a-\frac{1}{a^{2}} & =7 a \\ \frac{1}{a^{2}} & =a \\ 1 & =a^{3} \end{aligned} $$ Thus, equality holds if and only if $a=b=c=1$. Problem I-2. Let $n$ be a positive integer. On a board consisting of $4 n \times 4 n$ squares, exactly $4 n$ tokens are placed so that each row and each column contains one token. In a step, a token is moved horizontally or vertically to a neighbouring square. Several tokens may occupy the same square at the same time. The tokens are to be moved to occupy all the squares of one of the two diagonals. Determine the smallest number $k(n)$ such that for any initial situation, we can do it in at most $k(n)$ steps. Solution. We shall prove that $k(n)=6 n^{2}$. We define the distance from a given square to a given diagonal to be the minimal number of steps needed to get from the square to the diagonal. This equals the minimal number of horizontal steps needed to do that. It also equals the minimal number of vertical steps needed to do that. Given a configuration of tokens, we define the distance from this configuration to a given diagonal to be the sum of distances of the tokens to that diagonal. Choose the coordinate system so that the vertices of the board have coordinates $\pm 2 n$. Place a token on each of the $n$ squares the coordinates of whose centres satisfy $x>0$ and $y-x=n$. Now complete this configuration of tokens so that it has a rotational symmetry of $90^{\circ}$ about the origin. Then we have $4 n$ tokens, one in each row, one in each column. The distance from this configuration to either diagonal is $2 n \cdot n+2 n \cdot 2 n=6 n^{2}$. Therefore, $k(n) \geq 6 n^{2}$. Now consider any configuration satisfying the conditions of the problem. We prove that $\leq 6 n^{2}$ steps suffice even if we only allow horizontal moves. I.e., the smallest of the two distances from the given configuration to the diagonals is $\leq 6 n^{2}$. It suffices to prove that the sum of the two distances from the given configuration to the diagonals is $\leq 12 n^{2}$. Observe that the sum of the two distances from the square with center $(x, y)$ to the two diagonals is $2 \max (|x|,|y|)$. This number can take values $1,3, \ldots, 4 n-1$. The squares where it takes a given value can be covered by two columns and two rows, so we can place at most four tokens there. Thus, the sum of the values for the $4 n$ tokens is $\leq 4((4 n-1)+(4 n-3)+\cdots+(2 n+1))=4 n \cdot 3 n=12 n^{2}$. Problem I-3. Let $A B C$ be an isosceles triangle with $A C=B C$. Let $N$ be a point inside the triangle such that $2 \angle A N B=180^{\circ}+\angle A C B$. Let $D$ be the intersection of the line $B N$ and the line parallel to $A N$ that passes through $C$. Let $P$ be the intersection of the angle bisectors of the angles $C A N$ and $A B N$. Show that the lines $D P$ and $A N$ are perpendicular. Solution. Since $A C=B C$, there is a circle $k$ such that the lines $A C$ and $B C$ are the tangents to $k$ at the points $A$ and $B$. The condition defining the point $N$ implies that the point $N$ lies on the circle $k$. By the tangent-chord theorem, we have $\angle B A N=\angle D B C$ and $\angle C A N=\angle A B D$. Since $D C$ is parallel to $A N$, we have $\angle C A N=\angle A C D$. Hence $\angle A C D=\angle A B N$, so the quadrilateral $A B C D$ is cyclic. It follows that $\angle C A D=\angle C B D=\angle B A N$. We can conclude that the angle bisector of $\angle C A N$ is the angle bisector of $\angle B A D$. Hence the point $P$ is the incenter of the triangle $A B D$ and $D P$ is the angle bisector of $\angle A D B$. We also note that since $C D$ is parallel to $A N$, we have $\angle A N D=\angle B D C=\angle B A C=$ $\angle B A N+\angle N A C=\angle C A D+\angle N A C=\angle N A D$. Hence $A D=N D$ and we conclude that the angle bisector of $\angle A D B$ is the perpendicular bisector of the segment $A N$. Hence $D P$ is perpendicular to $A N$. Remark 1. The first part of the solution can easily be deduced also by calculating the angles without noting that $A C$ and $B C$ are tangents to $k$. Remark 2. It is a well-known fact that the intersection of the perpendicular bisector of the segment $A N$ and the angle bisector of the angle $\angle A B N$ lies on the circumcircle of the triangle $A B N$, i.e. $P$ also lies on the circle $k$. This fact is obtained more easily by calculating the angle $\angle A P B$. Problem I-4. Let $a$ and $b$ be positive integers. Prove that there exist positive integers $x$ and $y$ such that $$ \binom{x+y}{2}=a x+b y $$ Solution. Denoting $A=2 a+1$ and $B=2 b+1$, the equation can be translated into $$ \frac{B-(x+y)}{x}=\frac{(x+y)-A}{y} $$ For $A=B$, any integers with $x+y=A$ satisfy the equation. Now suppose that $A2$. Let $H_{i}$ denote the house with number $i$ at the start of the day, and let $(i \rightleftarrows i+1)$ denote the swap between $H_{i}$ and $H_{i+1}$. Let $H_{k}$ be the house that has plate $n$ at the end of the day. It follows that the swaps $(n-1 \rightleftarrows n),(n-2 \rightleftarrows n-1), \ldots,(k \rightleftarrows k+1)$ must have happened in this order, for otherwise plate $n$ could not have reached the house $H_{k}$. In addition, $(k-1 \rightleftarrows k)$ must have happened before $(k \rightleftarrows k+1)$, otherwise plate $n$ would have ended up somewhere between $H_{1}$ and $H_{k-1}$. It follows that for any $k \leq it_{i}$, or $i=1$, then plate $i$ will finish the day at the eastern end of the maximal increasing subsequence starting at $t_{i}$. If $t_{i-1}$ between the neighbouring $t$ 's determine the final distribution of the plates. Conversely, given the final distribution of the plates, we can calculate the relations. Indeed, let $2 \leq i \leq n-1$. If plate $i$ ends up east of its original position, then $t_{i-1}>t_{i}$, whereas if plate $i$ ends up west of its original position, then $t_{i-1}