Problem 1. When asked about her age, grandmother Mary gives the answer in a puzzle: I have five children and they are of different age, each 4 years apart. I had my first child when I was 21 years old, and now my youngest child is 21 . Find the age of grandma. Result. 58 Solution. Clearly, the ages of the children are $21,21+4, \ldots, 21+4 \cdot 4$. Grandma is 21 years older than her oldest offspring, namely she is $21+4 \cdot 4+21=58$ years old. Problem 2. An old windmill propeller consisting of five triangular blades is formed by five solid line segments of equal length, whose midpoints all lie at point $S$ and whose endpoints are connected as in the picture. Determine the size of the angle denoted by the question mark in degrees. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-01.jpg?height=517&width=556&top_left_y=615&top_left_x=750) Result. 56 Solution. The ten angles adjacent to point $S$ form five pairs of opposite angles of equal size and the five of them which are the interior angles at the vertex $S$ in the five isosceles triangles sum up to $180^{\circ}$. Hence the sum of the five marked angles equals $\frac{5 \cdot 180^{\circ}-180^{\circ}}{2}=360^{\circ}$ and it follows that the size of the missing angle is $360^{\circ}-67^{\circ}-80^{\circ}-85^{\circ}-72^{\circ}=56^{\circ}$. Problem 3. Students have an opportunity to take part in three different athletics competitions. Each student has to take part in at least one competition. In the end, 22 students have chosen the sprint race, 13 students have gone for the long jump and 15 students have taken part in the shot put competition. Furthermore, we know that 8 students have selected the sprint race and the long jump, 7 students have chosen the sprint race and the shot put, and 6 students have decided in favor of long jump and shot put. There are 3 very ambitious students who have taken part in all three competitions. How many students are there in this class? Result. 32 Solution. Add the number of participants of the single competitions and subtract the number of students who have chosen two competitions from the result. Hence, the very motivated students who have taken part in all three competitions are subtracted once too often, their number has to be added. Therefore, the final result is $22+13+15-8-7-6+3=32$. Problem 4. A number is called super-even if all of its digits are even. How many five-digit super-even numbers are there such that when added to 24680 the result is also super-even? Result. 90 Solution. There are five even one-digit numbers. To guarantee that the result is super-even, any two digits added during the traditional addition algorithm must lead to a sum less than 10. Bearing in mind that a number cannot start with zero, we have three possibilities $(2,4$ and 6 ) for the first digit, another three possibilities for the second digit, two possibilities for the third digit, one possibility at the fourth digit and five possibilities for the last one. Since these choices are independent, we get $3 \cdot 3 \cdot 2 \cdot 1 \cdot 5=90$ such numbers in total. Problem 5. Once upon a time there was a wise King. His castle was in the centre of four concentric circular walls of radii $50,100,150,200$ and the land surrounded by the largest wall was used as the castle grounds (including the land inside the other walls). There were peaceful times, so he decided to tear down all four walls and build only one circular wall, again with his castle as the center, of maximal possible radius from the material of the old ones. What is the ratio of the area of the new castle grounds and the area of the old one (as a number greater or equal to one)? Result. $\frac{25}{4}$ Solution. We know that the sum of the perimeters of the four circular walls will be the perimeter of new circular wall. Denote the radius of the new circular wall by $r$. Then $$ 2 \pi \cdot 50+2 \pi \cdot 100+2 \pi \cdot 150+2 \pi \cdot 200=2 \pi \cdot r $$ implies that $r$ is the sum of the given radii, i.e. $r=500$. Hence, the desired ratio is $\frac{\pi \cdot 500^{2}}{\pi \cdot 200^{2}}=\frac{25}{4}$. Problem 6. Zoe is trying to open a lock. She knows the following about its four-digit code: - all of its digits are different, - 137 and 17 divide it, - the sum of its digits is the smallest possible prime. What is the code? Result. 9316 Solution. Since the sought number is divisible by the primes 137 and 17 , it must be a multiple of $137 \cdot 17=2329$. Observe that this number does not comply with the conditions and that this number only can be multiplied by 2,3 , or 4 to stay a four-digit number. We compute $2329 \cdot 2=4658,2329 \cdot 3=6987$ and $2329 \cdot 4=9316$, which have sums of digits 23,30 , and 19 , respectively. Because 19 is the smallest occurring prime, the number 9316 opens the lock. Problem 7. There are four polygons on the table - an equilateral triangle with unit side length and three other congruent regular polygons with unit side lengths as well. Every two of the four polygons share exactly one side and no two of them overlap. What is the perimeter of the resulting shape, not counting the shared sides? Result. 27 Solution. Let us assume the congruent polygons have $n$ sides each. Then the resulting shape has $3(n-3)$ sides, since three sides of all polygons including the triangle are shared. We only need to determine $n$. Since the outer angle of the equilateral triangle is $300^{\circ}$, the inner angle of the congruent polygons must be $150^{\circ}$. Since the sum of inner angles of any $n$-gon equals $(n-2) \cdot 180^{\circ}$, we have to solve the equation $150 n=180(n-2)$, which holds for $n=12$. Plugging into the above formula, we obtain that the resulting polygon has $3 \cdot 9=27$ sides. Problem 8. There is an equilateral triangle with several marked points (including its three vertices) on its boundary dividing each of its sides into 2021 congruent segments. Determine the number of all equilateral triangles with vertices in these marked points. The figure shows one of such triangles in case that each side of the given equilateral triangle was divided into 6 congruent parts. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-02.jpg?height=474&width=534&top_left_y=1639&top_left_x=767) Result. 8081 Solution. Let us refer to equilateral triangles just as to triangles. There is the original triangle, then $3 \cdot 2020$ triangles sharing exactly one vertex with the original triangle (2020 for each vertex) and there are 2020 rotated triangles (as on the picture from the statement) sharing no vertex with the original one. It is easy to see that these triangles are all distinct and there is no other such triangle. Altogether, we have $1+3 \cdot 2020+2020=8081$ desired triangles. Problem 9. Veronica cuts off the four corners of a square sheet of paper in such a way that a regular octagon remains. The cut off material has a total area 300 . What is the side length of the regular octagon? Result. $\sqrt{300} \approx 17.32051$ Solution. The interior angles of regular octagon are $135^{\circ}$. Therefore Veronica cuts off four right-angled isosceles triangles which may be assembled in a square with the side length of the regular octagon. As a consequence, the side length of the regular octagon equals $\sqrt{300}$. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-03.jpg?height=531&width=548&top_left_y=291&top_left_x=754) Problem 10. Find the largest three-digit positive integer $n$ with the following properties: - the sum of digits of $n$ is 16 , - the product of digits of $n$ is not 0 , but the units digit of this product is 0 , - the sum of digits of the product of digits of $n$ is 3 . Result. 853 Solution. From the second condition we obtain that at least one digit of $n$ has to be 5 and at least one digit has to be even. However, none of the digits may be 0 . Taking this into consideration, we derive the possibilities $5,2,9$ or $5,4,7$ or $5,6,5$ or $5,8,3$ from the first condition. From these values only $5,8,3$ fulfill the last condition and hence the largest three-digit integer satisfying the conditions is 853 . Problem 11. Exactly five digits are to be removed from the number 6437051928 so that the resulting five-digit number is the largest possible. What will the resulting number be? Result. 75928 Solution. The largest ten-thousand-digit that can be achieved by removing at most five digits from the left is 7 , so we need to remove the first three digits. By analogous arguments we conclude that the optimal choice is then finished by removing digits 0 and 1 . Therefore, 75928 is the sought answer. Problem 12. Let $n$ be a positive integer. Now consider the increasing sequence $S_{n}$ starting with 1 and having constant difference $n$ between one term and the next term. For instance, $S_{2}$ is the sequence $1,3,5, \ldots$ For how many values of $n$ does $S_{n}$ contain the number 2021? Result. 12 Solution. The number 2021 appears as a term in the sequence $S_{n}$ if and only if $2021=1+a n$ for some positive integer $a$. In other words, $2020=a n$, so $n$ has to be a divisor of 2020 . The prime factorization of 2020 is $2020=2^{2} \cdot 5 \cdot 101$. Any divisor of 2020 is obtained by multiplying some of these primes. We can take the prime 2 zero, one or two times, that gives 3 possibilities. The prime 5 can be taken or not - giving 2 possibilities and the same holds for 101. In total, we have $3 \cdot 2 \cdot 2=12$ possibilities how to choose a divisor of 2020 . Hence 2021 is a term in 12 sequences $S_{n}$. Problem 13. There is a straight 90-meter-long corridor with ten windows, each two neighbouring being 10 meters apart. Tommy placed seven robots by seven different windows, and switched them all on at the same time. When switched on, each robot moves at a constant speed of 10 meters in a minute in one of the two directions until it reaches the end of the corridor where it instantly turns and continues in the same manner in the opposite direction. Tommy was measuring the time until the first moment when every robot met all the others. Determine the largest possible value he could have measured in seconds. Result. 510 Solution. For a given robot $A$ we can determine the window and direction of a robot which would meet $A$ in the longest possible time - it is the window right behind $A$ heading in the opposite direction (if placed by one of the end windows, we assume that a robot is heading out of the corridor in this argument). The time to the first meeting is then easily computed to be 8.5 minutes which is equal to 510 seconds. Problem 14. Inside the parallelogram $A B C D$ there is a point $P$ such that the area of the triangle $C D P$ is three times the area of the triangle $B C P$ and one third the area of the triangle $A P D$. Find the area of the triangle $A B P$ if the area of the triangle $C D P$ is 18 . ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-04.jpg?height=434&width=1102&top_left_y=291&top_left_x=477) Result. 42 Solution. From the formula for the area of a triangle "side length times the corresponding altitude divided by two" we deduce that triangles $A P D$ and $B C P$ cover half of the area of the parallelogram. Therefore the area of triangle $A B P$ equals $$ \left(\frac{1}{3}+3\right) \cdot 18-18=42 $$ Problem 15. Dividing 1058, 1486 and 2021 by a certain positive integer $d>1$ leaves always the same remainder. Find the number $d$. Result. 107 Solution. The distances between the three numbers are $1486-1058=428$ and $2021-1486=535$. Since the numbers given leave the same remainder when divided by $d$, the distances have to be multiples of $d$. The greatest common divisor of 428 and 535 is the prime 107, which is the sought integer $d$. Problem 16. In the football stadium the substitutes' bench has fourteen single chairs. The new management of the team consisting of coach, assistant coach, manager and physiotherapist wants to become acquainted with all the players. Therefore, during the game they want to sit on the bench among the ten substitute players in such a way that each member of the management sits between two players. In how many ways can the members of the management choose their four chairs to achieve this? Note: Using two different orders on the same four chairs counts as two different ways. Result. 3024 Solution. Imagine the ten substitute players standing in a row. There are nine gaps between the ten players and each gap can be occupied by at most one member of the trainer team. Therefore they have $9 \cdot 8 \cdot 7 \cdot 6=3024$ possibilities to sit in the desired way. Problem 17. A regular pyramid has a square base of area 1. The surface area of the whole pyramid equals 3. What is its volume? Result. $\frac{\sqrt{3}}{6} \approx 0.288675$ Solution. The base has sides of size 1. As the whole pyramid has surface area 3, each of its four triangular faces has the area $\frac{1}{2}$ and height equal to 1 . Thus a cut through its vertex and heights of two opposite faces creates an equilateral triangle of side 1 whose height $\frac{1}{2} \sqrt{3}$ is the same as the height of the pyramid. The volume of the pyramid equals one third of the base surface area times the height, namely $\frac{1}{3} \cdot 1 \cdot \frac{1}{2} \sqrt{3}=\frac{1}{6} \sqrt{3}$. Problem 18. The magical Cana machine transforms liquids. If it gets pure water, it converts $6 \%$ of it to wine and keeps the remaining $94 \%$ unchanged. If it gets pure wine, it converts $10 \%$ of it to water and keeps the remaining $90 \%$ unchanged. If it gets a mixture, it acts on the components separately as described above. Mary bought water and wine, 6000 liters in total, and poured everything into her Cana machine. After the machine had stopped, Mary realised that the mixture remained unchanged. How many litres of wine were there? Result. 2250 Solution. Denote by $x$ the amount of wine, and by $z$ the amount of water in litres before the Cana machine was used. We know that $0.06 z$ litres of water gets converted into wine and $0.1 x$ litres of wine to water and that $x$ is the same before and after running the machine. Hence, we must have $0.06 z=0.1 x$. Given that $x+z=6000$, we can write $0.06(6000-x)=0.1 x$. Solving for $x$ leads to $6000 \cdot \frac{3}{8}=2250$ litres of wine. Problem 19. The figure shows an equilateral triangle with its incircle and its circumcircle. Find the area of the shaded region, if the area of the circumcircle is 140 . ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-05.jpg?height=460&width=462&top_left_y=250&top_left_x=797) Result. 35 Solution. It is easy to compute that the radius of the incircle of an equilateral triangle is half the radius of its circumcircle. Thus the area of the incircle equals $\frac{140}{4}=35$. Furthermore, the shaded area is exactly one third of the annulus given by the two circles, i.e. 35 as well. Problem 20. If the product of 2021 positive integers equals twice their sum, what is the largest possible value of one of them? Result. 4044 Solution. Let us denote the positive integers as $c_{1} \geq c_{2} \geq \cdots \geq c_{2020} \geq c_{2021} \geq 1$. We wish to determine the largest possible value of $c_{1}$ assuming that the equation $$ c_{1} \cdots c_{2021}=2 \cdot\left(c_{1}+\cdots+c_{2021}\right) $$ holds. Dividing by the left-hand side and estimating the denominators from below by setting some of the numbers $c_{i}$ to 1 yields $$ 1=2\left(\frac{1}{c_{2} \cdots c_{2021}}+\cdots+\frac{1}{c_{1} \cdots c_{2020}}\right) \leq 2\left(\frac{1}{c_{1}}+\frac{1}{c_{2}}+\frac{2019}{c_{1} c_{2}}\right)=2 \cdot \frac{2019+c_{1}+c_{2}}{c_{1} c_{2}} $$ Multiplying by $c_{1} c_{2}$ and rearranging then gives $$ \left(c_{1}-2\right)\left(c_{2}-2\right)=c_{1} c_{2}-2 c_{1}-2 c_{2}+4 \leq 2 \cdot 2019+4=4042 $$ If $c_{2} \geq 3$ we get $c_{1} \leq 4044$ and the choice $c_{1}=4044, c_{2}=3$ and $c_{3}=\cdots=c_{2021}=1$ satisfying the equation (1) shows that this value can be attained. On the other hand, if $c_{2} \leq 2$ then the numbers $c_{2} \geq c_{3} \geq \cdots \geq c_{2021}$ consist of $k \geq 0$ twos and $2020-k$ ones and the equation (1) reads as $$ c_{1} 2^{k}=2\left(c_{1}+2 k+2020-k\right) $$ It can be further simplified to $c_{1}\left(2^{k-1}-1\right)=2020+k$ and we observe that for $k \leq 1$ there is no $c_{1}$ satisfying this equation and for $k \geq 2$ we have $$ c_{1}=\frac{2020+k}{2^{k-1}-1} \leq 2022<4044 $$ so the result is 4044 . Problem 21. The nine small triangles in the picture below are to be filled-in with distinct positive integers such that any two numbers in triangles sharing a side have a common divisor greater than 1 . What is the smallest possible sum of the nine numbers filled in? ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-05.jpg?height=420&width=485&top_left_y=2234&top_left_x=794) ## Result. 59 Solution. First of all, observe that there are three cells with one neighbour, three ones with two and three ones with three neighbours. This means, if a prime $p$ is one of the nine numbers, at least one multiple of $p$ has also to be among the nine numbers. Secondly, note that 1 can not be one of the nine numbers. Denote the sum of a valid filling by $S$. If there is a prime $p \geq 11$ in a valid filling, then at least one multiple $k \cdot p$ with $k \geq 2$ must also be present. Fill the remaining seven cells by the smallest available numbers, regardless whether they comply with the rules. Then $$ S \geq 2+3+4+5+6+7+8+p+k \cdot p=35+(k+1) \cdot p \geq 35+33=68 $$ Now we assume no prime $p \geq 11$ is present in a valid filling and consider four subcases: - Both the numbers 5 and 7 are present: $$ S \geq 5+k_{5} \cdot 5+7+k_{7} \cdot 7+2+3+4+6+8=\left(k_{5}+1\right) \cdot 5+\left(k_{7}+1\right) \cdot 7+23 \geq 15+21+23=59 $$ - Number 5 is present, but there is no 7 : $$ S \geq 5+k \cdot 5+2+3+4+6+8+9+ \begin{cases}10 \geq 20+32+10=62 & \text { for } \quad k \geq 3 \\ 12=15+32+12=59 & \text { for } \quad k=2\end{cases} $$ - There is neither 5 nor 7 : $$ S \geq 2+3+4+6+8+9+10+12+14=68 $$ - Number 7 is present, but there is no 5 : $$ S \geq 2+3+4+6+7+8+9+10+k \cdot 7 \geq 49+14=63 $$ Altogether, we can conclude that 59 is a candidate for the minimal sum. In fact, both sets of numbers from above having sum 59 can be filled in according to the rules: ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-06.jpg?height=358&width=922&top_left_y=1300&top_left_x=568) Therefore, the answer is 59 . Problem 22. Lotta is repeatedly drawing the same house: it consists of two congruent squares and an isosceles right-angled triangle serves as the roof. Each new house is put in line next to the existing ones. Here you can see her first three houses: ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-06.jpg?height=368&width=1037&top_left_y=1866&top_left_x=515) What is the minimum number of houses she has to draw in order to count at least 2021 triangles in her drawing? Result. 93 Solution. Define the area of one house to be 3 . In the first house, there are 8 triangles of area $\frac{1}{4}, 8$ triangles of area $\frac{1}{2}$, and 3 triangles of area 1. These add up to 19. In the second house, we can find the same number of triangles as in a single house plus 2 triangles of area 1 which reach from one house into the other. Therefore, the second house provides 21 triangles. Starting at house number 3 , each additional house contributes the number of triangles of the second house plus one triangle of area 4 which ranges over three houses. So, for each additional house, there are 22 triangles. Since $2021-19-21=1981$ and $1981=90 \cdot 22+1$, Lotta has to draw $2+90+1=93$ houses. Problem 23. Each of the five triangles $N, \dot{a}, b, o, j$ has the same area. Find $A B$ if $C D=5$. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-07.jpg?height=477&width=808&top_left_y=207&top_left_x=630) Result. $\frac{15}{4}$ Solution. The area ratio between the triangles $B E G$ and $B E F$ is $4: 3$. Since these triangles have the same base line $B E$, the respective heights must have the ratio $4: 3$, too. Since the triangles $A B G$ and $C D F$ have the same area, we conclude that $A B=\frac{3}{4} C D=\frac{15}{4}$. Problem 24. Anna has a large rectangular sheet of paper with side lengths 2155 and 2100 . She cuts off a strip of width 1 along the longer side, then, continuing clockwise, a strip of width 2 along the shorter side and again a strip of width 3 along the longer side. She continues to cut off strips of widths increasing by one as long as this is possible, see the following picture. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-07.jpg?height=726&width=717&top_left_y=1096&top_left_x=675) Eventually, she ends up with a rectangle from which she cannot cut off any strip of increasing width anymore. Find the area of this rectangle. Result. 6375 Solution. Anna may cut off strips of odd width as long as $$ 1+3+\cdots+2 n-1=n^{2}<2100 $$ Since $$ 45^{2}=2025<2100<2116=46^{2} $$ the strip of width 89 is the last one possible having odd width. Furthermore, she may cut off strips of even width as long as $$ 2+4+\cdots+2 n=n(n+1)<2155 $$ Due to $$ 45 \cdot 46=2070<2155<2162=46 \cdot 47 $$ the strip of width 90 is the last one possible having even width. Therefore, as she can cut off all 90 strips, the remaining rectangle has the area $$ (2100-2025) \cdot(2155-2070)=75 \cdot 85=6375 $$ Problem 25. One of two identical rings of radius 4 and unknown width $w$ lies horizontally on a table while the second one is oriented vertically, it touches the first one at exactly four points (see the figure) and its lowest point lies at the height 1 above the table. What is $w$ ? ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-08.jpg?height=617&width=556&top_left_y=294&top_left_x=750) Result. $\frac{10}{3}$ Solution. Let us denote the desired width by $w$ and look at the figure depicting the vertical projection of the two rings onto the table. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-08.jpg?height=468&width=485&top_left_y=1074&top_left_x=794) The altitude of the lowest point(s) of the vertical ring above the table is then $1=w-x$. Hence $$ 8=2 x+w=2(w-1)+w=3 w-2 $$ and thus $w=\frac{10}{3}$. Problem 26. A polynomial of degree 14 has integer coefficients, the leading one being positive, and 14 distinct integer roots. Its value $p$ at zero is positive. Determine the lowest possible $p$. Result. 29030400 Solution. The polynomial can be written as $c \cdot\left(x-a_{1}\right) \cdot\left(x-a_{2}\right) \cdots\left(x-a_{14}\right)$ for some pairwise distinct integers $a_{1}, a_{2}, \ldots, a_{14}$ and a number $c$. The leading coefficient is then equal to $c$, so $c$ is positive. The value at 0 equals the constant coefficient, that is the product $c \cdot a_{1} \cdot a_{2} \cdots a_{14}$. As we want to minimize it, we set $c$ as small as possible, that is $c=1$. To minimize the remaining product of the roots, we have to take them as close to zero as possible, that is $1,-1,2,-2, \ldots$ However, we have to choose an even number of negative integers, which leads to the result $6!\cdot 8!=29030400$ Problem 27. Beata writes the digits 4,5 and 7 using two strokes and every other digit using one stroke. How many strokes does she use when she writes all integers from 1 to 2021 including these two numbers? Result. 8783 Solution. When she writes the integers from 1 to 2021 , she writes 9 one-digit numbers, 90 two-digit numbers, 900 three-digit numbers and $2021-(9+90+900)=1022$ four-digit numbers. In total, she writes $$ 9+90 \cdot 2+900 \cdot 3+1022 \cdot 4=6977 $$ digits. For each digit, she does one stroke, while she does one additional stroke for each digit which equals 4,5 or 7 . So it is sufficient to count how many of these digits are written. Since the number 2021 contains none of the digits 4,5 or 7 , we consider only integers up to 2020 . Let us count the digits 4 she writes. There is $\frac{1}{10}$ of all numbers up to 2020 which has the digit 4 in the ones place, i.e. 202 numbers. The digit 4 occurs in the tens place in $\frac{1}{10}$ of the numbers up to 2000 and in no number between 2001 and 2020. Altogether that is 200 times. Similarly, the digit 4 occurs in hundreds place 200 times. In total, the digit 4 is written $202+200+200=602$ times. The same goes for the digits 5 and 7 . To conclude, she writes 6977 digits while $3 \cdot 602=1806$ of them are 4,5 or 7 . Therefore, she does $$ 6977+1806=8783 $$ strokes. Problem 28. The table below should be filled with the numbers $1,1,2,2, \ldots, 8,8$ in such a way that for every used number $n$ there are exactly $n$ other cells between the two occurrences of $n$. Three of these numbers are already placed in advance: ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-09.jpg?height=97&width=1422&top_left_y=645&top_left_x=317) Insert the remaining numbers according to the rules and give the 4-digit integer number in the shaded area as a solution. For $1,1,2,2,3,3$ a correctly filled example would be: | 3 | 1 | 2 | 1 | 3 | 2 | | :--- | :--- | :--- | :--- | :--- | :--- | Result. 3845 Solution. For the ease of notation we treat the table given as an array $f$ with sixteen entries. From the three entries given, $f(6)=6, f(7)=7, f(9)=2$, we uniquely get $f(13)=6, f(15)=7$, and $f(12)=2$. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-09.jpg?height=97&width=1425&top_left_y=1094&top_left_x=318) In principle there are two different strategies: either to look, where a specific pair of numbers may be placed, or to consider which numbers are possible in a specific cell like in Sudoku. For example we can look for the possibilities to fill in the pair of 3 . There are three possibilities: either $f(1)=f(5)=3$ or $f(4)=f(8)=3$ or $f(10)=f(14)=3$. It is easy to see that $f(10)=f(14)=3$ leaves the only possibility $f(16)=4$ to fill $f(16)$ and, as a consequence, we get $f(11)=4$. But now we cannot place the pair of 8 anymore. The case $f(4)=f(8)=3$ results in two possibilities for the pair of 5 , namely $f(5)=f(11)=5$ or $f(10)=f(16)=5$. Both alternatives produce a contradiction immediately, as we can't place the pair of 4 in neither case. Now $f(1)=f(5)=3$ leaves the unique possibility $f(2)=f(11)=8$ and the only way to fill the remaining cells according to the rules is $f(3)=f(8)=4, f(14)=f(16)=1$ and finally $f(4)=f(10)=5$. | 3 | 8 | 4 | 5 | 3 | 6 | 7 | 4 | 2 | 5 | 8 | 2 | 6 | 1 | 7 | 1 | | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | Therefore the unique solution asked for is 3845 . Problem 29. A convex hexagon $A B C D E F$ with intersection $G$ of its diagonals $B E$ and $C F$ satisfies the following properties as indicated in the sketch: $A B=7.5, B G=5, G E=3, G F=4.8, \angle B A F=\angle C D E, \angle A B G=50^{\circ}$, $\angle C B G=65^{\circ}, A B$ is parallel to $C F$, and $C D$ is parallel to $B E$. Determine the length of $C D$. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-09.jpg?height=734&width=713&top_left_y=1923&top_left_x=680) Result. $\quad 5.7=\frac{57}{10}$ Solution. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-10.jpg?height=688&width=960&top_left_y=221&top_left_x=548) Since $50^{\circ}+65^{\circ}+65^{\circ}=180^{\circ}$ and due to the two pairs of parallel segments, this is exactly the configuration obtained by folding the parallelogram $A E^{\prime} D^{\prime} F$ along a suitable segment $B C$ (it is indeed a parallelogram as $\angle B A F=\angle C D E$; see the sketch). Equivalently, one gets the same result by mapping the vertices $D, E$ along the line $B C$. Observing moreover that the triangle $B C G$ is isosceles, the length conditions yield $C D=A B+B E^{\prime}-C F=A B+E G-F G=5.7$. Problem 30. Nadja and Selina are playing the game Battleship. Among other ships, everybody has got a battle cruiser with an airfield for helicopters of the following shape: ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-10.jpg?height=186&width=354&top_left_y=1215&top_left_x=857) Nadja hides her battle cruiser somewhere in the $12 \times 12$ grid of the playing field. Since they are playing the game using pencil and paper, the above figure of the battle ship can be rotated and flipped over. At least how many times does Selina have to shoot, i.e. to select a square of the grid, to be certain to hit Nadja's battle ship at least once? Result. 36 Solution. Consider a $4 \times 2$ block. As can be seen in the first two pictures, choosing exactly one square does not guarantee a hit, since there is still an option to place the battle cruiser without being hit. Furthermore, it is clear that the choice of any square in one row and another square in the other row prevents hiding the battle cruiser in this block. The third picture shows an example for that. Therefore, two shots into a $4 \times 2$ block are necessary, yielding at least $18 \cdot 2=36$ shots in total. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-10.jpg?height=120&width=904&top_left_y=1825&top_left_x=580) On the other hand, the following diagonal pattern of the $12 \times 12$ grid demonstrates that 36 shots are also sufficient to ensure at least one hit on the battle cruiser. ![](https://cdn.mathpix.com/cropped/2024_06_04_e35a50b99a86248be05dg-10.jpg?height=573&width=574&top_left_y=2055&top_left_x=747) Problem 31. For a fixed positive integer $a$ we construct an acute-angled triangle $A B C$ such that $B C=a$ and lengths $h_{b}, h_{c}$ of the corresponding altitudes are integers as well. Given that the greatest possible area of such triangle is 101.4 , determine $a$. Result. 13 Solution. As $A B C$ is acute-angled, we obtain $h_{b}