Problem 1. If the arithmetic mean of four distinct positive integers is equal to 10 , what is the largest possible value of any of these integers? Result. 34 Solution. To have one of the numbers as large as possible, the rest has to be as small as possible. Since the numbers are distinct, the least three possible values are 1,2 , and 3 . For the average to be equal to 10 , i.e. the sum to be equal to $4 \cdot 10=40$, the remaining number has to be $40-(1+2+3)=34$. Problem 2. If 4 is a solution of the quadratic equation $x^{2}+m x+2020=0$ with an integer $m$, what is the other solution? Result. 505 Solution. Since 4 is a root, we get $4^{2}+4 m+2020=0$ or $m=-509$, so the equation now reads $x^{2}-509 x+2020=0$ with solutions 4 and 505 . Alternatively, if $s$ is the other solution of the given equation, then $$ x^{2}+m x+2020=(x-4)(x-s)=x^{2}-4 x-s x+4 s $$ and comparing the coefficients of the polynomials yields $4 s=2020$ or $s=505$. Problem 3. Number 95 gives 4 as the remainder after division by a positive integer $N$. What is the least possible value of $N$ ? Result. 7 Solution. As $N$ is larger than 1 and divides $95-4=91=7 \cdot 13$, the smallest possible value is 7 . Problem 4. A square and a regular pentagon are as in the picture below. Find the angle $\alpha$ in degrees. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-01.jpg?height=371&width=394&top_left_y=1145&top_left_x=840) Result. $54^{\circ}$ Solution. Let us label the points as in the picture. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-01.jpg?height=414&width=422&top_left_y=1643&top_left_x=817) The size of the interior angle in a regular pentagon is $108^{\circ}$. The triangle $A B C$ is isosceles with $\angle A B C=108^{\circ}$, so $$ \angle B A H=\angle B A C=\frac{1}{2}\left(180^{\circ}-108^{\circ}\right)=36^{\circ} $$ Since $A B H$ is a right-angled triangle with the right angle at vertex $B$, $$ \alpha=\angle A H B=180^{\circ}-90^{\circ}-36^{\circ}=54^{\circ} $$ Problem 5. A bus stop is served by three bus lines $A, B$, and $C$, which leave the stop in intervals of 12,10 , and 8 minutes, respectively. When Brian walked past the stop, he noticed that the three buses of the three lines had left the stop simultaneously. After how many minutes from that point will that happen again for the first time? Result. 120 Solution. The sought number of minutes has to be a multiple of all three periods, and since we are looking for the least such number, the answer is the least common multiple of 12,10 , and 8 , which is 120 . Problem 6. The rhombus flower grows according to the following pattern: In the middle there is a square blossom with two diagonals of length 1 . In the first step the horizontal diagonal is doubled creating a new quadrilateral. In the next step the vertical diagonal is doubled and again a new quadrilateral blossom is generated. This procedure is continued until there is a flower with five quadrilateral blossoms. Find the perimeter of the outer (i.e. the fifth) blossom. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-02.jpg?height=311&width=322&top_left_y=336&top_left_x=867) Result. $8 \sqrt{2}$ Solution. The fifth blossom is a square with diagonals of length 4 , hence the length of its side is $2 \sqrt{2}$ and the perimeter equals $8 \sqrt{2}$. Problem 7. A botanist planted two plants, $P_{1}$ and $P_{2}$, of the same species and measured their heights. After a week, during which the plants had grown up by the same percentage, he measured again and noticed that $P_{1}$ was as big as $P_{2}$ had been a week before and $P_{2}$ was by $44 \%$ bigger than $P_{1}$ had been a week before. By what percentage did the plants grow during the week? Result. $20 \%$ Solution. Let us denote by $P_{1}$ and $P_{2}$ the original heights of the plants. Since they both grew by the same percentage during the week, their new heights are $k P_{1}$ and $k P_{2}$, respectively, for some real number $k>1$ such that $(k-1) \cdot 100 \%$ is the sought percentage. Then the measurements imply $$ \begin{aligned} k P_{1} & =P_{2} \\ \frac{k P_{2}}{P_{1}} & =1.44 \end{aligned} $$ Substituting for $P_{2}$ in the second equation and cancelling $P_{1}$ in the fraction yields $k^{2}=1.44$, so $k=1.2$, meaning that the plants grew up by $20 \%$. Problem 8. How many parallelograms are there in the picture? ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-02.jpg?height=274&width=305&top_left_y=1602&top_left_x=881) Result. 15 Solution. For each of the three vertices of the large triangle, there are three rhombi "pointing" in direction of the vertex and two $1 \times 2$ parallelograms sharing that vertex with the triangle. The picture shows these two types of parallelograms for the top vertex. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-02.jpg?height=278&width=652&top_left_y=2122&top_left_x=701) No other types of parallelograms are present in the picture, so in total there are $3 \cdot(2+3)=15$ parallelograms. Problem 9. A bus company offers buses for 27 or 36 passengers. A tour group consisting of 505 tourists wants to travel with buses of that company. These buses have been selected by the company so that the total number $N$ of empty seats in the buses is as small as possible. Determine $N$. Result. 8 Solution. We are looking for the smallest number $s \geq 505$ of the form $s=27 x+36 y$, where $x$ and $y$ stand for the numbers of buses of the first and the second type, respectively. Since the greatest common divisor of 27 and 36 is $9, s$ has to be a multiple of 9 . The smallest multiple of 9 which is greater or equal to 505 is 513 and since $513=27 \cdot 3+36 \cdot 12$, we conclude that the number of empty seats is $513-505=8$. Problem 10. A fan of animals bought two identical pictures of a wolf and four identical pictures of a fox. He wants to hang them next to each other on six nails on a wall in his living room. Moreover, he wants to change their order every day in such a way that the resulting sequence looks different from the sequences in all the preceding days. Finally, he does not want the two pictures of a wolf to hang next to each other. What is the highest number of days for which he can do it? Result. 10 Solution. In other words, we ask for the number of distinct sequences of the pictures not having the two wolves next to each other. The left-hand wolf can be hung on positions $1,2,3$, and 4 out of 6 , and for each of these positions, the right-hand wolf can be hung to the following positions: $$ \begin{aligned} & 1: 3,4,5,6 \\ & 2: 4,5,6 \\ & 3: 5,6 \\ & 4: 6 \end{aligned} $$ so there are 10 such sequences in total. Problem 11. A cylinder of height $18 \mathrm{~cm}$ and circumference $8 \mathrm{~cm}$ has a string tightly wound around it three times, starting at the bottom of the cylinder and ending at the top in the point precisely above the starting point. What is the length of the string in $\mathrm{cm}$ ? ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-03.jpg?height=320&width=277&top_left_y=1396&top_left_x=889) ## Result. 30 Solution. Unfolding the cylinder, we see that during each turn around the cylinder, the string has risen by $6 \mathrm{~cm}$ while advancing by the circumference $8 \mathrm{~cm}$ in the horizontal direction. By the Pythagorean theorem, the segment of the string corresponding to one turn is $$ \sqrt{6^{2}+8^{2}}=10 \mathrm{~cm} $$ long. Since there are three turns, we conclude that the total length of the string is $30 \mathrm{~cm}$. Problem 12. A correctly working calculator displays digits in the following way: ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-03.jpg?height=140&width=700&top_left_y=2140&top_left_x=678) Adam's calculator fell out of a window and now it shows only the horizontal segments. To verify that the calculator still computes correctly, Adam performed the following calculation: ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-03.jpg?height=154&width=728&top_left_y=2407&top_left_x=664) What is the sum of all digits appearing in this calculation? Result. 33 Solution. The last two digits must be zeroes. Furthermore, the first digit of the first factor is 4 and the first digit of the second factor is 7 . Since the product is divisible by 100 and consequently by 25 , one of the factors has to be divisible by 25 or both factors by 5 . There is no two-digit multiple of 25 starting with 4 , hence the second factor has to be divisible by 5 and since it cannot end with 0 , it equals 75 . Moreover, since the product is divisible by 4 , the first factor must be divisible by 4 and so it is 48 . We have $48 \times 75=3600$, where the sum of all digits present is 33 . Problem 13. Ed had to add up two numbers, but he accidentally wrote an additional digit at the end of one number. As a result he got the sum of 44444 instead of 12345 . What was the smaller of the two numbers that Ed originally wanted to add up? Result. 3566 Solution. Let $x$ and $y$ be the two numbers and $c$ a digit that Ed wrote to (say) the number $x$. Then we have $$ x+y=12345 \quad \text { and } \quad(10 x+c)+y=44444 $$ therefore $$ 9 x+c=32099 \text {. } $$ It follows that $c$ has to be 5 since $32099-c$ has to be divisible by 9 . We conclude that $x=3566$ and $y=8779$. Problem 14. Peter is given 27 standard dice and asked to glue them together into a larger $3 \times 3 \times 3$ cube, so that the adjacent faces (i.e. the faces glued together) have the same number of dots. What is the maximal number of dots that Peter can leave visible on the outside of his $3 \times 3 \times 3$ cube? Note: Two views of the standard dice are shown below. The faces are arranged so that opposite sides add to 7 . ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-04.jpg?height=200&width=460&top_left_y=1122&top_left_x=800) Result. 189 Solution. The key observation is that the dots on opposite faces on the large cube always add up to 7, as shown in the left-hand figure below. The large cube has 27 pairs of opposite faces, so no matter how Peter arranges his dice, the total number of dots showing must be $27 \cdot 7=189$. One possible arrangement Peter can use is shown in the right-hand figure below. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-04.jpg?height=316&width=902&top_left_y=1578&top_left_x=584) Problem 15. Antonia drew a small $X$-pentomino made of 5 congruent squares. Then she drew two perpendicular diagonals of this pentomino with dotted lines. Finally she constructed a bigger $X$-pentomino with some of the sides lying on the diagonals of the small pentomino as in the figure. Find the ratio of the area of Antonia's big pentomino to the area of the small one. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-04.jpg?height=348&width=322&top_left_y=2116&top_left_x=867) Result. $\quad 5: 2$. Solution. The diagonals divide the small $X$-pentomino into four congruent pieces. Furthermore, two such pieces can be glued together to form one square of the larger pentomino, as the picture shows. Thus the large pentomino can be divided into ten such pieces and the sought ratio of areas is $10: 4=5: 2$. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-05.jpg?height=299&width=305&top_left_y=296&top_left_x=881) Problem 16. How many palindromes between $10^{3}$ and $10^{7}$ have an even sum of digits? Note: A palindrome is a number which stays the same when the order of its digits is reversed, e.g. 12321 is a palindrome. Result. 5940 Solution. All numbers between $10^{3}$ and $10^{4}$ have an even number of digits, hence the sum of digits of every such palindrome is even. Moreover, the palindromes from this range are exactly the numbers of the form $\overline{a b b a}$, where $a, b$ are any digits, $a$ non-zero, which shows that there are 90 palindromes in that range. In a similar way we infer that there are precisely 900 palindromes between $10^{5}$ and $10^{6}$ and the sum of digits of each of them is even. The palindromes between $10^{4}$ and $10^{5}$ are of the form $\overline{a b c b a}$ for $a, b, c$ digits, $a$ non-zero, and the sum of their digits is clearly even if and only if $c$ is even. Hence there are 9 options for $a, 10$ for $b$, and 5 for $c$, which gives $9 \cdot 10 \cdot 5=450$ sought palindromes in the given range. A similar argument applies to the range from $10^{6}$ to $10^{7}$, showing that it contains 4500 palindromes the sum of whose digits is even. We conclude that out of all palindromes between $10^{3}$ and $10^{7}, 90+900+450+4500=5940$ have an even sum of digits. Problem 17. A women's choir consists of sixty singers: twenty sopranos, twenty mezzo-sopranos, and twenty altos. Moreover, six singers in each voice are very skilled, so they are able to sing any of the parts if necessary; the rest of the singers can sing their part only. What is the highest number $S$ such that whenever $S$ of the singers fall sick and cannot sing, the remaining singers can rearrange themselves to form a choir with at least ten singers in each voice? Result. 22 Solution. If, for example, all the altos together with three other "skilled" singers fall sick, then there are only nine skilled singer remaining, so there is no way to have ten alto singers. Therefore $S<23$. On the other hand, observe that if some of the singers fall sick, the situation can only get worse if the sick ones are the "skilled" ones instead of the "ordinary" ones. Therefore, if 22 singers fall sick, we can assume that 18 of them are the skilled ones, so only four "ordinary" singers fall sick and it is immediate that at least ten singers remain in each voice. This shows that $S \geq 22$ and consequently, $S=22$. Problem 18. A rectangle with sides of length 3 and 4 is inscribed into a circle. Moreover, four half-circles are glued to its sides from outside as in the picture. What is the area of the shaded region, which consists of points of the half-circles not lying inside the circle? ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-05.jpg?height=335&width=332&top_left_y=1917&top_left_x=862) Result. 12 Solution. Using the Pythagorean theorem, we find that the length of a diagonal of the rectangle is $$ \sqrt{3^{2}+4^{2}}=5 $$ This diagonal is the diameter of the circumscribed circle, the area of which therefore equals $\pi(5 / 2)^{2}$. Moreover, the outer half-circles have radii $4 / 2$ and $3 / 2$, respectively, so the total area of the semicircles is $$ 2 \cdot \frac{1}{2} \pi\left(\frac{3}{2}\right)^{2}+2 \cdot \frac{1}{2} \pi\left(\frac{4}{2}\right)^{2}=\pi\left(\frac{5}{2}\right)^{2} $$ Consider the whole region formed by the semi-circles and the rectangle; its area is $$ 12+\pi\left(\frac{5}{2}\right)^{2} $$ The shaded region is obtained by removing the circumscribed circle from this all-encompassing region, so its area equals 12 . Alternatively, we can argue as follows. The Pythagorean theorem gives relation of squares raised above three sides of a right triangle. The same relation holds for half-circles, which we apply to both halves of the given rectangle (divided by a diagonal). Straightforward observation then gives that any two neighbouring grey areas have the sum of half of the rectangle. Therefore the total grey area is equal to that of the rectangle, which is $3 \cdot 4=12$. Problem 19. Find the largest three-digit prime number $p_{1}$ such that the sum of all digits of $p_{1}$ is a two-digit prime $p_{2}$ and the sum of the digits of $p_{2}$ is a one-digit prime $p_{3}$. Result. 977 Solution. The sum of the digits of a three-digit number is at most $9+9+9=27$. There are five two-digit primes not greater than 27 , namely $11,13,17,19$, and 23 . The sums of the digits of these primes are $2,4,8,10,5$, respectively. Therefore, $p_{2}=11$ or $p_{2}=23$ are the only possibilities. The largest three-digit prime number with the digit sum of 23 is 977 . Since $977>911$, which is the largest three-digit prime having its digit sum equal to 11 , the sought number is 977 . Problem 20. In triangle $A B C$ satisfying $A B=A C$, there is a side axis which meets one of the altitudes in a single point lying on the perimeter of $A B C$. Determine all possible sizes of angle $A C B$ in degrees. Result. $45^{\circ}, 67.5^{\circ}$ Solution. Let us denote the intersection point by $X$ and the centre of $A C$ by $F$. Observe that the altitude going through $X$ must be the one corresponding to the same side as $X$ belongs to. We now examine all possible locations of $X$. If $X$ lies on the base $B C$, it must be the intersection of the altitude from $A$ and one of the side axes. From symmetry of triangle $A B C$ we infer that this altitude coincides with the axis of $B C$, so the single-point intersection has to be with one of the remaining axes. The symmetry then implies that it actually intersects the axes of both $A B$ and $A C$ in a single point. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-06.jpg?height=439&width=717&top_left_y=1371&top_left_x=675) Since $F X$ is the axis of $A C$, triangle $A X C$ is isosceles. Moreover, we have $\angle A X C=90^{\circ}$ and so $\angle A C B=\angle A C X=45^{\circ}$. If $X$ lies on $A B$, then it must be the intersection of the altitude from $C$ and the axis of $A C$. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-06.jpg?height=508&width=380&top_left_y=1922&top_left_x=838) As in the previous case, triangle $A X C$ is isosceles and right-angled with right angle at $X$, implying that $\angle B A C=$ $\angle X A C=45^{\circ}$. Therefore, $$ \angle A C B=\frac{1}{2}\left(180^{\circ}-\angle B A C\right)=67.5^{\circ} $$ in this case. The case when $X$ lies on $A C$ is completely symmetrical. Problem 21. Find the sum of all positive divisors of 3599 . Note: Divisors include 1 and 3599 . Result. 3720 Solution. We have $$ 3599=3600-1=60^{2}-1=(60+1)(60-1)=59 \cdot 61 $$ It is easy to see that both 59 and 61 are prime numbers, therefore the answer is $1+59+61+3599=3720$. Problem 22. Sisters Dolly, Holly, and Molly made a campfire and roasted sausages. Dolly bought 17 sausages, Holly bought 11, and Molly bought none. When they had eaten all of them, they decided to share the costs equally. How much money should Dolly get, if Molly paid $\$ 28$ to her sisters to get rid of her debt? Result. 23 Solution. Molly paid exactly one third of the total costs, that is, all the sausages together costed $28 \cdot 3=84$ dollars. Dolly paid for 17 sausages out of 28 , that is $84 \cdot 17 / 28=51$ dollars. Since the sisters decided to share the costs equally, she should have paid only 28 dollars. Thus she should get $51-28=23$ dollars. Problem 23. The legs of a right-angled triangle have lengths 11 and 23. A square of side length $t$ has two of its sides lying on the legs of the triangle and one vertex on its hypotenuse as in the picture. Find $t$. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-07.jpg?height=391&width=740&top_left_y=952&top_left_x=658) Result. $\frac{253}{34}$ Solution. The gray triangle in the picture is right-angled and shares one angle with the large triangle, hence these two triangles are similar. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-07.jpg?height=403&width=696&top_left_y=1506&top_left_x=680) The ratio of lengths of the legs has to be the same for the two triangles, thus we obtain the equation $$ \frac{23-t}{t}=\frac{23}{11} $$ with the solution $t=253 / 34$. Problem 24. Find the smallest positive integer $n$ for which $11 \cdot 19 \cdot n$ is equal to a product of three consecutive integers. Result. 840 Solution. As 11 and 19 are primes, one of the three consecutive numbers has to be divisible by 11 and one, not necessarily a different one, by 19. Moreover, since the product is positive, all three numbers have to be positive as well. That is, we search for small positive multiples of 11 and 19 differing by at most 2 . The smallest are $3 \cdot 19=57$ and $5 \cdot 11=55$ so we only have to supplement the product by 56 to get $55 \cdot 56 \cdot 57=11 \cdot 19 \cdot 840$. Therefore, 840 is the sought number. Problem 25. Consider a semi-circle with centre $C$ and diameter $A B$. A point $P$ on $A B$ satisfies the following. A laser beam leaves $P$ in a direction perpendicular to $A B$, bounces off the semicircle at points $D$ and $E$ following the rule of reflection, that is, $\angle P D C=\angle E D C$ and $\angle D E C=\angle B E C$, and then it hits the point $B$. Determine $\angle D C P$ in degrees. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-08.jpg?height=357&width=606&top_left_y=307&top_left_x=725) Result. $36^{\circ}$ Solution. Let us denote $\angle D C P$ by $x$. Since $D$ and $E$ both lie on the circle with center $C, \triangle D C E$ is isosceles with base $D E$. The first given equality $\angle P D C=\angle E D C$ implies that $\triangle C D P$ is congruent to a half of $\triangle C D E$ (in particular to $\triangle C D M$ where $M$ is midpoint of $D E)$. Using also the second equality it follows that $\angle B C E=\angle E C D=2 \angle D C P(=2 x)$ and as these three angles form together a straight angle we have $x+2 x+2 x=180^{\circ} \Rightarrow x=\angle D C P=36^{\circ}$. Problem 26. There are 2020 towns labelled $1,2,3, \ldots, 2020$ in a country. The president decided to build a railway network. To save money, he built tracks only between the pairs of cities labelled $a$ and $b, a1$ such that there is no positive $k$-digit integer $n$ with every digit odd and $S(S(n))=2$, where $S(x)$ denotes the sum of digits of $x$. Result. 103 Solution. Firstly observe that $S(m)=2$ for an odd integer $m$ if and only if $m=10^{l}+1$ for some positive integer $l$. If $k=103$, then $S(n)$ is necessarily odd for any $k$-digit $n$ with all digits odd, hence for $S(S(n))=2$ to hold, $S(n)$ has to be of the form above. However, $$ 101<103 \cdot 1 \leq S(n) \leq 103 \cdot 9=927<1001 $$ for every $n$ with 103 digits. Therefore $k=103$ satisfies the condition from the statement. We will now prove that for odd $k<103$, there exists $n$ as described in the statement. It is easy to see that $S(n)$ can attain any odd value greater or equal to $k$ and less or equal to $9 k$. If $111$, so $S(n)$ can be equal to 11 and consequently, there exists $n$ such that $S(S(n))=2$. If $101 \geq k>11$, then $9 k \geq 9 \cdot 13=117>101$, so $S(n)$ can be equal to 101 and again $S(S(n))=2$. So $k>101$. If $k<103$ is even, the reasoning is basically the same, the only difference is that $S(n)$ is even. For $k=2$ we can use $n=11$. If $220$, so we can find $n$ with $S(n)$ equal to 20 . If $103>k>20$, then $9 k>180>110$, so $S(n)$ can be equal to 110 . This shows that 103 is the sought smallest number having the desired property. Problem 52. Martin bought a chessboard, which was formed by a rectangle consisting of $1010 \times 2020$ squares, out of which a smaller rectangle had been removed as in the figure below. He placed a bug on every square of the chessboard. However, some of the bugs had a cough. To make things worse, the cough was very infectious: Every bug sitting on a square neighbouring at least two squares with coughy bugs got the cough as well. (We say that two squares are neighbouring if they share a side.) Determine the least possible number of bugs that could infect all others. The bugs did not move. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-19.jpg?height=345&width=671&top_left_y=1124&top_left_x=698) Result. 2630 Solution. Observe that when a bug is infected by the described procedure, the total perimeter of the "contaminated" region does not increase. Therefore, there had to be at least $P / 4$ infectious bugs initially, where $P$ is the perimeter of the "O" shape. We can easily compute that $P=2(2020+1010+(2020-400)+(1010-400))=10520$ and the picture shows an arrangement of $P / 4=2630$ coughy bugs that would infect all others. ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-19.jpg?height=317&width=583&top_left_y=1732&top_left_x=742) Problem 53. A positive integer has 25! distinct positive divisors. Find at most how many of them may be the 5th powers of a prime number. Note: The symbol $n$ ! denotes the product of all positive integers less than or equal to $n$. Result. 27 Solution. A number $p_{1}^{a_{1}} p_{2}^{a_{2}} \cdots p_{k}^{a_{k}}$ where $p_{i}$ are distinct primes has $\left(a_{1}+1\right)\left(a_{2}+1\right) \cdots\left(a_{k}+1\right)$ positive divisors. So we see that the maximal number of 5 th powers of a prime dividing our number is equal to the maximal number of factors $\geq 6$ in some factorisation of 25 !. In order to maximise this number, we consider the prime factorisation $$ 25!=2^{22} \cdot 3^{10} \cdot 5^{6} \cdot 7^{3} \cdot 11^{2} \cdot 13 \cdot 17 \cdot 19 \cdot 23 $$ leave primes larger then 5 and combine 5 's and 3 's each with a 2 and finally write $2^{6}$ as $8^{2}$ to get the maximal number 27 . Problem 54. Positive real numbers $x, y, z$ satisfy $$ \begin{array}{r} x^{2}+x y+y^{2}=1 \\ y^{2}+y z+z^{2}=2 \\ z^{2}+z x+x^{2}=3 \end{array} $$ Find the value of $x y+y z+z x$. Result. $2 \sqrt{2 / 3}=\frac{2}{3} \sqrt{6}$ Solution. By adding the first and the third equation and subtracting twice the second one, we obtain $$ (2 x-y-z)(x+y+z)=0 $$ and since $x, y, z$ are positive, $2 x=y+z$. Put $y=x-\delta, z=x+\delta$ and plug in to the equations from the statement to obtain $$ \begin{gathered} 3 x^{2}-3 x \delta+\delta^{2}=1 \\ 3 x^{2}+\delta^{2}=2 \\ 3 x^{2}+3 x \delta+\delta^{2}=3 \end{gathered} $$ It follows that $x \delta=1 / 3$ and plugging into the second new equation gives a quadratic equation with solutions $$ \delta^{2}=1 \pm \frac{1}{3} \sqrt{6} $$ We are asked to compute $3 x^{2}-\delta^{2}=2-2 \delta^{2}$ and since the result has to be positive, the only possibility is $2 \sqrt{2 / 3}$. Alternative solution: Pick a point $P$ in the plane and draw line segments $P A, P B$ and $P C$ of lengths $x, y$ and $z$ respectively, so that $\angle A P B=\angle B P C=\angle C P A=120^{\circ}$. Since $\cos \left(120^{\circ}\right)=-\frac{1}{2}$, the given equations and the Law of Cosines yield $A B=1, B C=\sqrt{2}$ and $A C=\sqrt{3}$ and thus $A B C$ is a right triangle with area $S=\frac{\sqrt{2}}{2}$. Note that this area can be computed also using the three triangles sharing vertex $P$ as follows: $S=\frac{1}{2} \sin \left(120^{\circ}\right)(x y+y z+z x)$. Recall that $\sin \left(120^{\circ}\right)=\frac{\sqrt{3}}{2}$ and conclude that $x y+y z+z x=\frac{2 \sqrt{6}}{3}$. Problem 55. Let $I$ and $O$ be respectively the incenter and the circumcenter of triangle $A B C$ with the properties $A B=495, A C=977$ and $\angle A I O=90^{\circ}$. Determine the length of $B C$. Result. 736 Solution. Consider a homothety with center $A$ and ratio 2 and mark respective images of points by adding a prime. Then $A O^{\prime}$ is clearly the diameter of the circumcircle of $\triangle A B C$ and as $\angle A I O=90^{\circ}, I^{\prime}$ also lies on the circumcircle. It follows that it is the midpoint of arc $B C$ not containing $A$. It is well known that this point (from now on denoted by $\check{S})$ satisfies $\check{S} I=\check{S} C$ and basic angle chasing reveals $\angle B C \check{S}=\angle B A \check{S}=\angle C A \check{S}$. Let $D$ denote the intersection of $A \check{S}$ and $B C$. Then $\triangle D \check{S} C \sim \triangle C \check{S} A$ and hence $$ \frac{\check{S} D}{\check{S} I}=\frac{D \check{S}}{\check{S} C}=\frac{C \check{S}}{\check{S} A}=\frac{\check{S} I}{\check{S} A}=\frac{1}{2} $$ is the inverted ratio of the homothety. It follows that $[B C I]=\frac{1}{3}[A B C]$, where $[X Y Z]$ denotes the area of triangle $X Y Z$. This can be rewritten using the radius $r$ of the incircle of $\triangle A B C$ as $$ \frac{1}{2} r \cdot B C=\frac{1}{6} r(A B+B C+C A) $$ and so ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-20.jpg?height=713&width=596&top_left_y=1965&top_left_x=730) Problem 56. Find all triples $(a, b, c)$ of positive integers satisfying the equation $3 a b c=2 a+5 b+7 c$. Result. $(1,16,2),(2,11,1),(12,1,1)$ Solution. Dividing the equation by the (positive) number $a b c$ yields $$ 3=\frac{2}{b c}+\frac{5}{c a}+\frac{7}{a b} $$ If all three unknowns are larger than one and at least one of them is larger than two, then the right-hand side is at most $$ \frac{2}{2 \cdot 3}+\frac{5}{2 \cdot 3}+\frac{7}{2 \cdot 2}=\frac{35}{12}<3 $$ so there is no solution under these assumptions. One can easily verify that $a=b=c=2$ does not yield a solution either. Therefore at least one of $a, b, c$ is equal to 1 . If $a=1$, then the original equation reads $$ 3 b c=2+5 b+7 c $$ which, after multiplying by 3 and rearranging, can be factorised to $$ (3 b-7)(3 c-5)=41 $$ Since both factors have to be positive divisors of prime number 41, which gives remainder 2 when divided by 3 , we have only one solution, namely $b=16$ and $c=2$. If $b=1$, we obtain $$ 3 a c=2 a+5+7 c $$ and a similar step yields $$ (3 a-7)(3 c-2)=29 $$ leading to $a=12$ and $c=1$ using the same divisibility argument as before. Finally, the option $c=1$ produces the equation $$ (3 a-5)(3 b-2)=31 $$ with solutions $a=12, b=1$ and $a=2, b=11$, the former being already found in the previous step. Summing up, there are exactly three solutions: $(1,16,2),(2,11,1)$ and $(12,1,1)$. Problem 57. At a party, every guest is a friend of exactly fourteen other guests (not including him or her). Every two friends have exactly six other attending friends in common, whereas every pair of non-friends has only two friends in common. How many guests are at the party? Result. 64 Solution. Pick a guest $x$ together with all his or her friends and call this group of 15 people $H$. Let $y$ be a member of $H$ different from $x$, we claim that $y$ has precisely 7 friends outside of $H$ : Out of 14 friends of $y$, one is $x$ and further six are common friends of $x$ and $y$, all included in $H$. Therefore there are altogether $c=14 \cdot 7=98$ pairs $(y, z)$, where $y$ is a member of $H$ different from $x$ and $z$ is a friend of $y$ outside $H$. However, the number $c$ can also be computed as follows: Each guest $z$ outside $H$ has precisely two friends in $H$, because $x$ is not a friend of $z$ by the definition of $H$ and both the common friends of $x$ and $z$ are in $H$. In other words, $c$ is twice the number of guests outside $H$, therefore there are $98 / 2=49$ guests not in $H$. Since $H$ has 15 members, we conclude that the party is attended by $15+49=64$ people. Let us note that such a configuration of relations between 64 guests is indeed possible: Put the guests into the cells of an $8 \times 8$ table and let every two guests be friends of each other precisely if they are in the same row or column. It is easy to see that the conditions from the statement are then satisfied. Problem 58. A point $P$ is located in the interior of triangle $A B C$. If $$ A P=\sqrt{3}, \quad B P=5, \quad C P=2, \quad A B: A C=2: 1, \quad \text { and } \quad \angle B A C=60^{\circ} $$ what is the area of triangle $A B C$ ? Result. $\frac{6+7 \sqrt{3}}{2}$ Solution. Take a point $Q$ on the opposite side from the point $C$ with respect to line $A B$ such that $\triangle A B Q \sim \triangle A C P$. The similarity ratio equals $A B: A C=2$ and it follows that $A Q=2 A P=2 \sqrt{3}$ and $B Q=2 C P=4$. Note that these equalities together with $\angle Q A B=\angle P A C$ imply $\triangle A P Q \sim \triangle A C B$ and hence $\angle A P Q=90^{\circ}$ and $$ P Q=\sqrt{(2 \sqrt{3})^{2}-(\sqrt{3})^{2}}=3 $$ due to the Pythagorean theorem (we will refer to it as the Theorem in the rest of this solution). Since $B P^{2}=5^{2}=$ $4^{2}+3^{2}=B Q^{2}+P Q^{2}$, the reverse implication of the Theorem yields $\angle B Q P=90^{\circ}$. Considering the reflection $Q^{\prime}$ of $Q$ with respect to the midpoint of $B P$ then allows us to use the Theorem again in right triangle $A Q^{\prime} B$ to compute $A B^{2}=P Q^{2}+(A P+B Q)^{2}=28+8 \sqrt{3}$, and conclude that the area of $\triangle A B C$ equals $$ \frac{1}{2} \cdot A B \cdot A C \cdot \sin 60^{\circ}=\frac{\sqrt{3}}{8} A B^{2}=\frac{6+7 \sqrt{3}}{2} $$ ![](https://cdn.mathpix.com/cropped/2024_06_04_066f321a2bba9c877957g-22.jpg?height=529&width=580&top_left_y=712&top_left_x=744) Problem 59. Let $P(x)=a_{n} x^{n}+a_{n-1} x^{n-1}+\cdots+a_{1} x+a_{0}$ be a polynomial with non-negative integer coefficients such that $$ P\left(\frac{\sqrt{21}-1}{2}\right)=2020 $$ Find the minimal possible value of $a_{n}+a_{n-1}+\cdots+a_{1}+a_{0}$. Result. 22 Solution. Let $u=\frac{\sqrt{21}-1}{2}$ and note that we are minimizing $a_{n}+a_{n-1}+\cdots+a_{1}+a_{0}=P(1)$. We split the solution into several steps. Step 1: Check that $u$ is a root of $G(x)=x^{2}+x-5$ and divide $P(x)$ by $G(x)$, i.e. write $$ P(x)=Q(x) G(x)+A x+B $$ for some integers $A, B$ and a polynomial $Q$ with integer coefficients (since the leading coefficient of $G(x)$ is 1 , standard algorithm of polynomial long division yields the result). Step 2: Since $P(u)-2020=0, A, B$ are integers and $u$ is irrational, we conclude that $A=0$ and $B-2020=0$, i.e. $$ P(x)=Q(x) G(x)+2020 $$ Step 3: If any of the coefficients of $P(x)$, say $a_{k}$, satisfies $a_{k} \geq 5$, then the polynomial $\tilde{P}(x)=P(x)+G(x) x^{k}=$ $P(x)+\left(x^{2}+x-5\right) x^{k}$ also satisfies all the conditions and $\tilde{P}(1)=P(1)-3$. Repeating this procedure as many times as possible we end up with a polynomial $P(x)$ with all coefficients satisfying $a_{k} \in\{0,1,2,3,4\}$ and $P(u)=2020$. Step 4: Observe that the polynomial $P$ satisfying these properties is unique. Indeed, any such polynomial fulfills the equation $(\star)$ with an appropriate polynomial $Q(x)$, in order to have $0 \leq a_{0} \leq 4$, where $a_{0}$ is the constant coefficient of $P(x)$, we infer that the constant coefficient of $Q(x)$ must satisfy $q_{0}=404$. Due to the fact that we know all coefficients of $G(x)$ and the constant one has absolute value 5 , we can proceed to determine the linear coefficient $q_{1}$ from equation ( $\star$ ) etc. Uniqueness of $Q(x)$ clearly implies the desired uniqueness of $P(x)$. Step 5: Now it only remains to provide the computations arising from repeating the procedure described in Step 3. We start with constant polynomial $P_{0}(x)=2020$ and proceed as follows: $$ \begin{aligned} P_{1}(x) & =404 x^{2}+404 x \\ P_{2}(x) & =80 x^{3}+484 x^{2}+4 x \\ P_{3}(x) & =96 x^{4}+176 x^{3}+4 x^{2}+4 x \\ P_{4}(x) & =35 x^{5}+131 x^{4}+x^{3}+4 x^{2}+4 x \\ P_{5}(x) & =26 x^{6}+61 x^{5}+x^{4}+x^{3}+4 x^{2}+4 x \\ P_{6}(x) & =12 x^{7}+38 x^{6}+x^{5}+x^{4}+x^{3}+4 x^{2}+4 x \\ P_{7}(x) & =7 x^{8}+19 x^{7}+3 x^{6}+x^{5}+x^{4}+x^{3}+4 x^{2}+4 x \\ P_{8}(x) & =3 x^{9}+10 x^{8}+4 x^{7}+3 x^{6}+x^{5}+x^{4}+x^{3}+4 x^{2}+4 x \\ P_{9}(x) & =2 x^{10}+5 x^{9}+4 x^{7}+3 x^{6}+x^{5}+x^{4}+x^{3}+4 x^{2}+4 x \\ P_{10}(x) & =x^{11}+3 x^{10}+4 x^{7}+3 x^{6}+x^{5}+x^{4}+x^{3}+4 x^{2}+4 x \end{aligned} $$ The sought minimum is thus $P_{10}(1)=1+3+4+3+1+1+1+4+4=22$.