# MМO 2019 Problem 1. Let $A B C$ be an acute triangle, $M$ be midpoint of the segment $B C$ and the centers of the excircles with respect of $\mathrm{M}$ of the triangles $A M B$ and $A M C$ are $D$ and $E$, respectively. The The circumcircle of the triangle $A B D$ meets the line $B C$ at the points $B$ and $F$. The circumcircle of the triangle $A C E$ meets the line $B C$ at the points $C$ and $G$. Prove that $B F=C G$. Solution. (BMO shortlist) Obviously, we have $\angle A D B=90^{\circ}-\frac{1}{2} \measuredangle A M B$ and $\angle A E C=90^{\circ}-\frac{1}{2} \measuredangle A M C$. ![](https://cdn.mathpix.com/cropped/2024_04_28_7363064d6cbc95a9960fg-1.jpg?height=411&width=675&top_left_y=612&top_left_x=537) Let the circumcircles of $\triangle A D B$ and $\triangle A E C$ meet again the line $A M$ at the points $P$ and $P^{\prime}$, respectively. Let we notice that the point $M$ is outside of the circumcircles of $\triangle A D B$ and $\triangle A E C$, since $\measuredangle A D B+\measuredangle A M B<180^{\circ}$ and $\angle A E C+\measuredangle A M C<180^{\circ}$, so $P$ and $P^{\prime}$ lie on the ray $M A$. Furthermore, $\measuredangle B P M=\measuredangle B D A=90^{\circ}-\frac{1}{2} \measuredangle P M B$, hence the triangle $B P M$ is isosceles, so $M P=M B$. Analogously, $M P^{\prime}=M C=M B$, so $P^{\prime} \equiv P$. Now, using the power of the point $M$, we obtain $M B \cdot M F=M P \cdot M A=M C \cdot M G$, i.e. $M F=M G=M A$, hence $B F=C G$. Problem 2. Let $n$ be a positive integer. If $r \equiv n(\bmod 2)$ and $r \in\{0,1\}$, then find the number of the integer solutions of the system of equations $$ \left\{\begin{array}{l} x+y+z=r \\ |x|+|y|+|z|=n \end{array}\right. $$ Solution. Let $n$ be a even positive integer, that is $r=0$. Then the problem can be reformulated as to find the number of integer solutions of the system of equations $$ \left\{\begin{array}{l} x+y+z=0 \\ |x|+|y|+|z|=n \end{array}\right. $$ Lemma. 1) At least one of the numbers $x, y, z$ has absolute value $\frac{n}{2}$. 2) Each of $x, y, z$ has absolute value $\leq \frac{n}{2}$. Proof. It is clear that one of the numbers $x, y, z$ must be positive; otherwise we obtain contradiction with the first equation of the system of equations (1). Without loss the generality, we may assume $x>0$. Indeed, if $x>\frac{n}{2}$, from $x=-(y+z)$, and from $|y|+|z| \geq|y+z|>\frac{n}{2}$ we obtain contradiction with the second equation of the system of equations (1). If $00$, and then $x=\frac{n}{2}$ and $y+z=-\frac{n}{2}$. From the lemma, it follows that all the ordered triples $$ \left(\frac{n}{2},-\frac{n}{2}, 0\right),\left(\frac{n}{2},-\frac{n}{2}+1,-1\right),\left(\frac{n}{2},-\frac{n}{2}+2,-2\right), \ldots,\left(\frac{n}{2}, 0,-\frac{n}{2}\right) $$ are solution of the system of equations (1), and those are $\frac{n}{2}+1$ solutions. Changing the position of $\frac{n}{2}$ (at the second and at the third coordinate) and applying the same discussion, we obtain $3\left(\frac{n}{2}+1\right)$ ordered triples which are solution of the system of equations (1). Let any two of $x, y, z$ are positive. Without loss of generality, let $x>0, y>0$. Then $z=-\frac{n}{2}$ and $x+y=\frac{n}{2}$. From the lemma, it follows that all the ordered triples $$ \left(1, \frac{n}{2}-1,-\frac{n}{2}\right),\left(2, \frac{n}{2}-2,-\frac{n}{2}\right),\left(3, \frac{n}{2}-3,-\frac{n}{2}\right), \ldots,\left(\frac{n}{2}-1,1,-\frac{n}{2}\right) $$ are solution of the system of equations (1), and those are $\frac{n}{2}-1$ solutions. Changing the position of $-\frac{n}{2}$ (at the first and at the second coordinate) and applying the same discussion, we obtain $3\left(\frac{n}{2}-1\right)$ ordered triples which are solution of the system of equations (1). Finally, we obtain that the total number of solutions of the system of equations (1) is $$ 3\left(\frac{n}{2}+1\right)+3\left(\frac{n}{2}-1\right)=3 n $$ Now, let $n$ be a odd positive integer, that is $r=1$. Then, the system (1) can be written as $$ \left\{\begin{array}{l} x+y+z=1 \\ |x|+|y|+|z|=n \end{array}\right. $$ In analogues way as the case when $n$ is even, (using the appropriate lemma obtained when replacing $\frac{n}{2}$ with $\frac{n+1}{2}$ ), we obtain that the total number of solutions of the system of equations (1) is $$ 3\left(\frac{n-1}{2}+1\right)+3\left(\frac{n-1}{2}\right)=3 n $$ Problem 3. Let $A B C$ be an isosceles triangle ( $A B=A C$ ) and let $M$ be a midpoint of the segment $B C$. The point $P$ is chosen such that $P B