# EGMO 2016, Day 1 - Solutions Problem 1. Let $n$ be an odd positive integer, and let $x_{1}, x_{2}, \ldots, x_{n}$ be non-negative real numbers. Show that $$ \min _{i=1, \ldots, n}\left(x_{i}^{2}+x_{i+1}^{2}\right) \leq \max _{j=1, \ldots, n}\left(2 x_{j} x_{j+1}\right) $$ where $x_{n+1}=x_{1}$. Solution. In what follows, indices are reduced modulo $n$. Consider the $n$ differences $x_{k+1}-x_{k}, k=1, \ldots, n$. Since $n$ is odd, there exists an index $j$ such that $\left(x_{j+1}-x_{j}\right)\left(x_{j+2}-x_{j+1}\right) \geq 0$. Without loss of generality, we may and will assume both factors non-negative, so $x_{j} \leq x_{j+1} \leq x_{j+2}$. Consequently, $$ \min _{k=1, \ldots, n}\left(x_{k}^{2}+x_{k+1}^{2}\right) \leq x_{j}^{2}+x_{j+1}^{2} \leq 2 x_{j+1}^{2} \leq 2 x_{j+1} x_{j+2} \leq \max _{k=1, \ldots, n}\left(2 x_{k} x_{k+1}\right) $$ Remark. If $n \geq 3$ is odd, and one of the $x_{k}$ is negative, then the conclusion may no longer hold. This is the case if, for instance, $x_{1}=-b$, and $x_{2 k}=a$, $x_{2 k+1}=b, k=1, \ldots,(n-1) / 2$, where $0 \leq am_{3}^{r}$ and $m_{1}^{c}>m_{3}^{c}$, and reach a contradiction by the preceding: $m_{1}^{r}>m_{3}^{r} \geq m_{1}^{c}>m_{3}^{c} \geq m_{1}^{r}$. We prove the first inequality; the other one is dealt with similarly. To this end, notice that there are no empty rows - otherwise, each column would contain at least two blue cells, whence a total of at least $8 m>6 m$ blue cells, which is a contradiction. Next, count rows to get $m_{1}^{r}+m_{2}^{r} / 2+m_{3}^{r} / 3 \geq 4 m$, and count blue cells to get $m_{1}^{r}+m_{2}^{r}+m_{3}^{r}<6 m$. Subtraction of the latter from the former multiplied by $3 / 2$ yields $m_{1}^{r}-m_{3}^{r}>m_{2}^{r} / 2 \geq 0$, and the conclusion follows. Solution 2. To prove that a minimal configuration of blue cells satisfying the condition in the statement has cardinality at least 6 m , consider a bipartite graph whose vertex parts are the rows and the columns of the array, respectively, a row and a column being joined by an edge if and only if the two cross at a blue cell. Clearly, the number of blue cells is equal to the number of edges of this graph, and the relationship condition in the statement reads: for every row $r$ and every column $c$, $\operatorname{deg} r+\operatorname{deg} c-\epsilon(r, c) \geq 2$, where $\epsilon(r, c)=2$ if $r$ and $c$ are joined by an edge, and $\epsilon(r, c)=0$ otherwise. Notice that there are no empty rows/columns, so the graph has no isolated vertices. By the preceding, the cardinality of every connected component of the graph is at least 4 , so there are at most $2 \cdot 4 m / 4=2 m$ such and, consequently, the graph has at least $8 m-2 m=6 m$ edges. This completes the proof. Remarks. The argument in the first solution shows that equality to 6 m is possible only if $m_{1}^{r}=m_{3}^{r}=m_{1}^{c}=m_{3}^{c}=3 m, m_{2}^{r}=m_{2}^{c}=0$, and there are no rows, respectively columns, containing four blue cells or more. Consider the same problem for an $n \times n$ array. The argument in the second solution shows that the corresponding minimum is $3 n / 2$ if $n$ is divisible by 4 , and $3 n / 2+1 / 2$ if $n$ is odd; if $n \equiv 2(\bmod 4)$, the minimum in question is $3 n / 2+1$. To describe corresponding minimal configurations $C_{n}$, refer to the minimal configurations $C_{2}, C_{3}, C_{4}, C_{5}$ below: ![](https://cdn.mathpix.com/cropped/2024_11_22_807b80d46bdb74fa296cg-3.jpg?height=247&width=1078&top_left_y=1778&top_left_x=489) The case $n \equiv 0(\bmod 4)$ was dealt with above: a $C_{n}$ consists of a diagonal string of $n / 4$ blocks $C_{4}$. If $n \equiv r(\bmod 4), r=2,3$, a $C_{n}$ consists of a diagonal string of $\lfloor n / 4\rfloor$ blocks $C_{4}$ followed by a $C_{r}$, and if $n \equiv 1(\bmod 4)$, a $C_{n}$ consists of a diagonal string of $\lfloor n / 4\rfloor-1$ blocks $C_{4}$ followed by a $C_{5}$. Minimal configurations are not necessarily unique (two configurations being equivalent if one is obtained from the other by permuting the rows and/or the columns). For instance, if $n=6$, the configurations below are both minimal: ![](https://cdn.mathpix.com/cropped/2024_11_22_807b80d46bdb74fa296cg-4.jpg?height=298&width=832&top_left_y=491&top_left_x=612) ## EGMO 2016, Day 2 - Solutions Problem 4. Two circles, $\omega_{1}$ and $\omega_{2}$, of equal radius intersect at different points $X_{1}$ and $X_{2}$. Consider a circle $\omega$ externally tangent to $\omega_{1}$ at a point $T_{1}$, and internally tangent to $\omega_{2}$ at a point $T_{2}$. Prove that lines $X_{1} T_{1}$ and $X_{2} T_{2}$ intersect at a point lying on $\omega$. Solution 1. Let the line $X_{k} T_{k}$ and $\omega$ meet again at $X_{k}^{\prime}, k=1,2$, and notice that the tangent $t_{k}$ to $\omega_{k}$ at $X_{k}$ and the tangent $t_{k}^{\prime}$ to $\omega$ at $X_{k}^{\prime}$ are parallel. Since the $\omega_{k}$ have equal radii, the $t_{k}$ are parallel, so the $t_{k}^{\prime}$ are parallel, and consequently the points $X_{1}^{\prime}$ and $X_{2}^{\prime}$ coincide (they are not antipodal, since they both lie on the same side of the line $T_{1} T_{2}$ ). The conclusion follows. Solution 2. The circle $\omega$ is the image of $\omega_{k}$ under a homothety $h_{k}$ centred at $T_{k}, k=1,2$. The tangent to $\omega$ at $X_{k}^{\prime}=h_{k}\left(X_{k}\right)$ is therefore parallel to the tangent $t_{k}$ to $\omega_{k}$ at $X_{k}$. Since the $\omega_{k}$ have equal radii, the $t_{k}$ are parallel, so $X_{1}^{\prime}=X_{2}^{\prime}$; and since the points $X_{k}, T_{k}$ and $X_{k}^{\prime}$ are collinear, the conclusion follows. ![](https://cdn.mathpix.com/cropped/2024_11_22_807b80d46bdb74fa296cg-5.jpg?height=344&width=1018&top_left_y=1356&top_left_x=519) Solution 3. Invert from $X_{1}$ and use an asterisk to denote images under this inversion. Notice that $\omega_{k}^{*}$ is the tangent from $X_{2}^{*}$ to $\omega^{*}$ at $T_{k}^{*}$, and the pole $X_{1}$ lies on the bisectrix of the angle formed by the $\omega_{k}^{*}$, not containing $\omega^{*}$. Letting $X_{1} T_{1}^{*}$ and $\omega^{*}$ meet again at $Y$, standard angle chase shows that $Y$ lies on the circle $X_{1} X_{2}^{*} T_{2}^{*}$, and the conclusion follows. Remarks. The product $h_{1} h_{2}$ of the two homotheties in the first solution is reflexion across the midpoint of the segment $X_{1} X_{2}$, which lies on the line $T_{1} T_{2}$ 。 Various arguments, involving similarities, radical axes, and the like, work equally well to prove the required result. Problem 5. Let $k$ and $n$ be integers such that $k \geq 2$ and $k \leq n \leq 2 k-1$. Place rectangular tiles, each of size $1 \times k$ or $k \times 1$, on an $n \times n$ chessboard so that each tile covers exactly $k$ cells, and no two tiles overlap. Do this until no further tile can be placed in this way. For each such $k$ and $n$, determine the minimum number of tiles that such an arrangement may contain. Solution. The required minimum is $n$ if $n=k$, and it is $\min (n, 2 n-2 k+2)$ if $k0$, there exists a maximal arrangement of cardinality $2 n-r-c$. Use again the board $[0, n] \times[0, n]$ to stack $k-r$ horizontal tiles in each of the rectangles $[0, k] \times[0, k-r]$ and $[k-c, 2 k-c] \times[k, 2 k-r]$, erect $k-c$ vertical tiles in each of the rectangles $[0, k-c] \times[k-r, 2 k-r]$ and $[k, 2 k-c] \times[0, k]$, then stack $n-2 k+r$ horizontal tiles in the rectangle $[k-c, 2 k-c] \times[2 k-r, n]$, and erect $n-2 k+c$ vertical tiles in the rectangle $[2 k-c, n] \times[1, k+1]$. Problem 6. Let $S$ be the set of all positive integers $n$ such that $n^{4}$ has a divisor in the range $n^{2}+1, n^{2}+2, \ldots, n^{2}+2 n$. Prove that there are infinitely many elements of $S$ of each of the forms $7 m, 7 m+1,7 m+2,7 m+5,7 m+6$ and no elements of $S$ of the form $7 m+3$ or $7 m+4$, where $m$ is an integer. Solution. The conclusion is a consequence of the lemma below which actually provides a recursive description of $S$. The proof of the lemma is at the end of the solution. Lemma. The fourth power of a positive integer $n$ has a divisor in the range $n^{2}+1, n^{2}+2, \ldots, n^{2}+2 n$ if and only if at least one of the numbers $2 n^{2}+1$ and $12 n^{2}+9$ is a perfect square. Consequently, a positive integer $n$ is a member of $S$ if and only if $m^{2}-$ $2 n^{2}=1$ or $m^{2}-12 n^{2}=9$ for some positive integer $m$. The former is a Pell equation whose solutions are $\left(m_{1}, n_{1}\right)=(3,2)$ and $$ \left(m_{k+1}, n_{k+1}\right)=\left(3 m_{k}+4 n_{k}, 2 m_{k}+3 n_{k}\right), \quad k=1,2,3, \ldots $$ In what follows, all congruences are modulo 7. Iteration shows that $\left(m_{k+3}, n_{k+3}\right) \equiv\left(m_{k}, n_{k}\right)$. Since $\left(m_{1}, n_{1}\right) \equiv(3,2),\left(m_{2}, n_{2}\right) \equiv(3,-2)$, and $\left(m_{3}, n_{3}\right) \equiv(1,0)$, it follows that $S$ contains infinitely many integers from each of the residue classes 0 and $\pm 2$ modulo 7 . The other equation is easily transformed into a Pell equation, $m^{\prime 2}-$ $12 n^{\prime 2}=1$, by noticing that $m$ and $n$ are both divisible by 3 , say $m=3 m^{\prime}$ and $n=3 n^{\prime}$. In this case, the solutions are $\left(m_{1}, n_{1}\right)=(21,6)$ and $$ \left(m_{k+1}, n_{k+1}\right)=\left(7 m_{k}+24 n_{k}, 2 m_{k}+7 n_{k}\right), \quad k=1,2,3, \ldots $$ This time iteration shows that $\left(m_{k+4}, n_{k+4}\right) \equiv\left(m_{k}, n_{k}\right)$. Since $\left(m_{1}, n_{1}\right) \equiv$ $(0,-1),\left(m_{2}, n_{2}\right) \equiv(-3,0),\left(m_{3}, n_{3}\right) \equiv(0,1)$, and $\left(m_{4}, n_{4}\right) \equiv(3,0)$, it follows that $S$ contains infinitely many integers from each of the residue classes 0 and $\pm 1$ modulo 7 . Finally, since the $n_{k}$ from the two sets of formulae exhaust $S$, by the preceding no integer in the residue classes $\pm 3$ modulo 7 is a member of $S$. We now turn to the proof of the lemma. Let $n$ be a member of $S$, and let $d=n^{2}+m$ be a divisor of $n^{4}$ in the range $n^{2}+1, n^{2}+2, \ldots, n^{2}+2 n$, so $1 \leq m \leq 2 n$. Consideration of the square of $n^{2}=d-m$ shows $m^{2}$ divisible by $d$, so $m^{2} / d$ is a positive integer. Since $n^{2}