# 2013 62nd Czech and Slovak
Mathematical Olympiad Edited by
Karel Horák Translated into English by Martin Panák, David Klaška, Pavel Calábek, Josef Tkadlec ## First Round of the 62nd Czech and Slovak Mathematical Olympiad Problems for the take-home part (October 2012) ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-03.jpg?height=246&width=557&top_left_y=528&top_left_x=727) 1. Find all pairs of primes $p, q$ for which there exists a positive integer a such that $$ \frac{p q}{p+q}=\frac{a^{2}+1}{a+1} $$ (Ján Mazák, Róbert Tóth) Solution. First, we will deal with the case when the wanted primes $p$ and $q$ are distinct. Then, the numbers $p q$ and $p+q$ are relatively prime: the product $p q$ is divisible by two primes only (namely $p$ and $q$ ), while the sum $p+q$ is divisible by neither of these primes. We will look for a positive integer $r$ which can be a common divisor of both $a+1$ and $a^{2}+1$. If $r \mid a+1$ and, at the same time, $r \mid a^{2}+1$, then $r \mid(a+1)(a-1)$ and also $r \mid\left(a^{2}+1\right)-\left(a^{2}-1\right)=2$, so $r$ can only be one of the numbers 1 and 2 . Thus the fraction $\frac{a^{2}+1}{a+1}$ either is in lowest terms, or will be in lowest terms when reduced by two, depending on whether the integer $a$ is even, or odd. If $a$ is even, we must have $$ p q=a^{2}+1 \quad \text { and } \quad p+q=a+1 $$ The numbers $p, q$ are thus the roots of the quadratic equation $x^{2}-(a+1) x+a^{2}+1=0$, whose discriminant $$ (a+1)^{2}-4\left(a^{2}+1\right)=-3 a^{2}+2 a-3=-2 a^{2}-(a-1)^{2}-2 $$ is apparently negative, so the equation has no solution in the real numbers. If $a$ is odd, we must have (taking into account the reduction by two) $$ 2 p q=a^{2}+1 \quad \text { and } \quad 2(p+q)=a+1 $$ The numbers $p, q$ are thus the roots of the quadratic equation $2 x^{2}-(a+1) x+a^{2}+1=0$, whose discriminant is negative as well. Therefore, there is no pair of distinct primes $p, q$ satisfying the conditions. It remains to analyze the case of $p=q$. Then, so we must have $$ \frac{p \cdot q}{p+q}=\frac{p \cdot p}{p+p}=\frac{p}{2} $$ $$ p=\frac{2\left(a^{2}+1\right)}{a+1}=2 a-2+\frac{4}{a+1} ; $$ this is an integer if and only if $a+1 \mid 4$, i. e. $a \in\{1,3\}$, so $p=2$ or $p=5$. To summarize, there are exactly two pairs of primes satisfying the conditions, namely $p=q=2$ and $p=q=5$. 2. Two circles $k_{1}\left(S_{1}, r_{1}\right)$ and $k_{2}\left(S_{2}, r_{2}\right)$ are externally tangent and both lie in a square $A B C D$ with side length a so that $k_{1}$ touches the sides $A D$ and $C D$, while $k_{2}$ touches the sides $B C$ and $C D$. Prove that the area of at least one of the triangles $A S_{1} S_{2}, B S_{1} S_{2}$ is no more than $\frac{3}{16} a^{2}$. (Tomáš Jurík) Solution. The line segments $A S_{2}$ and $B S_{1}$ lie on the diagonals of the given square, so they are perpendicular to each other and intersect at the center $P$ of the square. We have $$ \begin{aligned} & \left|D S_{1}\right|=r_{1} \cdot \sqrt{2}, \quad\left|B S_{1}\right|=\left(a-r_{1}\right) \sqrt{2}, \quad\left|P S_{1}\right|=\left(\frac{a}{2}-r_{1}\right) \sqrt{2} \\ & \left|C S_{2}\right|=r_{2} \cdot \sqrt{2}, \quad\left|A S_{2}\right|=\left(a-r_{2}\right) \sqrt{2}, \quad\left|P S_{2}\right|=\left(\frac{a}{2}-r_{2}\right) \sqrt{2} \end{aligned} $$ Therefore, the area of the triangle $A S_{1} S_{2}$ is $$ S_{A S_{1} S_{2}}=\frac{1}{2}\left|A S_{2}\right| \cdot\left|P S_{1}\right|=\left(a-r_{2}\right)\left(\frac{a}{2}-r_{1}\right) $$ while the area of the triangle $B S_{1} S_{2}$ is $$ S_{B S_{1} S_{2}}=\frac{1}{2}\left|B S_{1}\right| \cdot\left|P S_{2}\right|=\left(a-r_{1}\right)\left(\frac{a}{2}-r_{2}\right) . $$ The sum of these areas is $$ S=\left(a-r_{2}\right)\left(\frac{a}{2}-r_{1}\right)+\left(a-r_{1}\right)\left(\frac{a}{2}-r_{2}\right)=a^{2}-\frac{3}{2} a\left(r_{1}+r_{2}\right)+2 r_{1} r_{2} $$ Let $K$ denote the point at which the circle $k_{1}$ touches the side $A D, H$ and $L$ denote the points at which $k_{2}$ touches the sides $C D$ and $B C$, respectively, and $M$ be the intersection point of the lines $K S_{1}$ and $H S_{2}$ (Fig. 1). ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-04.jpg?height=679&width=691&top_left_y=1688&top_left_x=725) Fig. 1 By the Pythagoras' theorem for the triangle $S_{1} M S_{2}$, we have $$ \left(a-r_{1}-r_{2}\right)^{2}+\left(r_{1}-r_{2}\right)^{2}=\left(r_{1}+r_{2}\right)^{2} . $$ Hence we obtain $$ \begin{gathered} \left(a-r_{1}-r_{2}\right)^{2}=4 r_{1} r_{2}, \\ a-r_{1}-r_{2}=2 \sqrt{r_{1} r_{2}}, \\ a=r_{1}+r_{2}+2 \sqrt{r_{1} r_{2}}=\left(\sqrt{r_{1}}+\sqrt{r_{2}}\right)^{2} \geqslant 4 \sqrt{r_{1} r_{2}}, \end{gathered} $$ i. e. $$ r_{1} r_{2} \leqslant \frac{a^{2}}{16} $$ The length of the segment $D C$ cannot be greater than the length of the polygonal chain $K S_{1} S_{2} L$, so $$ 2 r_{1}+2 r_{2} \geqslant a . $$ (This follows from the equality $a=r_{1}+r_{2}+2 \sqrt{r_{1} r_{2}}$ as well since $2 \sqrt{r_{1} r_{2}} \leqslant r_{1}+r_{2}$, by the AM-GM inequality.) Therefore, $$ S=a^{2}-\frac{3}{2} a\left(r_{1}+r_{2}\right)+2 r_{1} r_{2} \leqslant a^{2}-\frac{3}{4} a^{2}+\frac{1}{8} a^{2}=\frac{3}{8} a^{2} . $$ This means that at least one of the areas $S_{A S_{1} S_{2}}, S_{B S_{1} S_{2}}$ is at most $\frac{3}{16} a^{2}$. Other Solution. We can set $a=1$. The difference of the areas of the triangles $A S_{1} S_{2}$ and $B S_{1} S_{2}$ is (according to the expression from the original solution) $$ S_{A S_{1} S_{2}}-S_{B S_{1} S_{2}}=\left(1-r_{2}\right)\left(\frac{1}{2}-r_{1}\right)-\left(1-r_{1}\right)\left(\frac{1}{2}-r_{2}\right)=\frac{1}{2}\left(r_{2}-r_{1}\right) $$ Without loss of generality, we can assume that $r_{1} \geqslant r_{2}$. Then $S_{A S_{1} S_{2}} \leqslant S_{B S_{1} S_{2}}$. Now, let us calculate the area of the triangle $A S_{1} S_{2}$. By the Pythagoras' theorem, we have $\left(1-r_{1}-r_{2}\right)^{2}+\left(r_{1}-r_{2}\right)^{2}=\left(r_{1}+r_{2}\right)^{2}$, hence $\sqrt{r_{1}}+\sqrt{r_{2}}=1$, so $r_{2}=\left(1-\sqrt{r_{1}}\right)^{2}$. Let us denote $x=\sqrt{r_{1}}$. It follows from the inequalities $r_{1}+r_{2} \geqslant \frac{1}{2}$ and $r_{1} \geqslant r_{2}$ that $r_{1} \geqslant \frac{1}{4}$, and, on the other hand, we have $r_{1} \leqslant \frac{1}{2}$ since the circle $k_{1}$ lies in the square $A B C D$. Hence it follows that $\frac{1}{2} \leqslant x \leqslant \sqrt{\frac{1}{2}}$. The area of the triangle $A S_{1} S_{2}$ is $$ \begin{aligned} S_{A S_{1} S_{2}} & =\left(1-r_{2}\right)\left(\frac{1}{2}-r_{1}\right)=\frac{1}{2}-r_{1}-\frac{r_{2}}{2}+r_{1} r_{2}= \\ & =\frac{1}{2}-x^{2}-\frac{1}{2}(1-x)^{2}+x^{2}(1-x)^{2}=x^{4}-2 x^{3}-\frac{1}{2} x^{2}+x ; \\ S_{A S_{1} S_{2}}-\frac{3}{16} & =x^{4}-2 x^{3}-\frac{1}{2} x^{2}+x-\frac{3}{16}=\left(x-\frac{1}{2}\right)\left(x^{3}-\frac{3}{2} x^{2}-\frac{5}{4} x+\frac{3}{8}\right)= \\ & =\left(x-\frac{1}{2}\right)\left[x^{2}\left(x-\frac{3}{2}\right)-\frac{5}{4}\left(x-\frac{3}{10}\right)\right] \leqslant 0 \end{aligned} $$ as we have $\frac{3}{10}<\frac{1}{2} \leqslant x \leqslant \frac{1}{2} \sqrt{2}<\frac{3}{2}$. Therefore, $S_{A S_{1} S_{2}} \leqslant \frac{3}{16}$. 3. Let $p(n)$ denote the number of all $n$-digit positive integers containing only the digits 1, 2, 3, 4, 5 and such that every two adjacent digits differ by at least 2. Prove that for every positive integer $n$, $$ 5 \cdot 2.4^{n-1} \leqslant p(n) \leqslant 5 \cdot 2.5^{n-1} . $$ (Pavel Novotný) Solution. Cutting off the last digit of a satisfactory $(n+1)$-digit integer yields a satisfactory $n$-digit integer. Notice how a satisfactory $(n+1)$-digit integer can be constructed from a satisfactory $n$-digit integer. If the last digit of the integer is 1 , we can append any of the digits $3,4,5$. If the last digit is 2 , we can append 4 or 5 ; if it is 3,1 or 5 can be appended; if it is 4,1 or 2 can be appended; and, finally, in the case of 5 , we can append any of the digits $1,2,3$. Thus we can see that only the last digit matters. So now, let $a_{n}$ denote the number of satisfactory $n$-digit integers ending in 1 or 5 ; similarly $b_{n}$ for 2 or 4 , and $c_{n}$ for integers ending in 3 . Then $p(n)=a_{n}+b_{n}+c_{n}$. Apparently, $a_{1}=b_{1}=2, c_{1}=1, p(1)=5=5 \cdot 2.4^{0}=5 \cdot 2.5^{0}, a_{2}=6, b_{2}=4, c_{2}=2$, $p(2)=12=5 \cdot 2.4^{1}<5 \cdot 2.5^{1}$. The above reasoning implies the recurrent formulae $$ a_{n+1}=a_{n}+b_{n}+2 c_{n}, \quad b_{n+1}=a_{n}+b_{n}, \quad c_{n+1}=a_{n} $$ Hence it follows that $a_{3}=14, b_{3}=10, c_{3}=6, p(3)=30 \in\left\langle 5 \cdot 2.4^{2} ; 5 \cdot 2.5^{2}\right\rangle$. Using mathematical induction, we prove that for every $n \geqslant 3$, it holds that $$ a_{n} \geqslant 2.4^{n}, \quad b_{n} \geqslant \frac{2}{3} \cdot 2.4^{n}, \quad c_{n} \geqslant 2.4^{n-1} . $$ It indeed does for $n=3$. If $a_{n} \geqslant 2.4^{n}, b_{n} \geqslant \frac{2}{3} \cdot 2.4^{n}$ and $c_{n} \geqslant 2.4^{n-1}$, then also $$ \begin{aligned} a_{n+1}=a_{n}+b_{n}+2 c_{n} \geqslant & 2.4^{n}+\frac{2}{3} \cdot 2.4^{n}+2 \cdot 2.4^{n-1}= \\ & =2.4^{n} \cdot\left(1+\frac{2}{3}+\frac{5}{6}\right)=2.5 \cdot 2.4^{n}>2.4^{n+1}, \\ b_{n+1}=a_{n}+b_{n} \geqslant & 2.4^{n}+\frac{2}{3} \cdot 2.4^{n}=\frac{5}{3} \cdot 2.4^{n}>\frac{2}{3} \cdot 2.4^{n+1}, \\ c_{n+1}=a_{n} \geqslant & 2.4^{n} . \end{aligned} $$ It follows from the proved inequalities that $p(n)=a_{n}+b_{n}+c_{n} \geqslant 2.4^{n}+\frac{2}{3} \cdot 2.4^{n}+2.4^{n-1}=(2.4+1,6+1) \cdot 2.4^{n-1}=5 \cdot 2.4^{n-1}$. The latter inequality can be proved analogously; we will verify that for $n \geqslant 3$, $$ a_{n} \leqslant k \cdot 2.5^{n}, \quad b_{n} \leqslant k \cdot \frac{2}{3} \cdot 2.5^{n}, \quad c_{n} \leqslant k \cdot 2.5^{n-1}, $$ where $k$ is a suitably chosen number. Then we will have $$ p(n)=a_{n}+b_{n}+c_{n} \leqslant k \cdot 2.5^{n-1} \cdot\left(2.5+\frac{5}{3}+1\right)=k \cdot 2.5^{n-1} \cdot \frac{31}{6}=5 k \cdot \frac{31}{30} \cdot 2.5^{n-1} . $$ Therefore, setting $k=\frac{30}{31}$, we get $p(n) \leqslant 5 \cdot 2.5^{n-1}$ for every $n \geqslant 3$. It remains to prove, by mathematical induction, the inequalities (2) where $k=\frac{30}{31}$. They hold for $n=3$. If (2) holds, we also have $$ \begin{gathered} a_{n+1}=a_{n}+b_{n}+2 c_{n} \leqslant k \cdot 2.5^{n} \cdot\left(1+\frac{2}{3}+\frac{4}{5}\right)=k \cdot 2.5^{n} \cdot \frac{37}{15}2.4 p(n+2) . \end{aligned} $$ Similarly, $$ \begin{aligned} p(n+3) & \leqslant 2\left(p(n+2)+p(n+1)-\frac{p(n+1)}{2.5}\right) \leqslant \\ & \leqslant 2\left(p(n+2)+\frac{3}{5} \cdot \frac{p(n+2)}{2.4}\right)=2.5 p(n+2) \end{aligned} $$ The equalities $5 \cdot 2.4^{0}=p(1)=5 \cdot 2.5^{0}$ and the inequalities of (4) imply that the inequality $5 \cdot 2.4^{n-1} \leqslant p(n) \leqslant 5 \cdot 2.5^{n-1}$ holds for every positive integer $n$. Poznámka. The equation (3) is called linear differential equation with constant coefficients. The well-known recurrent formula $g_{n+1}=g_{n} \cdot q$ for geometric sequences indicates that the equation (3) could be satisfied by some geometric sequences, i. e., $p(n)=q^{n}$. Substituting into (3) yields the so-called characteristic equation for the common ratio $q$ : $$ q^{3}-2 q^{2}-2 q+2=0, $$ which has three real roots $q_{1} \doteq-1.170086487, q_{2} \doteq 0.688892182, q_{3} \doteq 2.481194304$. It can be proved that every solution of the equation (3) is a linear combination of the sequences $\left\{q_{1}^{n}\right\},\left\{q_{2}^{n}\right\}$ and $\left\{q_{3}^{n}\right\}$, i. e., $$ p(n)=\alpha \cdot q_{1}^{n}+\beta \cdot q_{2}^{n}+\gamma \cdot q_{3}^{n} . $$ The coefficients $\alpha, \beta, \gamma$ can be determined from the system of equations $\alpha q_{1}+\beta q_{2}+\gamma q_{3}=p(1)=5, \alpha q_{1}^{2}+\beta q_{2}^{2}+\gamma q_{3}^{2}=p(2)=12, \alpha q_{1}^{3}+\beta q_{2}^{3}+\gamma q_{3}^{3}=p(3)=30$. Instead of the third equation, we could use $\alpha+\beta+\gamma=p(0)=2$; the number $p(0)$ cannot be defined as the number of 0 -digit integers, yet $p(0)=2$ is taken to satisfy (3) with $n=1$. Therefore, we get the approximation $$ p(n) \approx-0.063627546 q_{1}^{n}+0.108637179 q_{2}^{n}+1.954990367 q_{3}^{n} $$ for the terms of the examined sequence. (This approximation can be used for $n$ up to around 20; for greater values of $n$, the rounding errors begin to take effect.) 4. Find all functions $f: \mathbb{R} \backslash\{0\} \rightarrow \mathbb{R}$ such that for all non-zero numbers $x, y$, $$ x \cdot f(x y)+f(-y)=x \cdot f(x) . $$ (Pavel Calábek) Solution. Substituting $x=1$ gives $$ f(y)+f(-y)=f(1) . $$ Denoting $f(1)=a$, we have $f(-y)=a-f(y)$. Substituting $y=-1$, we get $$ x \cdot f(-x)+f(1)=x \cdot f(x), $$ i. e., $$ x(a-f(x))+a=x \cdot f(x), $$ hence $$ f(x)=\frac{a(x+1)}{2 x}=\frac{a}{2}\left(1+\frac{1}{x}\right) . $$ Finally, we check that for any real number $c$, the function $f(x)=c(1+1 / x)$ satisfies the conditions: $$ \begin{aligned} x \cdot f(x y)+f(-y) & =x \cdot c\left(1+\frac{1}{x y}\right)+c\left(1+\frac{1}{-y}\right)=c\left(x+\frac{1}{y}+1-\frac{1}{y}\right)= \\ & =c(x+1)=c x\left(1+\frac{1}{x}\right)=x \cdot f(x) . \end{aligned} $$ Other Solution. Let us set $f(1)=a$. Substituting $y=-1$ into the given equation yields $$ x f(-x)+a=x f(x), $$ i. e., $$ f(-x)=f(x)-\frac{a}{x} \text {. } $$ The given equation can be rearranged into the form $$ f(x y)+\frac{1}{x} \cdot f(-y)=f(x) $$ whence, using (1), we have $$ \begin{gathered} f(x y)+\frac{1}{x}\left(f(y)-\frac{a}{y}\right)=f(x), \\ f(x y)+\frac{f(y)}{x}-\frac{a}{x y}=f(x) . \end{gathered} $$ Interchanging $x$ and $y$ gives $$ f(y x)+\frac{f(x)}{y}-\frac{a}{y x}=f(y) $$ so, combining the last two equations, we get $$ \frac{f(x)}{y}-\frac{f(y)}{x}=f(y)-f(x) $$ and substituting $y=1$ now gives $$ 2 f(x)=a\left(1+\frac{1}{x}\right) $$ Again, we can easily verify that every function $f(x)=c(1+1 / x)$ is a solution of the given functional equation. 5. Let $I$ be the incenter of a triangle $A B C$. The circle passing through the vertex $B$ and touches the line $A I$ at $I$ intersects the sides $A B$ and $B C$ at points $P$ and $Q$, respectively. Let $R$ be the intersection point of the line $Q I$ and the side $A C$. Prove that $$ |A R| \cdot|B Q|=|P I|^{2} $$ (Jaroslav Švrček) Solution. Let $\alpha, \beta, \gamma$ denote the measures of the interior angles at the vertices $A$, $B, C$, respectively, of the triangle $A B C$, and let $J$ be the intersection point of the line $A I$ and the side $B C$. (Fig. 2). The inscribed angle $P B I$ corresponds to the chord $P I$, while the inscribed angle $Q B I$ corresponds to the chord $I Q$, and since the measure of both of these angles is $\frac{1}{2} \beta$, the chords $P I$ and $I Q$ share the same length as well. ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-10.jpg?height=811&width=1054&top_left_y=1742&top_left_x=541) Fig. 2 Since the inscribed angle $J I Q$ also corresponds to the chord $I Q$, its measure is also $\frac{1}{2} \beta$. It follows from the congruence of vertical angles that $|\angle R I A|=\frac{1}{2} \beta$. This measure is also shared by the inscribed angle $P I A$ as it corresponds to the chord $P I$ of equal length as $I Q$. Further, $|\angle R A I|=|\angle P A I|=\frac{1}{2} \alpha$. The triangles $R I A$ and $P I A$ are thus congruent by ASA, hence $|R I|=|P I|$. Therefore, the measure of the angle $Q I B$ is $$ \begin{aligned} |\angle Q I B| & =180^{\circ}-|\angle A I B|-|\angle J I Q|=180^{\circ}-\left(90^{\circ}+\frac{\gamma}{2}\right)-\frac{\beta}{2}= \\ & =90^{\circ}-\left(\frac{\beta}{2}+\frac{\gamma}{2}\right)=\frac{\alpha}{2}=|\angle R A I| . \end{aligned} $$ The measure of the angle $Q I B$ could also be determined as follows: Since the inscribed angles $A I P$ and $I P Q$ correspond to chords of equal length, we have $|\angle A I P|=\frac{1}{2} \beta=|\angle I P Q|$. The congruence of alternate angles implies that $A I \| P Q$. Hence $|\angle Q P B|=|\angle I A B|=\frac{1}{2} \alpha$, and so $|\angle Q I B|=\frac{1}{2} \alpha$ as well since they are both inscribed angles corresponding to the chord $Q B$. Since $|\angle Q I B|=|\angle R A I|$ and $|\angle Q B I|=|\angle R I A|$, it follows that $A I R \sim I B Q$. Therefore, $|A R| /|R I|=|I Q| /|Q B|$, so $$ |A R| \cdot|Q B|=|R I| \cdot|I Q|=|P I|^{2} $$ To prove similarity of the triangles $A I R$ and $I B Q$, we could have made use of the fact that the triangle $C R Q$ is isosceles, so its median coincides with its angle bisector. 6. In the real numbers, solve the following system of equations: $$ \begin{aligned} & \sin ^{2} x+\cos ^{2} y=\tan ^{2} z, \\ & \sin ^{2} y+\cos ^{2} z=\tan ^{2} x, \\ & \sin ^{2} z+\cos ^{2} x=\tan ^{2} y . \end{aligned} $$ (Pavel Calábek) Solution. Substituting $\cos ^{2} x=a, \cos ^{2} y=b, \cos ^{2} z=c$ leads to the system $$ \begin{aligned} & 1-a+b=\frac{1}{c}-1, \\ & 1-b+c=\frac{1}{a}-1, \\ & 1-c+a=\frac{1}{b}-1, \end{aligned} $$ where $a, b, c \in(0,1\rangle$. Adding these equations together yields $$ \frac{1}{a}+\frac{1}{b}+\frac{1}{c}=6 $$ so the harmonic mean of the numbers $a, b, c$ is $\frac{1}{2}$. Multiplying the equations by the numbers $c$, $a$, and $b$, respectively, we get $$ \begin{aligned} c-a c+b c & =1-c \\ a-a b+a c & =1-a \\ b-b c+a b & =1-b \end{aligned} $$ which sums to $2(a+b+c)=3$. Therefore, the arithmetic mean of the numbers $a, b$, $c$ is $\frac{1}{2}$, too. Since the arithmetic and harmonic means are equal, it must be that $a=$ $b=c=\frac{1}{2}$. We can easily verify that this triple satisfies the system (1). The solutions of the original system are thus exactly the triples $\left(\frac{1}{4} \pi+\frac{1}{2} k \pi, \frac{1}{4} \pi+\frac{1}{2} l \pi, \frac{1}{4} \pi+\frac{1}{2} m \pi\right)$, where $k, l, m$ are integers. Jiné řešení. We use the substitution from the above solution. The system (1) is cyclic; if a triple $(p, q, r)$ satisfies it, then so do the triples $(q, r, p)$ and $(r, p, q)$. Therefore, it suffices to find the solutions for which $a \geqslant b, a \geqslant c$, and all the other solutions can then be obtained by cyclic exchange. Let $a \geqslant b, a \geqslant c$. It follows from the first equation that $1 / c=2-a+b \leqslant 2$, so $c \geqslant \frac{1}{2}$. Similarly, it follows from the third equation that $1 / b=2-c+a \geqslant 2$, so $b \leqslant \frac{1}{2}$, and thus $b \leqslant c$. ¿From the second equation, we have $1 / a=2-b+c \geqslant 2$, so $a \leqslant \frac{1}{2}$. Altogether, $$ \frac{1}{2} \geqslant a \geqslant c \geqslant \frac{1}{2} $$ so $a=c=\frac{1}{2}$. Now, any of the equations of the system (1) yields $b=\frac{1}{2}$. Just as in the previous case, we verify that the found triple satisfies the system (1); so the solutions of the system are the triples $\left(\frac{1}{4} \pi+\frac{1}{2} k \pi, \frac{1}{4} \pi+\frac{1}{2} l \pi, \frac{1}{4} \pi+\frac{1}{2} m \pi\right)$, where $k, l$, $m$ are integers. ## First Round of the 62nd Czech and Slovak Mathematical Olympiad (December 6th, 2012) ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-13.jpg?height=226&width=537&top_left_y=475&top_left_x=742) 1. There are two touching circles, $k_{1}\left(S_{1}, r_{1}\right.$ and $k_{2}\left(S_{2}, r_{2}\right)$ in an rectangle $A B C D$ with $|A B|=9,|B C|=8$. Moreover $k_{1}$ touches $A D$ and $C D$, while $k_{2}$ touches $A B$ and $B C$. a) Prove $r_{1}+r_{2}=5$. b) What is the least and what is the greatest possible area of $A S_{1} S_{2}$ ? (Pavel Novotný) Solution. a) Let $M$ and $N$ be intersections of the line through $S_{1}$ parallel to $A D$. Analogously let $K$ and $L$ be intersections of the line through $S_{2}$ parallel to $A B$. Let $P$ be the intersection of $K L$ and $M N$ (see Fig. 1). The Pythagoras theorem for $S_{1} P S_{2}$ gives $$ \begin{gathered} \left(r_{1}+r_{2}\right)^{2}=\left(8-r_{1}-r_{2}\right)^{2}+\left(9-r_{1}-r_{2}\right)^{2} \\ \left(r_{1}+r_{2}\right)^{2}-34\left(r_{1}+r_{2}\right)+145=0 \\ \left(r_{1}+r_{2}-5\right)\left(r_{1}+r_{2}-29\right)=0 . \end{gathered} $$ Since $2 r_{1} \leqslant 8,2 r_{2} \leqslant 8$, we have $r_{1}+r_{2}=5$. ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-13.jpg?height=771&width=851&top_left_y=1625&top_left_x=568) Fig. 1 b) Let $Q$ be a foot of a perpendicular to $A B$ from $S_{2}$, let $R$ be a foot of a perpendicular to $A D$ from $S_{1}$ and let $T$ be the intersection of $Q S_{2}$ and $R S_{1}$ (Fig.1). The area $S$ of $A S_{2} S_{1}$ is given by the difference of the area of rectangle $A Q T R$ and areas of right triangles $A Q S_{2}, A S_{1} R$, and $S_{1} S_{2} T$ : $$ \begin{aligned} S= & \left(9-r_{2}\right)\left(8-r_{1}\right)-\frac{1}{2} r_{2}\left(9-r_{2}\right)-\frac{1}{2} r_{1}\left(8-r_{1}\right)-\frac{1}{2}\left(9-r_{1}-r_{2}\right)\left(8-r_{1}-r_{2}\right) \\ = & 72-9 r_{1}-8 r_{2}+r_{1} r_{2}-\frac{9}{2} r_{2}+\frac{1}{2} r_{2}^{2}-4 r_{1}+\frac{1}{2} r_{1}^{2}-36+\frac{17}{2}\left(r_{1}+r_{2}\right) \\ & -\frac{1}{2}\left(r_{1}+r_{2}\right)^{2} \\ = & 36-\frac{9}{2} r_{1}-4 r_{2}=36-\frac{9}{2} r_{1}-4\left(5-r_{1}\right)=16-\frac{1}{2} r_{1}, \end{aligned} $$ where we used $r_{1}+r_{2}=5$. Further we know $2 r_{1} \leqslant 8$ and $2 r_{2} \leqslant 8$ which implies $r_{1}$, $r_{2} 1 \leqslant r_{1}, r_{2} \leqslant 4$, thus $$ S=16-\frac{1}{2} r_{1} \in\left\langle 14, \frac{31}{2}\right\rangle $$ and the least possible value of the area is 14 , for $r_{1}=4$ and $r_{2}=1$, and the greatest value possible is $\frac{31}{2}$, for $r_{1}=1$ and $r_{2}=4$. 2. The number 0 is written on each of the $n+1$ faces of an n-sided pyramid. In a step we choose a vertex and we increase by 1 each number on the faces, which contain the vertex. Show, that in such way, we cannot get number 1 written on each face. (Peter Novotný) Solution. Let $b$ the sum of numbers on side faces of the pyramid, let $a$ be the number on the base. After a step involving any base vertex, $b$ increases or decreases by 2 and $a$ increases or decreases by 1 , that means the the value $V=b-2 a$ stays the same. If we choose for a step the apex, only $b$ increases or decreases by $n$, thus $V$ increases or decreases by $n$ as well. Therefore $V$ is in the process always divisible by $n$. But in the position with number 1 written on each side, the corresponding $V$ is $n-2$, which in not divisible by $n$ (as $n>2$ ). 3. Find all real $a, b, c$, such that $$ a^{2}+b^{2}+c^{2}=26, \quad a+b=5 \quad \text { and } \quad b+c \geqslant 7 . $$ (Pavel Novotný) Solution. We show that the only solution is $a=1, b=4$ a $c=3$. Let $s=b+c \geqslant 7$. Substituting $a=5-b$ and $c=s-b$ the first condition gives $$ (5-b)^{2}+b^{2}+(s-b)^{2}=26 $$ thus $$ 3 b^{2}-2(s+5) b+s^{2}-1=0 . $$ The equation has a real solution iff the discriminant $4(s+5)^{2}-12\left(s^{2}-1\right) \geqslant 0$. This yields $s^{2}-5 s-14 \leqslant 0$, or $(s+2)(s-7) \leqslant 0$. Since $s \geqslant 7$, there must be $s=7$. If we substitute to (5) we get $$ 3 b^{2}-24 b+48=0 ; $$ with the only solution $b=4$. Then $a=1$ and $c=3$. ## Second Round of the 62nd Czech and Slovak Mathematical Olympiad (January 15th, 2013) ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-15.jpg?height=234&width=554&top_left_y=471&top_left_x=728) 1. In a group of 21 different integers a sum of arbitrary eleven ones is greater than a sum of the remaining ten numbers. a) Prove that every considered number is greater than 100. b) Find all such groups of 21 different integers containing number 101. (Jaromír Šimša) Solution. a) Let the numbers are $a_{1}a_{12}+a_{13}+\cdots+a_{21} . $$ This follows $$ a_{1}>\left(a_{12}-a_{2}\right)+\left(a_{13}-a_{3}\right)+\cdots+\left(a_{21}-a_{11}\right) \geqslant 10 \cdot 10=100 . $$ Since the least of the numbers is greater then 100, the other ones are greater than 100 too. b) We have proved $a_{1} \geqslant 101$. The other numbers are greater than 101. If the number 101 is in the group of positive integers, then $a_{1}=101$ holds. The strict inequality (1) gives $$ \left(a_{12}-a_{2}\right)+\left(a_{13}-a_{3}\right)+\cdots+\left(a_{21}-a_{11}\right) \leqslant a_{1}-1=100, $$ and because $a_{i+10}-a_{i} \geqslant 10$, the equality $a_{i+10}-a_{i}=10$ holds for every $i \in$ $\{2,3, \ldots, 11\}$. It comes to pass if and only if the numbers $a_{2}, a_{3}, \ldots, a_{21}$ are consecutive integers. The required group consists of number 101 and arbitrary 20 consecutive integers which are greater than 101. Then the difference of sums of 11 minimal numbers and 10 maximal numbers is 1 . 2. Let $A, B$ be sets of positive integers such that a sum of arbitrary two different numbers from $A$ is in $B$ and a ratio of arbitrary two different numbers from $B$ (greater one to smaller one) is in $A$. Find the maximum number of elements in $A \cup B$. (Martin Panák) Solution. Initially we will prove that the set $A$ consists from at most two numbers. Suppose that three numbers $ar_{2}$ ). Using Pythagoras' theorem for a triangle $F S_{2} S_{1}$ we obtain $$ \left(r_{1}+r_{2}\right)^{2}=\left(r_{1}-r_{2}\right)^{2}+D E^{2} $$ which follows $D E=2 \sqrt{r_{1} r_{2}}$. An equality $A B=A D+D E+E B$ gives $$ c=r_{1} \cot \frac{\alpha}{2}+2 \sqrt{r_{1} r_{2}}+r_{2} \cot \frac{\beta}{2}=3 r_{1}+2 \sqrt{r_{1} r_{2}}+2 r_{2}, $$ and since $r_{1}=\frac{9}{4} r_{2}$ we obtain $$ \frac{27}{4} r_{2}+3 r_{2}+2 r_{2}=5 $$ which follows $$ r_{2}=\frac{20}{47}, \quad r_{1}=\frac{45}{47} $$ Remark. Both circles lie really in the triangle $A B C$ because an incircle of the triangle has diameter $\varrho=a b /(a+b+c)=1$, while both values $r_{1}, r_{2}$ are less than 1 . 4. Prove that positive $a, b, c$ are length of sides of a triangle if and only if a system of equations $$ a(y z+x)=b(z x+y)=c(x y+z), \quad x+y+z=1 $$ with unknowns $x, y, z$ has a solution in positive reals. (Tomáš Jurík) Solution. Let $a, b, c$ be positive numbers. We search a solution of the system of equations in the set of positive integers. Due to $x+y+z=1$ the numbers $x, y, z$ are in an interval $(0,1)$. Substituting $z=1-x-y$ we obtain $$ a\left(y-x y-y^{2}+x\right)=c(x y+1-x-y), \quad b\left(x-x^{2}-x y+y\right)=c(x y+1-x-y), $$ these equations can be rewritten as $$ a y(1-y)+a x(1-y)=c(1-x)(1-y), \quad b x(1-x)+b y(1-x)=c(1-x)(1-y) . $$ Since $x<1, y<1$, we have $$ a y+a x=c-c x, \quad b x+b y=c-c y . $$ From the previous two equations we obtain $$ x+y=\frac{2 c}{a+b+c} \quad \text { a } \quad x-y=\frac{(b-a)(x+y)}{c}=\frac{2(b-a)}{a+b+c} $$ then we get formulas for $x, y$ and finally by $z=1-x-y$ we find a formula for $z$ too: $$ x=\frac{b+c-a}{a+b+c}, \quad y=\frac{c+a-b}{a+b+c}, \quad z=\frac{a+b-c}{a+b+c} . $$ The system has a solution in positive reals if and only if $b+c>a, c+a>b, a+b>c$ holds, what is equivalent with existence of a triangle with sides $a, b, c$. We need not do check the values (1) due to equivalence of all rearrangements. Other Solution. Here is an easier way to obtain (1). Since $x+y+z=1$ we can rewrite the first part of the system as $$ a(1-y)(1-z)=b(1-z)(1-x)=c(1-x)(1-y) . $$ Dividing $(1-x)(1-y)(1-z)$ (what is nonzero, even positive) we obtain equivalent system $$ \frac{a}{1-x}=\frac{b}{1-y}=\frac{c}{1-z} $$ If $s$ is common (positive) value of three previous fractions, we can easy get $$ x=1-\frac{a}{s}, \quad y=1-\frac{b}{s}, \quad z=1-\frac{c}{s}, $$ which substituting to the equation $x+y+z=1$ gives $$ s=\frac{a+b+c}{2} . $$ It follows from (3) that this $s$ yields the formulae (1), and then the proof of the problem statement. ## Final Round of the 62nd Czech and Slovak Mathematical Olympiad
(March 18-19, 2013) ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-19.jpg?height=234&width=557&top_left_y=474&top_left_x=727) 1. Find all pairs of integers $a, b$ such that $$ \frac{a^{2}+1}{2 b^{2}-3}=\frac{a-1}{2 b-1} $$ (Pavel Novotný) Solution. Obviously $a \neq 1$, thus we can rewrite the equation as $$ \frac{a^{2}+1}{a-1}=\frac{2 b^{2}-3}{2 b-1} $$ The numerator of the fraction on the left is positive, the numerator on the right is negative just for $b \in\{-1,0,1\}$. For $b=-1$ we get $3 a^{2}-a+4=0$, which has no real solution. Similarly for $b=0$ we get $a^{2}-3 a+4=0$ which has no real solution either. For $b=1$ we get $a^{2}+a=a(a+1)=0$, with solutions $a \in\{0,-1\}$. Thus pairs $(0,1)$ and $(-1,1)$ are solutions of the problem. Let us further assume $2 b^{2}-3>0$, and let us find out with which numbers we can reduce the fractions in (1). If some integer $n$ divides both $a^{2}+1$ and $a-1$, it divides $a^{2}+1-(a+1)(a-1)=2$ as well. Similarly if $n$ divides both $2 b^{2}-3$ and $2 b-1$, it divides $(2 b-1)(2 b+1)-$ $2\left(2 b^{2}-3\right)=5$. Thus there are four possibilities to fulfill the equation in (1). (i) $a^{2}+1=2 b^{2}-3$ and $a-1=2 b-1$, which has no real solution. (ii) $a^{2}+1=2\left(2 b^{2}-3\right)$ and $a-1=2(2 b-1)$; substituting $a=4 b-1$ into the first equation we get $3 b^{2}-2 b+2=0$, with no real solutions. (iii) $5\left(a^{2}+1\right)=2 b^{2}-3$ and $5(a-1)=2 b-1$, with solution $a=0, b=-2$. (iv) Finally $5\left(a^{2}+1\right)=2\left(2 b^{2}-3\right)$ and $5(a-1)=2(2 b-1)$ with solutions $a=-1$, $b=-2$ and $a=7, b=8$. Thus there are five solutions of the problem: $$ (0,1),(-1,1),(0,-2),(-1,-2),(7,8) \text {. } $$ 2. Each of $n$ Robin Hoods $(n \geqslant 3)$ robbed some coins. Together they have earned 100n coins. They have decided to cut the loot in a following way: in one step one Robin can take his two coins and give to some other two Hoods, one coin each. Find all positive integers $n \geqslant 3$ for which they can split the loot in equal parts (100 coins each). (Ján Mazák) Solution. Let $z_{i}$ denotes through the process the number of coins of $i$ th Robin Hood. Let $n=3$. After any step, $z_{1}-z_{2}$ modulo 3 does not change. That means for $z_{1}=101, z_{2}=100$, and $z_{3}=99$ (out of many choices), $z_{1}$ will never be the same as $z_{2}$. Thus $n=3$ is not a solution. Now we show that for each $n \geqslant 4$ any initial $z_{i}$ the loot can be split in equal parts. Let $s=\sum\left|z_{i}-100\right|$. We decrease number $s$ as long as it can be done in the way, that some of the outlaws with maximal count of coins gives his two coins to (some of the) Hoods, with the minimal count of coins. If $s$ can be reduced to 0 in this way, we are done. If $s \neq 0$, some of the outlaws has $100-k$ coins $(k>0), k$ outlaws have 101 coins each and all the others have 100 coins each. If $k \geqslant 2$, we decrease $s$ in two steps: $$ 100-k, 101,101 \longrightarrow 100-k+1,102,99 \longrightarrow 100-k+2,100,100 . $$ If $k$ is even, then after $\frac{1}{2} k$ such "double" steps every outlaw will have 100 coins each. If $k$ is odd then we end in the state in which one of the outlaws has 99 coins, one has 101 coins and all the others have 100 coins. We finish as follows: $$ 99,100,100,101 \longrightarrow 99,101,101,99 \longrightarrow 99,102,99,100 \longrightarrow 100,100,100,100 . $$ 3. Given a parallelogram $A B C D$ with center $S$, denote by $O$ the incenter of triangle $A B D$ and by $T$ the point of contact of the incircle of triangle $A B D$ with the diagonal $B D$. Prove that lines $O S$ and $C T$ are parallel. (Jaromír Šimša) Solution. Denote the lengths of $A B, A D$, and $B D$ by $a, b$, and $c$, respectively. If $a=b$ then both $O S$ and $C T$ coincide with $A C$ and the conclusion is trivial. Suppose $a>b$ (the case $b>a$ being completely analogous). Let $T^{\prime}$ be the reflection of $T$ in $S$ (Fig. 1). As $C T \| A T^{\prime}$, it suffices to prove $O S \| A T^{\prime}$. Denoting by $E$ the intersection of $A O$ and the diagonal $B D$ we may as well prove $$ \frac{A O}{O E}=\frac{T^{\prime} S}{S E} $$ (note that since $a>b$, points $T^{\prime}, S, E$, and $T$ lie on the diagonal $B D$ in this order). We express both ratios in terms of $a, b, c$. ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-21.jpg?height=471&width=1145&top_left_y=267&top_left_x=427) Fig. 1 First, it is well-known that $$ D T=\frac{b+c-a}{2}, \quad \text { and hence } \quad T^{\prime} S=T S=\frac{c}{2}-\frac{b+c-a}{2}=\frac{a-b}{2} . $$ Next, the Angle Bisector Theorem in triangles $A B D$ and $A E D$ implies $$ B E: E D=A B: A D \quad \text { and } \quad A O: O E=A D: D E $$ which in turn gives $$ \begin{gathered} B E=\frac{a c}{a+b} \quad \text { and } D E=\frac{b c}{a+b}, \\ S E=B E-B S=\frac{a c}{a+b}-\frac{c}{2}=\frac{c(a-b)}{2(a+b)}, \\ \frac{A O}{O E}=\frac{A D}{D E}=\frac{b}{\frac{b c}{a+b}}=\frac{a+b}{c} . \end{gathered} $$ Finally for the right-hand side we calculate $$ \frac{T^{\prime} S}{S E}=\frac{\frac{a-b}{2}}{\frac{c(a-b)}{2(a+b)}}=\frac{a+b}{c} $$ which finishes the proof. 4. There is written a number $N$ (in the decimal representation) on the board. In a step we erase the last digit $c$ and instead of the number $m$, which is now left on the board, we write number $|m-3 c|$ (for example, if $N=1204$ was written on the board, then after the step there will be $120-3 \cdot 4=108)$. We continue until there is a one-digit number on the board. Find all positive integers $N$ such that after a finite number of steps number 0 is left on the board. (Peter Novotný) Solution. Let us find $N$, which lead to zero on the board after only one step. Obviously $|m-3 c|=0$ iff $m=3 c$, which is $N=10 m+c=31 c$. All such $N$ are of the form $N=31 c, c \in\{1,2, \cdots, 9\}$. We show that the solution of the problem are exactly all multiples of 31 . Since $c=N-10 m$, there is $m-3 c=31 m-3 N$, that is the divisibility by 31 is preserved in the step. Now we show, that a multiple of 31 actually decreases in the step. We have already shown that for $N \leqslant 31 \cdot 9$. Let $N=31 k$, where $k \geqslant 10$. Then $m \geqslant 31$, $m-3 c>0$, thus $|m-3 c|=31 m-3 N<4 N-3 N=N$ and we are done. 5. Let $A B C D$ be a parallelogram such that the projections $K, L$ of $D$ onto the sides $A B, B C$, respectively, are their interior points. Prove that $K L \| A C$ if and only if $$ \angle B C A+\angle A B D=\angle B D A+\angle A C D . $$ (Ján Mazák) Solution. Alternate angles $A B D$ and $C D B$ are equal (Fig.2), hence $\angle B C A+$ $\angle A B D+\angle B D A+\angle A C D=180^{\circ}$. The equality $\angle B C A+\angle A B D=\angle B D A+\angle A C D$ thus holds if and only if $$ \angle B C A+\angle A B D=90^{\circ} \text {. } $$ ![](https://cdn.mathpix.com/cropped/2024_04_17_5816354d2b4b35f9c465g-22.jpg?height=490&width=606&top_left_y=1157&top_left_x=765) Fig. 2 Points $K$ and $L$ lie on a circle with diameter $B D$. Hence the inscribed angles $B D K$ and $B L K$ are equal and (due to equal alternate angles $A B D$ and $C D B$ ) $$ \angle B L K+\angle A B D=\angle B D K+\angle C D B=90^{\circ} \text {. } $$ Lines $K L$ and $A C$ are parallel if and only if $\angle B L K=\angle B C A$ which is by the last equality equivalent to (1). The equivalence is thus proven. 6. Find all real p such that the inequality $$ \sqrt{a^{2}+p b^{2}}+\sqrt{b^{2}+p a^{2}} \geqslant a+b+(p-1) \sqrt{a b} $$ holds for any real $a$ and $b$. (Jaromír Šimša) Solution. If $a=b=1$ the parameter $p>0$ has to satisfy: $$ \begin{aligned} 2 \sqrt{p+1} & \geqslant p+1 \\ 2 & \geqslant \sqrt{p+1} \\ p & \leqslant 3 \end{aligned} $$ We show that for $p \in(0,3\rangle$ the inequality holds for any real $a$ and $b$. If $p \in(0,1\rangle$ the inequality holds trivially: $$ \sqrt{a^{2}+p b^{2}}>a, \quad \sqrt{b^{2}+p a^{2}}>b \quad \text { a } \quad(p-1) \sqrt{a b} \leqslant 0 . $$ Let further be $p \in(1,3\rangle$. The left hand side, LHS, of the inequality can be understood as the sum of the lengths of vectors $(a, b \sqrt{p})$ and $(b, a \sqrt{p}) \in \mathbb{R}^{2}$, According to the triangle inequality then $$ \begin{aligned} L H S=\sqrt{a^{2}+p b^{2}}+\sqrt{b^{2}+p a^{2}} & =|(a, b \sqrt{p})|+|(b, a \sqrt{p})| \\ & \geqslant|(a+b,(a+b) \sqrt{p})|=(a+b) \sqrt{1+p} . \end{aligned} $$ For the RHS we have (with the help of AM-GM inequality) $$ R H S=a+b+(p-1) \sqrt{a b} \leqslant a+b+(p-1) \frac{a+b}{2}=\frac{(p+1)(a+b)}{2} . $$ Now $L H S \geqslant R H S$ evidently, because even stronger inequality $$ (a+b) \sqrt{p+1} \geqslant \frac{(p+1)(a+b)}{2} $$ is equivalent to $\sqrt{p+1} \leqslant 2$, which is obviously satisfied for any $p \in(1,3\rangle$. Remark. We can get (1) using Cauchy-Schwarz inequality for pairs $(a, b \sqrt{p})$ and $(1, \sqrt{p})$ : $$ a+p b \leqslant \sqrt{a^{2}+p b^{2}} \cdot \sqrt{1+p} $$ which implies $$ \sqrt{a^{2}+p b^{2}} \geqslant \frac{a+p b}{\sqrt{1+p}}, \quad \sqrt{b^{2}+p a^{2}} \geqslant \frac{b+p a}{\sqrt{1+p}} $$ summing last two inequalities we get (1) and analogously for the second inequality. The Czech team is supported by the Karel Janeček's foundation. Účast reprezentačního družstva ČR na 54. mezinárodní matematické olympiádě byla podpořena Nadačním fondem Karla Janečka na podporu vědy a výzkumu, sponzorem matematické olympiády v ČR.