# 2008 57th Czech and Slovak Mathematical Olympiad Edited by Karel Horák Translated into English by Miroslav Engliš 1. Find all triples $a, b, c$ of real numbers with the following property: each of the equations $$ \begin{aligned} & x^{3}+(a+1) x^{2}+(b+3) x+(c+2)=0, \\ & x^{3}+(a+2) x^{2}+(b+1) x+(c+3)=0, \\ & x^{3}+(a+3) x^{2}+(b+2) x+(c+1)=0 \end{aligned} $$ has three distinct real roots, but altogether these roots form just five distinct numbers. Solution. Assume that the numbers $a, b, c$ have the required property. Observe first of all that any two of the given equations must have a common root, otherwise they would have altogether at least six distinct roots. The common roots of the given three cubic equations are roots of the quadratic equations obtained by subtracting them. These three quadratic equations turn out to be independent of the parameters $a, b, c$ : $$ \begin{aligned} x^{2}-2 x+1=(x-1)^{2} & =0, \\ 2 x^{2}-x-1=(2 x+1)(x-1) & =0, \\ x^{2}+x-2=(x-1)(x+2) & =0 . \end{aligned} $$ We see that the equations (1) and (2) have only one common root $x=1$, thus together they have exactly five distinct roots. Hence each of the roots of the equation (3) must also be a root of at least one of the equations (1) or (2). From the subtracted equations it follows that number $x=1$ is also a root of the equation (3). We claim that the other two roots of the equation (3) cannot be at the same time also roots of (1) or (2). Otherwise one of the equations (1), (2) would have the same three roots as the equation (3), and thus would have the same coefficient not only at the cubic term. This is however not the case, since for any value of the parameter $c$ the constant terms $c+1, c+2, c+3$ of the three equations are always mutually distinct. The equation (3) has thus, in addition to $x=1$, one more common root with the equation (1) and one common root with the equation (2); from (3-1) and (3-2) we see that these common roots are $x=-\frac{1}{2}$ and $x=-2$. The left hand side of the equation (3) thus decomposes as $$ (x-1)(x+2)\left(x+\frac{1}{2}\right)=x^{3}+\frac{3}{2} x^{2}-\frac{3}{2} x-1 . $$ Comparing this with the coefficients of (3) we already obtain $a=-\frac{3}{2}, b=-\frac{7}{2}, c=-2$. From our argument it follows that for these values of $a, b, c$ the equation (3) has the roots $1,-\frac{1}{2}$ and -2 , that the numbers $1,-\frac{1}{2}$ are roots of the equation (1) and that the numbers $1,-2$ are roots of the equation (2). What remains to be checked is that the third roots of the equations (1) and (2) are another two (distinct) numbers. These third roots can be conveniently found using Vièta's relations. Because the product of the three roots of (1) is the number opposite to the constant term $c+2=0$, the third root of (1) must be the number 0 . Similarly the product of the roots of (2) equals -1 , thus the third root of the equation (2) is the number $x=\frac{1}{2}$. Conclusion. The problem has the unique solution $a=-\frac{3}{2}, b=-\frac{7}{2}, c=-2$. 2. In the plane a segment $A V$ and an acute angle of magnitude $\alpha$ are given. Find the locus of the circumcenters of all triangles $A B C$ with interior angle $\alpha$ at the vertex $A$ and with orthocenter $V$. Solution. We begin by proving a useful general assertion about the orthocenter $V$ of any acute triangle $A B C$. Denote by $V^{\prime}$ the intersection of the line containing the altitude $C C_{0}$ with the circumcircle of the triangle $A B C$ (Fig. 1). The right triangles ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-04.jpg?height=580&width=552&top_left_y=1155&top_left_x=752) Fig. 1 $C_{0} V A$ and $A_{0} V C$ are similar (they have also the same angle at the vertex $V$ ), therefore $\angle B A A_{0}=\angle B C C_{0}$. The angles $B C C_{0}$ and $V^{\prime} A B$ are congruent as they subtend the same $\operatorname{arc} V^{\prime} B$, hence the points $V$ and $V^{\prime}$ are symmetric with respect to the line $A B$. Denoting the angles in the triangle $A B C$ in the standard way, we have $\angle A C V^{\prime}=$ $\angle A C C_{0}=90^{\circ}-\alpha$, so for the length of the segment $A V$, in view of the above symmetry, we get $$ A V=A V^{\prime}=2 r \sin \left(90^{\circ}-\alpha\right)=2 r \cos \alpha $$ where $r$ is the radius of the circumcircle $k$ of the triangle $A B C$ (and $A V^{\prime} C$ ). The same formula (1) also holds for a triangle $A B C$ with acute interior angle $\alpha$ at the vertex $A$ even if one of the other interior angles is right or obtuse (Fig.2): the argument still works, word by word. ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-05.jpg?height=562&width=617&top_left_y=156&top_left_x=751) Fig. 2 Coming back to the solution of our problem, the formula (1) leads to the conclusion that the circumcircles of all the triangles $A B C$ in question have the same radius $$ r=\frac{A V}{2 \cos \alpha} $$ so their centers $O$ have a fixed distance $r$ from the point $A$. We must, however, determine what part of the circle $l(A, r)$ will the centers $O$ fill; certainly this will be a set symmetric with respect to the line $A V$, since the symmetry with respect to $A V$ transforms any admissible triangle into another admissible triangle. With this aim we express the magnitude of the angle $V A O$ in terms of the interior angles $\beta=\angle A B C$ and $\gamma=\angle A C B$. We may also assume that $\beta \geqslant \gamma$ (otherwise we would interchange the notations $B, C$ for the vertices from the very beginning). Assume first that $\beta<90^{\circ}$, so the triangle $A B C$ is acute and we can again use Fig. 1. From the isosceles triangle $A B O$ with interior angle $2 \gamma$ at the main vertex $O$ we see that $\angle B A O=90^{\circ}-\gamma$; on the other hand, from the right triangle $B A A_{0}$ we obtain $\angle B A V=90^{\circ}-\beta$. Since both points $O, V$ lie in the half-plane $A B C$, we obtain for the angle $V A O$ the expression $$ \angle V A O=\angle B A O-\angle B A V=\left(90^{\circ}-\gamma\right)-\left(90^{\circ}-\beta\right)=\beta-\gamma $$ (recall that $\beta \geqslant \gamma$ ). In the case of $\beta \geqslant 90^{\circ}$ as in Fig. 2 we similarly find that $\angle B A O=90^{\circ}-\gamma$ and $\angle B A V=\beta-90^{\circ}$, whence $$ \angle V A O=\angle B A O+\angle B A V=\left(90^{\circ}-\gamma\right)+\left(\beta-90^{\circ}\right)=\beta-\gamma . $$ We thus see that $\angle V A O=\beta-\gamma$ no matter whether the triangle $A B C$ is acute, right or obtuse. Now it is already easy to finish the solution: from the formula obtained we have the estimate $$ \angle V A O=\beta-\gamma<\beta+\gamma=180^{\circ}-\alpha, $$ so the point $O$ lies on the arc of the circle $l(A, r)$ determined by the inequality $$ \angle V A O<180^{\circ}-\alpha . $$ Conversely, for any angle $\epsilon, 0^{\circ} \leqslant \epsilon<180^{\circ}-\alpha$, we easily compute what must be the magnitudes of the interior angles $\beta$ and $\gamma$ in order that $\angle V A O=\epsilon$ : $$ \beta=\frac{180^{\circ}-\alpha+\epsilon}{2}, \quad \gamma=\frac{180^{\circ}-\alpha-\epsilon}{2} . $$ Consequently, if we inscribe into an arbitrary circle of radius $r$ given by (2) an auxiliary triangle $A^{\prime} B^{\prime} C^{\prime}$ with the given angle $\alpha$ at the vertex $A^{\prime}$ and the computed angles $\beta$, $\gamma$ at the vertices $B^{\prime}$ and $C^{\prime}$, respectively, then for its orthocenter $V^{\prime}$ and circumcenter $O^{\prime}$ there will hold the equalities $A^{\prime} V^{\prime}=A V$ and $\angle V^{\prime} A^{\prime} O^{\prime}=\epsilon$. Applying a congruence which maps the segment $A^{\prime} V^{\prime}$ into the segment $A V$, the triangle $A^{\prime} B^{\prime} C^{\prime}$ gets mapped into an admissible triangle $A B C$, whose circumcenter $O$ lies on the circle $l$ and satisfies $\angle V A O=\epsilon$. Conclusion. The sought locus of circumcenters $O$ is the arc of the circle with center $A$ and radius $r=\frac{1}{2} A V / \cos \alpha$ determined by the inequality $\angle V A O<180^{\circ}-\alpha$ (the endpoints of the arc do not belong to the locus, cf. Fig.3). ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-06.jpg?height=728&width=685&top_left_y=978&top_left_x=617) Fig. 3 3. A set $M$ consists of $2 n$ mutually distinct positive real numbers, where $n \geqslant 2$. Consider $n$ rectangles, whose dimensions are numbers from $M$, with each element of $M$ being used exactly once. Determine the dimensions of these rectangles if the sum of their areas is known to be a) the greatest possible; b) the least possible. Solution. Consider first the simplest situation when $n=2$. The given set $M$ thus consists of four positive numbers, which we denote in the order of their magnitude by $$ a_{1}a_{1} a_{3}+a_{2} a_{4}>a_{1} a_{4}+a_{2} a_{3} $$ This is easily checked directly, and also follows from the general fact that $$ aa d+b c $$ which holds for any four-tuple of real numbers $a, b, c, d$ owing to the equality $$ (a c+b d)-(a d+b c)=(b-a)(d-c) . $$ Indeed, the inequality on the left in (1) follows from (2) upon choosing $$ a=a_{1}, \quad b=a_{4}, \quad c=a_{2}, \quad d=a_{3} \quad\left(\text { recall that } a_{1}2$. Replacing these by the rectangles $a_{1} \times a_{2}$ and $a_{i} \times a_{j}$, we obtain an $n$-tuple which has bigger sum of areas, since $$ a_{1} a_{2}+a_{i} a_{j}>a_{1} a_{i}+a_{2} a_{j} $$ in view of (2) and the fact that $a_{1}a_{1} a_{2 n}+a_{i} a_{j} $$ in view of (2) and the inequalities $a_{1}n-3 \geqslant 2$, whence, upon multiplying by $n, s>t \geqslant v$; thus the desired arithmetic mean property must be $t=\frac{1}{2}(v+s)$. This gives the equation $$ n(n-3)=\frac{2 n+n(n-1)}{2} $$ whose only relevant root is $n=7$ (the other root $n=0$ has no sense). Conclusion: the only possible values are $n=4$ and $n=7$. 3. An angle $X S Y$ and a circle $k$ with center $S$ are given in the plane. Consider an arbitrary triangle $A B C$ with incircle $k$ whose vertices $A$ and $B$ lie on the half-lines $S X$ and $S Y$, respectively. Find the locus of the vertices $C$ of all such triangles $A B C$. Solution. Let $r$ denote the radius of $k$ and $\omega$ the magnitude of the (convex) angle $X S Y$. Denoting the interior angles of the triangle $A B C$ in the usual way, we have (Fig. 1) $$ \omega=\angle A S B=180^{\circ}-\angle S A B-\angle S B A=180^{\circ}-\frac{\alpha+\beta}{2}=90^{\circ}+\frac{\gamma}{2} . $$ It follows that the sought locus is an empty set if $\omega \leqslant 90^{\circ}$ or $\omega=180^{\circ}$, and that the interior angle $\gamma$ in the triangle $A B C$ must be equal to $$ \gamma=2 \omega-180^{\circ} \text {. } $$ ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-13.jpg?height=571&width=757&top_left_y=1790&top_left_x=661) Fig. 1 From the right triangle $C S T$, where $T$ is the common point of the circle $k$ with the side $A C$ (Fig. 1), we express the length of the hypotenuse $S C$ as $$ S C=\frac{S T}{\sin \frac{1}{2} \gamma}=\frac{r}{\sin \left(\omega-90^{\circ}\right)} $$ The vertex $C$ thus lies on the circle $k_{1}$ with center $S$ and radius $r_{1}=r / \sin \left(\omega-90^{\circ}\right)$. In addition to the angle $A S B$, the angles $A S C$ and $B S C$ (that is, the angles $X S C$ and $Y S C)$ are also obtuse, since $$ \angle A S C=90^{\circ}+\frac{\beta}{2} \quad \text { and } \quad \angle B S C=90^{\circ}+\frac{\alpha}{2} . $$ Altogether we thus see that the point $C$ is an interior point of the arc $K L$ of the circle $k_{1}$, lying outside the given angle $X S Y$, whose endpoints $K, L$ are determined by the right angles $X S K$ and $Y S L$ (Fig. 2). ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-14.jpg?height=580&width=769&top_left_y=855&top_left_x=652) Fig. 2 Conversely, if we choose any interior point $C$ of the arc $K L$, then the half-lines $S X, S Y$ and $S C$ divide the plane into three obtuse angles, with the half-line $C S$ separating the points $X$ and $Y$. From the equality $S C=r_{1}$ it follows that the tangent from the point $C$ to the circle $k$ lying in the half-plane $C S X$ meets the halfline $C S$ at an acute angle of $\omega-90^{\circ}$, and thus intersects the half-line $S X$ at a point which we denote by $A$. Similarly the tangent from the point $C$ to the circle $k$ lying in the half-plane $C S Y$ intersects the half-line $S Y$ at a point which we denote by $B$. Let us now choose the values $\alpha, \beta, \gamma$ so that $\omega-90^{\circ}=\frac{1}{2} \gamma, \angle C S K=\frac{1}{2} \beta$ and $\angle C S L=\frac{1}{2} \alpha$; the from the full angle at the vertex $S$ we get $$ \frac{\alpha+\beta}{2}=180^{\circ}-\omega=90^{\circ}-\frac{\gamma}{2}, \quad \text { or } \alpha+\beta+\gamma=180^{\circ} \text {. } $$ An easy calculation shows that the tangent from the point $A$ just found to the circle $k$, symmetric to the tangent $A C$ with respect to the line $S X$, intersects the half-line $C S$ at an angle of $\frac{1}{2} \gamma+\alpha$, and similarly it follows that the analogous tangent from the point $B$ intersects the said half-line at an angle of $\frac{1}{2} \gamma+\beta$. Since the sum of these two angles equals $180^{\circ}$, the two tangents to $k$ must be parallel, and hence coincide (both points of tangency must lie in the interior of the convex angle $X S Y$ ). The triangle $A B C$ thus has the required properties. ## Second Round of the 57th Czech
Mathematical Olympiad
(January 24th, 2008) $\mathbb{N} / /(0)$ 1. Let $n$ be a given natural number greater than 1. Find all pairs of integers $s$ and $t$ for which the equations $$ x^{n}+s x-2007=0, \quad x^{n}+t x-2008=0 $$ have at least one common root in the domain of the real numbers. Solution. Expressing $x^{n}$ from both equations $$ x^{n}=2007-s x, \quad x^{n}=2008-t x $$ and comparing, we see that $2007-s x=2008-t x$, which implies that the common root can exist only for $s \neq t$ and must equal $x=1 /(t-s)$. This $x$ will be a common root of the two equations if and only if it is a root of one of them; substituting it e.g. into the first equation thus yields, upon a small manipulation, the equivalent condition $$ (t-s)^{n-1} \cdot(s-2007(t-s))=-1 . $$ Since both factors on the left-hand side are integers, they must be the numbers 1 and -1 (in some order), whence in any case $t-s= \pm 1$. a) If $t-s=1$, then the last equation reads $s-2007(t-s)=-1$. The two equations $$ t-s=1, \quad s-2007(t-s)=-1 $$ with unknowns $s, t$ have the unique solution $s=2006$ and $t=2007$. (The common root is $x=1$.) b) If $t-s=-1$, then $s-2007(t-s)=(-1)^{n}$, from which we find similarly as in a) the solution $s=(-1)^{n}-2007$ and $t=(-1)^{n}-2008$. (The common root is $x=-1$.) Conclusion: The problem has exactly two solutions $(s, t)=(2006,2007)$ and $(s, t)=\left((-1)^{n}-2007,(-1)^{n}-2008\right)$. 2. Two circles $k_{1}, k_{2}$ are given in the plane, with different radii, externally tangent at a point $T$. Consider any two points $A \in k_{1}$ and $B \in k_{2}$, both different from $T$, such that the angle $A T B$ is right. a) Show that all such lines $A B$ are concurrent. b) Find the locus of midpoints of all such segments $A B$. Solution. a) Fig. 1 depicts the diameters $C T, D T$ of the two given circles $k_{1}\left(S_{1}, r_{1}\right)$ and $k_{2}\left(S_{2}, r_{2}\right)$, respectively, and a pair of the possible points $A, B$. Because the ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-16.jpg?height=464&width=1161&top_left_y=159&top_left_x=425) Fig. 1 central line $S_{1} S_{2}$ and the common tangent (perpendicular to it) at $T$ of the circles divide the plane into four quadrants, it is clear that the two points $A, B$, which subtend a right angle at $T$ (and must therefore lie in adjacent quadrants) belong to the same half-plane determined by the line $S_{1} S_{2}$. From the Thaletian theorem it follows that $C A \perp A T \perp T B \perp B D$, whence $A C \| B T$ and $A T \| B D$. Thus by the $A A$ theorem $\triangle A C T \sim \triangle B T D$, whence $A C: B T=C T: T D=r_{1}: r_{2}$. Now if e.g. $r_{1}>r_{2}$, then the line $A B$ intersects the half-line $C T$ at a point $H$ such that $C H: T H=r_{1}: r_{2}$ (in view of the similar triangles $A C H$ and $B T H)$. Thanks to this relation, the point $H$ is indeed the same for all the possible lines $A B$. Similar argument applies also in the case of $r_{1}S S_{B}$. Since the half-lines $S S_{A}, S S_{B}$ are bisectors of the complementary angles $A S M$ and $B S M$, the angle $S_{A} S S_{B}$ is right (Fig.6). In the right triangle $S_{A} S S_{B}$ the angle opposite the longer cathetus $S_{A} S$ therefore satisfies $\angle S_{A} S_{B} S>45^{\circ}$, while $\angle S_{B} S_{A} S<45^{\circ}$. This further means that also the angle $S_{A} S A$, which is smaller than $S_{B} S_{A} S$ (since $r_{A}90^{\circ} $$ This means that the line containing the altitude from the vertex $N$ in the triangle $S^{\prime} S N$ has the required property: it separates both circles $k_{A}, k_{B}$ and is perpendicular to $A B$. ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-20.jpg?height=540&width=910&top_left_y=187&top_left_x=573) Fig. 6 Final Round of the 57th Czech Mathematical Olympiad (March 9-12, 2008) ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-20.jpg?height=220&width=531&top_left_y=1055&top_left_x=777) 1. Solve the system of equations $$ \begin{aligned} & x+y^{2}=y^{3}, \\ & y+x^{2}=x^{3} \end{aligned} $$ in the domain of the reals. Solution. Subtracting the first equation from the second we get $$ \begin{aligned} \left(x^{3}-y^{3}\right)-\left(x^{2}-y^{2}\right)+(x-y) & =0, \\ (x-y)\left(x^{2}+x y+y^{2}-x-y+1\right) & =0 . \end{aligned} $$ The second factor is positive for any real $x$ and $y$, since $$ x^{2}+x y+y^{2}-x-y+1=\frac{1}{2}(x+y)^{2}+\frac{1}{2}(x-1)^{2}+\frac{1}{2}(y-1)^{2} $$ and the three squares cannot simultaneously vanish. Any solution $(x, y)$ of the given system must therefore satisfy $x-y=0$, or $y=x$, which reduces the system to the single equation $x+x^{2}=x^{3}$ with roots $x_{1}=0$ and $x_{2,3}=\frac{1}{2}(1 \pm \sqrt{5})$. Thus there are exactly three solutions $(x, y)$, namely $y=x \in\left\{0, \frac{1}{2}(1+\sqrt{5})\right.$, $\left.\frac{1}{2}(1-\sqrt{5})\right\}$. 2. Two circles $k_{1}\left(S_{1} ; r_{1}\right)$ and $k_{2}\left(S_{2} ; r_{2}\right)$ are given, with $S_{1} S_{2}>r_{1}+r_{2}$. Consider an arbitrary triangle $A B C$ with vertex $A$ on the circle $k_{1}$ and vertices $B, C$ on the circle $k_{2}$ such that both lines $A B, A C$ are tangent to $k_{2}$. Find the locus of the a) incenters b) orthocenters of all such triangles $A B C$. Solution. a) The point $A$ can be chosen on the circle $k_{1}$ arbitrarily, the points $B$ and $C$ are then necessarily the common points with $k_{2}$ of the two half-lines starting from $A$ which are tangent to $k_{2}$ (Fig. 1). Owing to their symmetry, $A B C$ is an isosceles ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-21.jpg?height=591&width=1014&top_left_y=704&top_left_x=521) Fig. 1 triangle, symmetric with respect to the line $A S_{2}$. Its incenter is the intersection $S$ of the segment $A S_{2}$ with the circle $k_{2}$. Indeed, this point $S$ lies not only on the bisector of the angle $B A C$, but also on the bisectors of the two (axially symmetric) angles $A B C$ and $A C B$, since $\angle A C S=\angle C B S$ and from the symmetry $\angle C B S=\angle B C S$. Conversely, if we choose any point $S$ on the circle $k_{2}$ in such a way that the half-line $S_{2} S$ intersects the circle $k_{1}$ in at least one point, which we denote by $A$, and to which we construct the triangle $A B C$ as indicated in the first sentence of this solution, then the above argument shows that the point $S$ is the incenter of this triangle $A B C$. The sought locus is thus the set of the intersections of the circle $k_{2}$ with all segments $S_{2} A$, where $A$ runs through the whole circle $k_{1}$. This is apparently the shorter of the two arcs (including the endpoints) into which the circle $k_{2}$ is divided by the two half-lines from $S_{2}$ which are tangent to $k_{1}$. b) We show that the sought locus is the circle which is the image of $k_{1}$ under the homothety with center $S_{2}$ and positive coefficient $$ \lambda=\frac{2 r_{2}^{2}}{S_{1} S_{2}^{2}-r_{1}^{2}} $$ Let us explain why the orthocenter $V$ of each admissible triangle $A B C$ - which lies on the half-line $S_{2} A$ owing to the axial symmetry (in view of the acute angles $A B C$, $A C B$, the points $A, V$ lie in the same half-plane determined by $B C$ ) - is the image under the above-mentioned homothety of the second intersection $Q$ of the half-line $S_{2} A$ with the circle $k_{1}$, which - just as the first intersection $A$ - runs through the whole circle $k_{1}$. (If the half-line $S_{2} A$ is tangent to $k_{1}$, we set $Q=A$.) The desired relation $S_{2} V: S_{2} Q=\lambda$ is obtained upon dividing the two equalities $$ S_{2} A \cdot S_{2} Q=S_{1} S_{2}^{2}-r_{1}^{2} \quad \text { and } \quad \frac{1}{2} S_{2} V \cdot S_{2} A=r_{2}^{2} $$ which we know justify (thus completing the proof). The first equality expresses the (positive) power of the point $S_{2}$ to the circle $k_{1}$. The second equality follows from Euclid's Cathetus Theorem for the cathetus $S_{2} B$ of the right triangle $S_{2} B A$, since the center $P$ of the segment $B C$ is not only the foot of the altitude from the vertex $A$, but also the center of the rhomb $C S_{2} B V$, whence $$ r_{2}^{2}=S_{2} B^{2}=S_{2} P \cdot S_{2} A=\frac{1}{2} S_{2} V \cdot S_{2} A $$ 3. Find for which positive integers $a, b$ is the value of the fraction $$ \frac{b^{2}+a b+a+b-1}{a^{2}+a b+1} $$ equal to an integer. Solution. We show that the only possible pairs $(a, b)$ are those of the form $(1, b)$, where $b$ is an arbitrary positive integer. Denote $X=a^{2}+a b+1=a(a+b)+1$ and $Y=b^{2}+a b+a+b-1=(b+1)(a+b)-1$. If $X$ is a divisor of $Y$, then it is also a divisor of $$ (b+1) X-a Y=(b+1)[a(a+b)+1]-a[(b+1)(a+b)-1]=a+b+1, $$ which as a positive multiple of $X$ thus satisfies the inequality $$ a+b+1 \geqslant X=a^{2}+a b+1 \text {. } $$ Subtracting the 1 and dividing by $a+b$ gives $1 \geqslant a$, so necessarily $a=1$. Conversely, if $a=1$, then $X=b+2$ and $Y=b^{2}+2 b=b(b+2)$, so, indeed, $X \mid Y$. 4. The equality $$ 2008=1111+666+99+88+44 $$ is a decomposition of the number 2008 into the sum of several pairwise distinct multi-digit numbers, each of which is represented (in the decimal system) using the same digits. Find a) at least one such decomposition of the number 8002, b) all such decompositions of the number 8002 which have the least possible number of summands (the order of summands is irrelevant). Solution. a) An example of such decomposition is $8002=3333+999+888+777+666+555+333+99+88+77+66+55+44+22$. In the second part we show that this is the only such decomposition of the number 2008 into 14 summands, and that no decomposition into a smaller number of summands exists. b) A number of the form $\overline{a a a a}$, or $\overline{a a a}$, or $\overline{a a}$, is the $a$-multiple of the number 1111, 111, or 11, respectively. Hence any decomposition of the number 8002 of the type considered can be upon summing the summands with the same number of digits brought into the form $$ 8002=1111 k+111 l+11 m $$ where $k, l, m$ are nonnegative integers not exceeding $1+2+\cdots+9=45$ (since the summands that have been summed were pairwise distinct). We rewrite the last equality as $$ \begin{gathered} 8002=727 \cdot 11+5=11(101 k+10 l+m)+l, \\ 727=101 k+10 l+m+\frac{l-5}{11} . \end{gathered} $$ This implies (in view of $l \leqslant 45$ ) that $l=11 q+5$ where $q \in\{0,1,2,3\}$. We thus obtain the equality $$ 677=101 \cdot 6+71=101(k+q)+10 q+m $$ from which it clearly follows that $k+q=6$ and $10 q+m=71$. The last system has, under the above restriction on $q$, the only solution $q=3, k=3, m=41$. For $l$ this gives $l=38$. To obtain the desired decomposition it remains to decompose these numbers $k, l$, $m$ into sums of one or more distinct single-digit summands. Since we have exactly the nine summands $9+8+7+6+5+4+3+2+1$ to choose from, whose sum equals 45 , it is evidently simpler to list the decompositions for $k, 45-l$ and $45-m$ (the decompositions of $l$ and $m$ can then be obtained upon omitting the used summands from the sum $1+2+\cdots+9)$ : $$ \begin{gathered} k=3=1+2, \\ 45-l=7=1+6=1+2+4=2+5=3+4, \\ 45-m=4=1+3 . \end{gathered} $$ We have thus found all the $2 \cdot 5 \cdot 2$ possible decompositions of the number 8002 , each of which has at least $1+6+7=14$ summands, the only decomposition into 14 summands being the one given in part a) of this solution. 5. At some moment, Charles noticed that the tip of the minute hand, the tip of the hour hand, and a suitable point of the circumference of his watch formed three vertices of an equilateral triangle. A period $t$ of time elapsed before the next occurrence of this phenomenon. Find the greatest possible $t$ for a given watch, given the ratio $k$ of the lengths of the two hands $(k>1)$, provided that the radius of the circumference of the watch is equal to the length of the minute hand. Solution. We will show that $t$ is equal to $4 / 11$ hours, independent of the ratio $k$ of the lengths of the hands. ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-24.jpg?height=734&width=820&top_left_y=181&top_left_x=618) Fig. 2 Denote by $c$ the circumference of the watch, by $S$ its center, and by $M$ the tip of the hour hand (Fig. 2). Let us first explain why for each fixed $M$ there exist precisely two equilateral triangles $M X Y$ with vertices $X, Y$ lying on the circle $c$. Since the line $S M$ must be the axis of the chord $X Y$, hence, also the bisector of the angle $X M Y$, both lines $M X, M Y$ meet the line $S M$ at the same angle of $30^{\circ}$. Thus the triangle $M X Y$ coincides with one of the equilateral triangles $M V_{1} V_{2}, M V_{3} V_{4}$ shown on Fig. 2 . The points $V_{i}$ divide the circle $c$ into four arcs. At points on the arc $V_{2} V_{3}$, the segment $V_{2} V_{3}$ subtends an angle of the same size as $\angle V_{2} V_{4} V_{3}$, i.e. $60^{\circ}$; similarly for the $\operatorname{arc} V_{4} V_{1}$. Thus $$ \angle V_{2} S V_{3}=\angle V_{4} S V_{1}=120^{\circ} \text {. } $$ Consequently, $$ \angle V_{1} S V_{2}+\angle V_{3} S V_{4}=120^{\circ} $$ It follows that both angles $V_{1} S V_{2}$ and $V_{3} S V_{4}$ are smaller than $120^{\circ}$. We may visualize the situation by thinking of the hour hand as being motionless and the minute hand rotating around the circle $S$ at the angular speed of $(360-30)^{\circ}=$ $330^{\circ}$ per hour. We have seen that the phenomenon we are interested in occurs precisely when the tip $V$ of the minute hand coincides with one of the four points $V_{i}$. Between two consecutive occurrences of the phenomenon, the minute hand thus advances by an angle of either $120^{\circ}$, or $\angle V_{1} S V_{2}$ or $\angle V_{3} S V_{4}$ which are both less than $120^{\circ}$ (and depend on the ratio $k$ ). The greatest possible period $t$ is thus independent of the ratio $k$ and equals $120 / 330$ hours. 6. Find the greatest real number $p$ and the least real number $q$ for which the inequalities $$ p<\frac{a+m_{b}}{b+m_{a}}0$, then for all sufficiently small positive $b$ we will have $$ \sqrt{4-b^{2}}>2-\epsilon, \quad 2 b<\epsilon \quad \text { and } \quad \sqrt{1+2 b^{2}}<1+\epsilon $$ so $$ \frac{a+m_{b}}{b+m_{a}}>\frac{4-\epsilon}{1+2 \epsilon} $$ and it is easy to choose $\epsilon>0$ so that the last fraction if greater than any given $q$ less than 4. It is enough take $$ \epsilon<\frac{4-q}{1+2 q} $$ ## Czech-Slovak-Polish Match
Zwardoń, June 23-24, 2008 ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-26.jpg?height=228&width=526&top_left_y=323&top_left_x=785) 1. Determine all triples $(x, y, z)$ of positive numbers satisfying the system of equations $$ \begin{aligned} & 2 x^{3}=2 y\left(x^{2}+1\right)-\left(z^{2}+1\right), \\ & 2 y^{4}=3 z\left(y^{2}+1\right)-2\left(x^{2}+1\right), \\ & 2 z^{5}=4 x\left(z^{2}+1\right)-3\left(y^{2}+1\right) . \end{aligned} $$ Solution. For any integer $k \geqslant 3$ and any $x \geqslant 0$ we have $$ 2 x^{k} \geqslant[(k-1) x-(k-2)]\left(x^{2}+1\right) . $$ To see this, observe that, by AM-GM inequality, $$ x^{k}+x^{k}+\underbrace{x+x+\ldots+x}_{(k-3) \text { times }} \geqslant(k-1) x^{3} $$ and add it to $$ (k-2)\left(x^{2}-2 x+1\right) \geqslant 0 \text {. } $$ Note that we have equality if and only if $x=1$. Therefore, for $x, y, z$ satisfying the system of equations, we have $$ \begin{aligned} 2 y\left(x^{2}+1\right)-\left(z^{2}+1\right) & \geqslant(2 x-1)\left(x^{2}+1\right), \\ 3 z\left(y^{2}+1\right)-2\left(x^{2}+1\right) & \geqslant(3 y-2)\left(y^{2}+1\right), \\ 4 x\left(z^{2}+1\right)-3\left(y^{2}+1\right) & \geqslant(4 z-3)\left(z^{2}+1\right), \end{aligned} $$ or $$ \begin{array}{r} 2(y-x)\left(x^{2}+1\right)+(x-z)(x+z) \geqslant 0, \\ 3(z-y)\left(y^{2}+1\right)+2(y-x)(y+x) \geqslant 0, \\ 4(x-z)\left(z^{2}+1\right)+3(z-y)(z+y) \geqslant 0 . \end{array} $$ Now suppose $x \geqslant \max \{y, z\}$. Then from the second inequality of (1) we infer that $y \leqslant z$ and $$ \begin{aligned} 2(y-x)\left(x^{2}+1\right)+(x-z)(x+z) & \leqslant(z-x)\left(2\left(x^{2}+1\right)-(x+z)\right) \\ & \leqslant(z-x)\left(2 x^{2}-2 x+2\right) \leqslant 0, \end{aligned} $$ which, by the first inequality in (1), implies $x=y=z$. If $y \geqslant \max \{x, z\}$, then $z \leqslant x$ by the third inequality in (1) and $$ \begin{aligned} 3(z-y)\left(y^{2}+1\right)+2(y-x)(y+x) & \leqslant(x-y)\left(3\left(y^{2}+1\right)-2 y-2 x\right) \\ & \leqslant(x-y)\left(3 y^{2}-4 y+3\right) \leqslant 0, \end{aligned} $$ hence, by the second inequality in (1), $x=y=z$. ously, Finally, if $z \geqslant \max \{x, y\}$, then $x \leqslant y$ by the first estimate in (1) and, as previ- $$ 4(x-z)\left(z^{2}+1\right)+3(z-y)(z+y) \leqslant(y-z)\left(4 z^{2}-6 z+4\right) \leqslant 0 $$ which again implies $x=y=z$. Thus we have equality in (0) and hence $x=y=z=1$. We easily check that this is the solution to the system. 2. Given is a convex hexagon $A B C D E F$, such that $\angle A=\angle C=\angle E$ and $A B=B C$, $C D=D E, E F=F A$. Prove that the lines $A D, B E$ and $C F$ have a common point. Solution. Assume that the angle bisectors of the angles $\angle B$ and $\angle D$ intersect at $P$ (Fig. 1). We shall prove that the hexagon $A B C D E F$ has an inscribed circle, whose center is $P$. Then the conclusion follows from Brianchon's Theorem. The equality $A B=B C$ implies that the triangles $A B P$ and $C B P$ are congruent. Hence we have $\angle B A P=\angle B C P=x$. Similarly, triangles $C D P$ and $E D P$ are congruent, so we obtain $\angle D C P=\angle D E P=y$. ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-27.jpg?height=580&width=545&top_left_y=1343&top_left_x=767) Fig. 1 Moreover, we have $A P=C P=E P$, which together with the equality $A F=E F$ implies that the triangles $A F P$ and $E F P$ are congruent. Thus the angle bisector of the angle $\angle F$ passes through the point $P$ and $\angle F A P=\angle F E P=z$. Now the equalities $\angle A=\angle C=\angle E$ are equivalent to $z+x=x+y=y+z$, which yields $x=y=z$. Therefore the angle bisectors of the angles $\angle A, \angle C$ and $\angle E$ all pass through the point $P$. Thus $P$ is the center of the inscribed circle of the hexagon $A B C D E F$, as claimed. 3. Determine all prime numbers $p$, such that the number $$ \left(\begin{array}{l} p \\ 1 \end{array}\right)^{2}+\left(\begin{array}{l} p \\ 2 \end{array}\right)^{2}+\ldots+\left(\begin{array}{c} p \\ p-1 \end{array}\right)^{2} $$ is divisible by $p^{3}$. Solution. We start from the observation that for $k=1,2, \ldots, p$ we have $$ \left(\begin{array}{l} p-1 \\ k-1 \end{array}\right) \equiv \pm 1 \quad(\bmod p) $$ To see this, note that $$ \begin{aligned} & \begin{array}{lll} p-1 \equiv & -1 & (\bmod p) \\ p-2 \equiv & -2 & (\bmod p) \end{array} \\ & \begin{array}{ccc} \vdots & \vdots & \vdots \\ k & \equiv-(p-k) & (\bmod p) \end{array} \end{aligned} $$ hence, multyplying, $$ \frac{(p-1) !}{(k-1) !} \equiv \pm(p-k) ! \quad(\bmod p) $$ and (1) follows. This can be written in an equivalent form $$ \frac{k}{p}\left(\begin{array}{l} p \\ k \end{array}\right) \equiv \pm 1 \quad(\bmod p) $$ which implies that $$ \left(\begin{array}{l} p \\ k \end{array}\right)=p \cdot \frac{a_{k} p \pm 1}{k} $$ for some integer $a_{k}$. Therefore, if $p$ satisfies the given conditions, we have $$ p \left\lvert\, \sum_{k=1}^{p-1} \frac{\left(a_{k} p \pm 1\right)^{2}}{k^{2}}\right. $$ or $p \mid \sum_{k=1}^{p-1} 1 / k^{2}$, where by $1 / m$ we understand the unique integer $1 \leqslant l \leqslant p-1$ satisfying $m l \equiv 1(\bmod p)$. Now observe that $1 / k^{2} \equiv(1 / k)^{2}(\bmod p)$ and $$ \sum_{k=1}^{p-1} \frac{1}{k^{2}} \equiv \sum_{k=1}^{p-1} k^{2}=\frac{p(p-1)(2 p-1)}{6} \quad(\bmod p) $$ which is divisible by $p$ if and only if $p \geqslant 5$. 4. Prove that there exists a positive integer n, such that for all integers $k$ the number $k^{2}+k+n$ has no prime divisors less than 2008. Solution. Let $p<2008$ be a fixed prime number. There exists $r=r(p)$ such that $k^{2}+k \not \equiv r(\bmod p)$ for any integer $k$; this follows, for example, from the fact that if $k \equiv 0$ or $k \equiv p-1(\bmod p)$, then $k^{2}+k \equiv 0(\bmod p)$. Now if $\left\{p_{1}, p_{2}, \ldots, p_{m}\right\}$ is the set of all prime numbers not exceeding 2008, we take $n$ satisfying $$ n \equiv p_{j}-r\left(p_{j}\right) \quad\left(\bmod p_{j}\right), \quad j=1,2, \ldots, m $$ which exists due to Chinese Remainder Theorem. This number has the desired property. 5. Given is a regular pentagon $A B C D E$. Determine the least value of the expression $$ \frac{P A+P B}{P C+P D+P E}, $$ where $P$ is an arbitrary point lying in the plane of the pentagon $A B C D E$. Solution. Without loss of generality assume that the given pentagon $A B C D E$ has the side equal to 1 . Then the length of its diagonal is equal to $$ \lambda=\frac{1+\sqrt{5}}{2} . $$ Set $a=P A, b=P B, c=P C, d=P D, e=P E$ (Fig. 2). ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-29.jpg?height=629&width=579&top_left_y=1513&top_left_x=750) Fig. 2 Applying the Ptolemy inequality for the (not necessarily convex) quadrilaterals $A P D E, B P D C$ and $P C D E$ we obtain (respectively) $$ a+d \geqslant e \lambda, \quad b+d \geqslant c \lambda, \quad e+c \geqslant d \lambda . $$ We multiply the third inequality by $\frac{\lambda+2}{\lambda+1}$ and add together with the first and the second inequalities. As a result we obtain $$ a+b+2 d+e \cdot \frac{\lambda+2}{\lambda+1}+c \cdot \frac{\lambda+2}{\lambda+1} \geqslant e \lambda+c \lambda+d \cdot \frac{\lambda(\lambda+2)}{\lambda+1} . $$ Grouping the respective terms, the above inequality reduces to $$ a+b \geqslant \frac{\lambda^{2}-2}{\lambda+1}(c+d+e) $$ Therefore $$ \frac{a+b}{c+d+e} \geqslant \frac{\lambda^{2}-2}{\lambda+1}=\sqrt{5}-2 . $$ The equality holds if and only if the convex quadrilaterals $A P D E, B P D C$ and $P C D E$ are cyclic. This condition is satisfied if and only if the point $P$ lies on the minor arc $A B$ of the circumcircle of the pentagon $A B C D E$ (Fig. 3). Therefore the smallest possible value of the given expression is $\sqrt{5}-2$. ![](https://cdn.mathpix.com/cropped/2024_04_17_dea7690a2ad723913678g-30.jpg?height=591&width=579&top_left_y=1121&top_left_x=750) Fig. 3 6. Find all triples $(k, m, n)$ of positive integers with the following property: The square with the side length $m$ can be cut into some number of rectangles of dimensions $1 \times k$ and exactly one square of the side length $n$. Solution. Answer: The triples $(k, m, n)$ must satisfy $n \leqslant m$ and at least one of the two conditions: $1^{\circ} k \mid m-n$, $2^{\circ} k \mid m+n$ and $r+n \leqslant m$, where $r$ is the remainder of $m$ modulo $k$. We start from proving that if $(k, m, n)$ are as above, then the cut is possible. We identify the large square with $[0, m] \times[0, m]$. If $k \mid m-n$, then we first cut the $m \times m$ square into the square $[0, n] \times[0, n]$ and rectangles $[0, n] \times[n, m]$ and $[n, m] \times[0, m]$. These rectangles can trivially be cut into rectangles of dimension $1 \times k$. If $k \mid m+n$ and $r+n \leqslant m$, then we cut $[0, m] \times[0, m]$ into a square $[r, r+n] \times[r, r+n]$ and rectangles $[0, r] \times[0, n+r],[r, m] \times[0, r],[r+n, m] \times[r, m]$ and $[0, n+r] \times[r+n, m]$ (they are well defined if $r+n \leqslant m$ ), each of which can be trivially cut into rectangles $1 \times k$. Note that we have used the assumption $r+n \leqslant m$ here. Now we show that the conditions on $(k, m, n)$ are necessary. Suppose the smaller square is equal to $[p, p+n] \times[q, q+n]$; by symmetry we may assume that $q \geqslant 1$. First we show that $r+n \leqslant m$. Each unit square $[i, i+1] \times[0,1]$, where $i \in$ $\{p, p+1, \ldots, p+n-1\}$, is contained in some rectangle $1 \times k$ coming from the cut. If we had $r+n>m$, then we would have $m-nm$. Now we show that $k \mid m-n$ or $k \mid m+n$. Suppose that this is not true. The idea is to write an integer $a_{i j}$ in each unit square $[i-1, i] \times[j-1, j], 1 \leqslant i, j \leqslant m$, in such a way that (a) for any rectangle $1 \times k$ of the cut the sum of numbers lying inside equals 0 , (b) the sum of all the numbers and the sum of the numbers lying inside the square $n \times n$ are different. The existence of such a sequence clearly yields the claim. A second idea is to work with the sequences $\left(a_{i j}\right)$ of the form $a_{i j}=a_{i} b_{j}$, where $\left(a_{i}\right)_{i=1}^{m}$ and $\left(b_{j}\right)_{j=1}^{m}$ are $k$-periodic and $$ \sum_{i=1}^{k} a_{i}=\sum_{j=1}^{k} b_{j}=0 $$ This implies (a); furthermore, (b) takes form $$ \sum_{i=1}^{m} a_{i} \cdot \sum_{j=1}^{m} b_{j} \neq \sum_{i=p+1}^{p+n} a_{i} \cdot \sum_{j=q+1}^{q+n} b_{j} $$ or, by periodicity and (1), $$ \sum_{i=1}^{r} a_{i} \cdot \sum_{j=1}^{r} b_{j} \neq \sum_{i=p+1}^{p+s} a_{i} \cdot \sum_{j=q+1}^{q+s} b_{j} $$ where $s$ denotes the remainder coming from the division of $n$ by $k$. If $r=0$, then the left-hand side is 0 . Furthermore, as $k \nmid m-n$, we have $s>0$; it suffices to take $a_{p+1}=a_{p+2}=\ldots=a_{p+s}=b_{q+1}=b_{q+2}=\ldots=b_{q+s}=1$ and choose the remaining $a_{i}$ 's and $b_{j}$ 's so that the periodicity and (1) hold. Suppose then, that $r>0$. The conditions $k \nmid m-n, k \nmid m+n$ imply $r \neq s$, $r+s \neq k$. We set $b_{1}=b_{2}=\ldots=b_{r}=1$ and pick the remaining $b_{j}$ 's so that periodicity and (1) hold. Let $A=\{1,2, \ldots, r\}, B=\{p+1, p+2, \ldots, p+s\}(\bmod k)$ denote the sets of indices appearing in the sums involving $\left(a_{j}\right)$. Note that we take the set $B$ modulo $k$. Consider two cases: i) $A \cup B \neq\{0,1, \ldots, k-1\}$. Then, as $A \neq B$ (as $r \neq s$ ) and $A \neq \emptyset$, we may choose $a_{i}^{\prime} s$ with $i \in A \cup B$ in such a way that $$ \sum_{i \in A} a_{i}=1, \quad \sum_{i \in B} a_{i}=0 $$ (for example, if $A \backslash B \neq \emptyset$, set $a_{i}=0$ for all $i \in A \cup B$ except for one $i \in A \backslash B$, for which $a_{i}=1$; if $A \subset B$, take $a_{i}=0$ for $i \in A \cup B$ except for one $i \in A$, for which $a_{i}=1$ and except for one $j \in B \backslash A$, for which $a_{j}=-1$ ) and complete the sequence $\left(a_{i}\right)$ so that it satisfies periodicity and (1). This completion is possible as there exists $i \in\{0,1, \ldots, k-1\}$ not covered by $A \cup B$. Then the right-hand side of (2) is 0 , while the left one is not. ii) $A \cup B=\{0,1, \ldots, k-1\}$. Then $A \nsubseteq B$ and $B \nsubseteq A$; furthermore, as $r+s \neq k$, we have $A \cap B \neq \emptyset$. Therefore, there exist $i_{1} \in A \backslash B, i_{2} \in B \backslash A, i_{3} \in A \cap B$ and we set $a_{i_{1}}=0, a_{i_{2}}=-1, a_{i_{3}}=1$ and $a_{i}=0$ for $i \in\{0,1,2, \ldots, k-1\} \backslash\left\{i_{1}, i_{2}, i_{3}\right\}$. Then we have $$ \sum_{i=1}^{r} a_{i}=\sum_{i \in A} a_{i}=1, \quad \sum_{i=p+1}^{p+s} a_{i}=\sum_{i \in B} a_{i}=0 $$ and hence the right-hand side of (2) is 0 , while the left one is not. The proof is complete. [^0]: 1 Note that in view of the mutual position of the points $M, A, B$, the point $M$ lies in the exterior of any circle passing through the points $A, B$, hence also in the exterior of $m$. The half-line $M O$ thus indeed has, if it is not tangent to $m$, exactly two different common points with $m$. 2 Similarly one can prove the following useful fact: for any polynomial $F$ with integer coefficients, and arbitrary integers $a, b$, the difference $F(a)-F(b)$ is an integer multiple of $a-b$.