File size: 59,758 Bytes
802d9fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 | Problem 1. The picture shows a decagon with all sides meeting at right angle. Lengths of some of the sides (shown as dashed in the picture) are known and given in centimeters.

What is the perimeter of the decagon in $\mathrm{cm}$ ?
Result. 4444
Solution. By swapping the "inner" corners into "outer" corners, the decagon can be transformed into a rectangle of dimensions 2018 and $70+134=204$. Therefore the perimeter is $2 \cdot(2018+204)=4444$.

Problem 2. The minute hand of this clock is missing. How many minutes have passed since the last full hour, if the angle between the hour hand and twelve o'clock is $137^{\circ}$ ?

Result. 34
Solution. Since the hour hand passes $360^{\circ}: 12=30^{\circ}$ in one hour, it takes 2 minutes to pass $1^{\circ}$. Therefore, it passed $137^{\circ}-4 \cdot 30^{\circ}=17^{\circ}$ after four o'clock, which took $17 \cdot 2=34$ minutes.
Problem 3. Four students, Kevin, Liam, Madison, and Natalie, took an exam. We know that their scores were 2, 12, 86, and 6 in some order. We also know that
- Kevin's score was pampam than Madison's score,
- Madison's score was pampam than Liam's score,
- Natalie's score was pampam than Liam's score,
- Kevin's score was pampam than Natalie's score.
where pampam means either "greater" or "smaller" (the same meaning in all four cases). What was the sum of Madison's and Natalie's scores?
Result. 18
Solution. One can see that if pampam stands for greater, then Kevin has the largest score and Liam has the smallest score, and if pampam means smaller, it is just the other way round. In any case, Madison and Natalie always have the middle two scores, namely 6 and 12 . Therefore the sought sum is 18 .
Problem 4. Jack and John are standing in a square and counting houses around. However, each starts counting (clockwise) at a different house, so Jack's house no. 4 is John's 16, and Jack's 12 is John's 7. How many houses are there in the square?
Result. 17
Solution. Since Jack's 4 is John's 16, there is a segment of houses where John's numbering is larger by 12. However, this segment has to end before Jack reaches 12 , since otherwise John would get $12+12=24$. Since the number always drops by the total number of houses when the end is reached, we see that there are $24-7=17$ houses on the square.
Problem 5. Doris has to decalcify the coffee machine. According to the instruction manual, she should mix four parts of water and one part of a $10 \%$ vinegar concentrate. Unfortunately, she can only find a bottle of $40 \%$ vinegar concentrate in her cupboard. How many parts of water have to be mixed with one part of $40 \%$ vinegar concentrate in order to get the prescribed concentration for decalcifying the coffee machine?
Note: Vinegar concentrate of $n \%$ consists of $n$ parts of vinegar and $100-n$ parts of water.
Result. 19
Solution. In the original recipe, the vinegar makes $10 \%$ of one of 5 parts. The same concentration is achieved if the vinegar makes $40 \%=4 \cdot 10 \%$ of one of $4 \cdot 5=20$ parts. Hence we need 19 extra parts of water.
Problem 6. If $g$ is parallel to $h$ and the angles at $A$ and $C$ are $105^{\circ}$ and $145^{\circ}$ as indicated in the picture, what is the measure of angle $\angle C B A$ ?

Result. $110^{\circ}$
Solution. We can add points $D, E$ lying on $h, g$, respectively, so that the known angles and the angle in question become the internal angles of pentagon $A B C D E$. Since the sum of the newly added angles is $180^{\circ}$ (we can make them right as in the figure below, but that is not necessary) and the sum of internal angles of any pentagon is $540^{\circ}$, we infer that the sought value is $540^{\circ}-180^{\circ}-105^{\circ}-145^{\circ}=110^{\circ}$.

Problem 7. If $A B C D$ is a square, what is the measure of angle $\varepsilon$ (in degrees)?

Result. $67.5^{\circ}$
Solution. Let $X, Y$ be the two points with angle $\varepsilon$. Then $\angle A X Y=\angle A Y X=\varepsilon$. Further, since $\angle X A Y=\angle C A B=45^{\circ}$, the interior angles of triangle $X Y A$ satisfy
$$
45^{\circ}+\varepsilon+\varepsilon=180^{\circ}
$$
or $\varepsilon=67.5^{\circ}$.
Problem 8. Cederic was born to his mother when she celebrated her 27th birthday. At most how many times can it happen that Cederic's age is the same as his mother's age read backwards?
Note: Possible leading zeros of numbers are ignored, e.g. 470 read backwards is 74 .
Result. 7
Solution. Let Cederic be $c$ years old and his mother $m$ years old, $c$ being equal to $m$ reversed. The numbers $c$ and $m$ have the same number of digits (with $c$ possibly having a leading zero, if $m$ ends with a zero), which is at least 2 . Let $a$ and $b$ be the units digit of $c$ and $m$, respectively. As Cederic's mother is 27 years older, we see that either $a+7=b$ or $a+7=10+b$. If the mother was at least 100 years old, the difference of the first digits of their ages could be at most 1 , which is not possible, as those are precisely the digits $b$ and $a$. Thus, both numbers $c$ and $m$ have 2 digits.
Therefore, we want to find all numbers $\overline{a b}$ such that
$$
\overline{a b}=\overline{b a}+27
$$
We know that $a>b$, so the condition $a+7=b$ cannot hold. Hence we consider the condition $a+7=10+b$ or $a=b+3$. Since $a \leq 9$, we have $b \leq 6$. For every digit $b \in\{0,1, \ldots, 6\}$, we get digit $a$ as $a=b+3$. It is easy to see that for these digits the equality $\overline{(b+3) b}=\overline{b(b+3)}+27$ holds. So the desired situation can happen 7 times: When Cederic has $3,14,25,36,47,58$, and 69 years.
Problem 9. Julia uses 32 white and 32 black cubes of side length 1 to form one big cube of dimensions $4 \times 4 \times 4$. She wants that the surface of the new cube contains as many white faces of the unit cubes as possible. What is the maximum possible proportion of the big cube's surface area that is white?
Result. $3 / 4$
Solution. If a unit cube is placed in a corner of the big cube, then three of its faces are visible, if it is on one of the edges, two faces are visible, otherwise only one face is shown. There are eight corners and each of the twelve edges of the big cube consists of two unit cubes - altogether 32 places, and it is clear that the highest proportion of white area is achieved if the white cubes are placed precisely to these places. In this placement every face of the big cube looks the same, showing twelve white and four black faces. Hence the proportion for the whole surface is equal to $12 / 16=3 / 4$.
Problem 10. One hundred people took part in the selection of the crew for a flight to Mercury. Each potential astronaut underwent three tests checking certain health, psychological, and experience criteria. Only twenty-six people passed the health check successfully. Moreover, sixty participants failed more than one of the three tests. Finally, there were eighty-three people failing either the psychological or the experience test, but nobody failed these two simultaneously. How many of the participants were chosen for the mission, i.e. passed all the three tests?
Result. 3
Solution. Since nobody failed in both the psychological and the experience test, all the participants failing in at least two tests must have failed because of their health. This gives us $(100-26)-60=14$ people failing only the health check. Together with 83 people failing in psychology or experience, there were 97 participants dismissed, hence only 3 astronauts from the whole group were selected.
Problem 11. Square $A$ has two sides that coincide with the radii of a circle, square $B$ has two vertices on the same circle and shares a part of its edge with square $A$. Find the ratio of the area of square $A$ to the area of square $B$.

Result. $\quad 5: 4$
Solution. Denote by $s$ the side length of square $B$. Observe that by symmetry, the midpoint of the circle divides the side of square $B$ which lies on the diameter in two equal parts of length $s / 2$. Then the Pythagorean theorem yields
$$
r^{2}=\left(\frac{s}{2}\right)^{2}+s^{2}=\frac{5}{4} s^{2}
$$
and therefore the ratio is $5: 4$.

Problem 12. Determine the last two digits of the product
$$
2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13 \cdot 17 \cdot 19 \cdot 23 \cdot 29 \cdot 31 \cdot 37
$$
Result. 10
Solution. Since there is 2.5 in the product, the units digit will be 0 . We obtain the tens digit as the last digit of the product $3 \cdot 7 \cdot 11 \cdot \ldots \cdot 37$. It is sufficient to consider only the units digits of multiplicands. Moreover, we can ignore ones. So we have to determine the last digit of the product
$$
3 \cdot 7 \cdot 3 \cdot 7 \cdot 9 \cdot 3 \cdot 9 \cdot 7=3 \cdot 7 \cdot 3 \cdot 7 \cdot 3 \cdot 7 \cdot 9 \cdot 9
$$
As $3 \cdot 7=21$ has the units digit 1 , we can remove pairs of 3 and 7 . After this, there is only $9 \cdot 9$ left, whose units digit is again 1. Therefore, the last two digits of the given product are 10 .
Problem 13. A detective interrogated first five of six suspects of a crime. He found out that they have 1, 2, 3, 4, and 5 friends among all the six suspects, respectively. He knows that friendship is symmetric and decided to figure out the number of friends of the last suspect before his interrogation. How many was it?
Result. 3
Solution. Let $n$ be the number of friends of the last suspect. The suspect with five friends is a friend of everyone else, so omitting him from the group simply decreases everyone's number of friends by one. Then we can also omit the suspect with one friend only, since his number of friends dropped to zero and he is no longer significant in any way. This way we obtain a group of four suspects, about which we know that they have $1,2,3$, and $n-1$ friends among themselves, respectively. Repeating the two steps produces yet smaller group with values 1 and $n-2$; it is clear then that $n-2=1$ or $n=3$.
Note: This solution can be turned to a way of producing such a group of suspects. The result is shown in the following diagram:

Problem 14. The die in the picture has a positive integer written on each of its faces. Moreover, the product of the numbers on opposite faces is the same for all such pairs. The numbers on the faces do not have to be distinct. What is the smallest possible value of the sum of all the numbers on the die?

Result. 40
Solution. Let $P$ be the product of numbers on opposite faces. Clearly, the higher $P$, the higher the total sum. Since $P$ has to be divisible by all the three shown numbers, its smallest value of $P$ is their least common multiplier, $P=36$. Under these circumstances, the numbers not shown are 3,4 , and 6 and the sought sum is $6+9+12+6+4+3=40$.
Problem 15. If the grey octagon and the striped pentagon are regular, and the striped quadrilateral is a square, determine the measure of the angle between the thick segments.

Result. $99^{\circ}$
Solution. Let us denote the points as in the picture.

Angle $C B D$ is the difference of interior angles of octagon and pentagon, hence $\angle C B D=135^{\circ}-108^{\circ}=27^{\circ}$. We also easily obtain that $\angle A B D=135^{\circ}$. Since both triangles $A B D$ and $C B D$ are isosceles,
$$
\begin{aligned}
& \angle C D B=\frac{1}{2}\left(180^{\circ}-\angle C B D\right)=76.5^{\circ} \\
& \angle B D A=\frac{1}{2}\left(180^{\circ}-\angle A B D\right)=22.5^{\circ}
\end{aligned}
$$
Therefore
$$
\angle C D A=\angle C D B+\angle B D A=99^{\circ}
$$
Problem 16. The minister has a personal driver who leaves the ministry at fixed time in the morning to pick up the minister at his place and take him to the ministry. The minister wakes up at the same time every day and the car comes exactly when he is ready to go. Today, the minister woke up early and he was ready to leave one hour earlier than usual, so he decided to walk towards the car (which departed from the ministry as usual). He met the car, got in and arrived at the ministry twenty minutes earlier than usual. How many minutes did he spend walking? Assume that the car moves always at the same speed and that it takes no time for the minister to get in the car.
Result. 50
Solution. The time the minister gained by getting up earlier (1 hour) splits into the unknown length $t$ of the walk and the time which would remain for the car to get from the meeting point to the minister's house, which is obviously half of the total saved time, therefore
$$
60=t+\frac{20}{2}
$$
or $t=50$.
Problem 17. What is the smallest positive integer, which has at least two digits and when its first (i.e. leftmost) digit is erased, the value drops 29 times?
Result. 725
Solution. Let $d$ be the first digit of the number, $k$ the number obtained after erasing the first digit, and $n$ the number of digits of $k$. Then the original number equals $10^{n} d+k$ and the assertion can be rewritten as
$$
10^{n} d+k=29 k
$$
or
$$
28 k=10^{n} d
$$
Since $28=2^{2} \cdot 7$, in order for the right-hand side to be divisible by $28, d=7$ and $n \geq 2$ has to hold. Finally, the choice $n=2$ (implying $k=25$ ) gives the smallest possible number 725 .
Problem 18. How often in 24 hours is the minute hand of a clock perpendicular to its hour hand?
Result. 44
Solution. The minute hand does 24 revolutions in 24 hours, the hour hand does 2 revolutions in 24 hours. Therefore the minute hand laps the hour hand 22 times in 24 hours. In each of this 22 times the minute hand and the hour hand are perpendicular 2 times, therefore the answer is 44 .
Problem 19. Find all four-digit palindrome numbers that can be written as a sum of two three-digit palindromes. Note: A palindrome is a number which stays the same when the order of its digits is reversed, e.g. 2018102 is a palindrome. A number cannot begin with a zero.
Result. 1111,1221
Solution. Let $\overline{a b b a}$ be such a palindrome. Since it is a sum of two three-digit numbers, it does not exceed 1998, so $a=1$. Let $\overline{1 b b 1}$ be equal to $\overline{c d c}+\overline{x y x}$, then
$$
1001+110 b=101(c+x)+10(d+y)
$$
Since the left-hand side ends with $1, c+x$ also ends with one. As both $c$ and $x$ are at least one and at most $9, c+x=11$. Plugging in and simplifying produces
$$
11(b-1)=d+y
$$
Since $d$ and $y$ are digits, the right-hand side does not exceed 18 , so $b-1$ is either 0 or 1 . Both options are possible: $1111=505+606,1221=565+656$.
Problem 20. The sides of an equilateral triangle are divided into two segments that are in the ratio of 6 to 1 in such a way that the dividing points also form an equilateral triangle (see figure). Determine the ratio of the area of the smaller equilateral triangle to the area of the larger equilateral triangle.

Result. $31 / 49$
Solution. The area of each of the three small triangles is
$$
\frac{1}{7} \cdot \frac{6}{7}=\frac{6}{49}
$$
of the large equilateral triangle, because the height is $1 / 7$ and the base $6 / 7$ of the corresponding lines in the large equilateral triangle. Therefore the ratio of the area of the smaller equilateral triangle to the area of the larger equilateral triangle is
$$
1-3 \cdot \frac{6}{49}=\frac{31}{49}
$$
Problem 21. Find all quadruples $(a, b, c, d)$ of positive integers such that when we replace the letters in the table below by the assigned values, then $a, b, c, d$ will be exactly the number of ones, twos, threes, and fours present in the table, respectively.
| 1 | 2 | 3 | 4 |
| :--- | :--- | :--- | :--- |
| $a$ | $b$ | $c$ | $d$ |
Result. $\quad(2,3,2,1),(3,1,3,1)$
Solution. No number can appear in the table more than five times; however, the number five cannot appear, since it would take a position used by the number appearing five times. Hence only the numbers 1, 2, 3, and 4 can be filled in.
Let us show that $d=1$ : If $d=2$, then one of $a, b, c$ has to be 4 , and because there are only two free slots, it has to be $b$. However, $(2,4,2,2)$ is clearly not a valid quadruple. The options $d=3$ and $d=4$ lead even faster to a contradiction.
We now know that $a \in\{2,3\}$. Assuming that $a=2$, we get $b, c \in\{2,3\}$ (there cannot be any other ones and fours), but $b=2$ would contradict the condition on $b$ (there would be three twos), hence $b=3$, and $c=2$ follows directly. If $a=3$, there has to be one more one in the table, and that cannot be $c$ (there is already another three), so $b=1$, and again $c=3$ is immediate.
Problem 22. Peter forgot his password. He only remembers that the password consisted of nine lower-case latin letters and contained words 'math' and 'drama'. How many passwords do satisfy these requirements?
Note: The words are contained as substrings, therefore, for example, 'martha' does not contain 'math'. There are altogether 26 letters in the alphabet.
Result. 2030
Solution. Firstly, consider the case when the subwords 'math' and 'drama' do not overlap. Then there are two ways to order them: 'dramamath' and 'mathdrama'.
If they do overlap, there is only one possible way to arrange them: 'dramath'. There are three ways to choose places for the two remaining letters: ' $* *$ dramath', ' $*$ dramath $*$ ', 'dramath $* *$ '. In every case, there are $26^{2}=676$ ways to choose these two letters. Hence, in these cases, there are $676 \cdot 3=2028$ possible passwords.
In total, there are $2028+2=2030$ possible passwords.
Problem 23. If one chooses two arbitrary distinct numbers from the set $\{1,2,3, \ldots, n-1, n\}$, the probability that the numbers are consecutive positive integers is $\frac{1}{21}$. Determine $n$.
Result. 42
Solution. There are $n-1$ pairs of consecutive numbers in the set $\{1,2,3, \ldots, n-1, n\}$ and there are $\frac{1}{2} n(n-1)$ possibilities to choose two arbitrary different numbers. Therefore we have
$$
\frac{n-1}{\frac{1}{2} n(n-1)}=\frac{2}{n}=\frac{1}{21}
$$
yielding $n=42$.
Problem 24. Arthur, Ben and Charlie were playing table tennis using the following rules: Each round, two players played against each other and the remaining one rested. The winner of the round then played in the next round with the rested player. In the first round, Arthur played against Ben. After several rounds, Arthur had scored 17 victories and Ben 22. How many times did Arthur and Ben play against each other?
Result. 20
Solution. Observe that whenever Charlie wins a round, it has no impact on the number of rounds won by Arthur or Ben, neither has it any impact on the number of rounds when Charlie does not play. Hence we may assume that Charlie always loses. In other words, every victory of Arthur over Ben increases Arthur's overall score by two (unless it happened in the last round), and vice versa. Since the number of Arthur's victories is odd, we see that the last round had to be Arthur vs. Ben, won by Arthur. Therefore, if we add one more round (Arthur vs. Charlie won by Arthur), the total number of rounds when Charlie did not play would be one half of the sum of final scores of Arthur and Ben, i.e. $(18+22) / 2=20$.
Problem 25. E-shop customers can express their satisfaction with a purchased item by rating it online using a five-point rating scale $(1$ star $=$ poor, 5 stars $=$ excellent $)$. The average rating of a newly released smartphone was 3.46 stars last week, however, as two more people submitted their ratings earlier this week, it rose to the current average of 3.5 stars. How many people have rated the smartphone so far?
Result. 52
Solution. Denote $k$ the original number of ratings and $x$ their sum. Further denote $a, b$ the two this week's ratings. Then
$$
\frac{x}{k}=3.46 \quad \text { and } \quad \frac{x+a+b}{k+2}=3.5
$$
or
$$
\begin{aligned}
x & =\left(3+\frac{23}{50}\right) k \\
x+a+b & =\left(3+\frac{1}{2}\right) k+7
\end{aligned}
$$
Equation (1) implies that $k$ is a multiple of 50 . Moreover, after subtracting (1) from (2), we get
$$
a+b-7=\frac{k}{25}
$$
As $a, b \leq 5$, the left-hand side is a positive integer not exceeding 3 , hence $k \leq 75$. We conclude that $k=50$ and after adding the two customers rating this week, we see that 52 people have rated so far.
Problem 26. Juliette has four pairs of socks with Monday, Tuesday, Wednesday, Thursday written on each single sock. How many ways are there to wear all of these socks from Monday to Thursday, if the two socks on Juliette's feet should be different and neither of them showing the current day? None of the socks can be worn repeatedly.
Note: Any sock can be worn on any foot, i.e. there are no "right" and "left" socks. Furthermore, wearing a sock on the right foot and another sock on the left foot counts the same as wearing them reversed.
Result. 9
Solution. For the sake of brevity, we will use numbers $1,2,3,4$ instead of the names of the days. Observe that each day is assigned three distinct numbers: The actual number of the day and the two numbers of the socks being worn. Therefore, we may equivalently describe the assignment of socks by a single number for each day-the only number out of the four not appearing in the aforementioned triple. We infer that the valid assignments of socks correspond to the rearrangements of $(1,2,3,4)$, i.e. permutations which leave none of the numbers at its original position.
The number of rearrangements can be computed as follows: There are three options of placing 1 , let $n \neq 1$ be its position. Now $n$ has also three options where to be put. It is easy to see that the remaining two numbers are now assigned in an unique way, hence there are $3 \cdot 3=9$ rearrangements and the same number of choices of Juliette's socks.
Problem 27. A jury of 26 mathematicians was to nominate (at least) five films for awards at a festival of math-themed films. There were 16 films to choose from. The jury had chosen the following procedure: Each jury member voted for five distinct films and the five films with most votes were nominated; if there was a tie on the fifth place, all these films were nominated. What is the smallest number of votes that a film could have received so that it was nominated no matter the results of other films?
Result. 21
Solution. In total, $26 \cdot 5=130$ votes were distributed among the films. On one hand, if a film received 20 or less votes, the remaining 110 votes can easily be distributed so that there are five films getting 21 votes each. On the other hand, if the film received at least 21 votes, it not being nominated would imply at least five films getting at least 22 votes, resulting in at least $21+5 \cdot 22=131$ votes cast, a contradiction.
Problem 28. A real function $f$ satisfies $f(x)+x f(1-x)=x$ for every real value of $x$. Find $f(-2)$.
Result. $4 / 7$
Solution. From the equation $f(-2)-2 f(3)=-2$ we see that it is equivalent to determine $f(3)$ instead. Since $f(3)+3 f(-2)=3$, we have two linear equations for the unknown values $f(-2)$ and $f(3)$. Multiplying the second equation by 2 and adding both equations we get $f(-2)=4 / 7$.
Problem 29. Two-digit numbers $n, a, b, o, j$ are such that their product naboj is divisible by 4420 . Determine the greatest possible value of their sum $n+a+b+o+j$.
Result. 471
Solution. Firstly, let us factorize $4420=2 \cdot 2 \cdot 5 \cdot 13 \cdot 17$. Since 13 and 17 are primes, one of the numbers $n, a, b, o, j$ has to be divisible by 13 and one by 17. As the smallest common multiple of 13 and 17 is 221 , there is no two-digit number divisible by both of them. Without loss on generality, we can assume that $n$ is divisible by 17 and $a$ is divisible by 13 . This means that $n \leq 85=5 \cdot 17$ and $a \leq 91=7 \cdot 13$.
Suppose now that $n=85$ and $a=91$. We see that $n=85$ is divisible by 5 , so we only need to guarantee the divisibility by 4 . As $n$ and $a$ are odd, 4 has to divide $b o j$. Therefore, one of the numbers $b, o, j$ is divisible by 4 , or there are two numbers divisible by 2 . We get the greater sum in the second case, when $b=o=98$ and $j=99$. We have found the sum $n+a+b+o+j=85+91+98+98+99=471$.
Finally, let us check the possibility that $n<85$ or $a<91$. Since the numbers $n$ and $a$ have to be divisible by 17 and 13, respectively, this would mean $n \leq 68=85-17$ or $a \leq 78=91-13$. Then the sum $n+a+b+o+j$ could be at most $68+91+3 \cdot 99=456$ (in the former case) or $85+78+3 \cdot 99=460$ (in the latter case) and that is less than we have previously achieved.
Problem 30. Naomi ordered eight tennis balls and one handball at an online sports shop. The balls (of a perfect spherical shape) were packed in a cubic box so that each tennis ball was tangent to three of the six faces of the box and to the handball. The radius of a handball is $10 \mathrm{~cm}$ and the radius of each tennis ball is $5 \mathrm{~cm}$. Find the length of the edge of the box in centimeters.
Result. $10(1+\sqrt{3})$
Solution. The space diagonal of the box passes through the centers of the handball and two tennis balls, and also through the points of tangency of these three balls. The only area where the diagonal is not inside any ball are the segments between a tennis ball and corner of the box; the distance from the center of a tennis ball to the corner is one half of the space diagonal of the circumscribed cube of the ball. So the length of the diagonal of the box is the sum of
- $(2 \times) 1 / 2$ of the diagonal of a cube circumscribed to a tennis ball,
- $(2 \times)$ the radius of a tennis ball,
- the diameter of the handball.
Hence the length of the diagonal is equal to
$$
10 \sqrt{3}+10+20=30+10 \sqrt{3}
$$
and the length of the edge is equal to
$$
\frac{30+10 \sqrt{3}}{\sqrt{3}}=10(1+\sqrt{3})
$$
Problem 31. Written in the decimal system, the power $2^{29}$ is a nine-digit number whose digits are pairwise distinct. Which digit is missing?
Result. 4
Solution. On one hand, the power $2^{29}$ can be computed by hand with reasonable effort: For example, use $2^{10}=1024$, compute $1024^{2}$ and $1024^{2} \cdot 1024$. Finally, divide the result by 2 to get $2^{29}=536870912$.
On the other hand, you can use the fact that an integer and its digital sum have the same residue class modulo 9 . Moreover, the residue class of $2^{n}$ modulo 9 is periodic with period of length 6 . Since the sum of all digits is 45 , we end up having
$$
45-x \equiv 2^{29} \equiv 2^{5} \equiv 5 \quad(\bmod 9)
$$
where $x$ denotes the missing digit in the decimal representation of $2^{29}$. This leads to $x \equiv 4(\bmod 9)$. Therefore the missing digit is 4 .
Problem 32. When cleaning the attic, Ben found an old calculator, which showed only the first two digits after the decimal point for each result, but was able to compute square roots. So for example, for $\sqrt{4}$ the machine displayed 2.00 and for $\sqrt{6}=2.44949 \ldots$ it showed 2.44. What is the smallest positive integer, which is not a square of an integer, but for whose square root would Ben's calculator show two zeros after the decimal point?
Result. 2501
Solution. Denote by $\operatorname{ftd}(n)$ the first two digits after the decimal point of $\sqrt{n}$. It is clear that as $n$ increases from one square number to the next one, $\mathrm{ftd}(n)$ increases as well; since we are looking for the smallest integer $n$, this has to be of the form $k^{2}+1$ for some positive integer $k$.
When $\sqrt{k^{2}+1}$ is rounded down to its integer part, the result is $k$, therefore $\sqrt{k^{2}+1}-k$ is a number strictly between 0 and 1. The assertion that $\mathrm{ftd}\left(k^{2}+1\right)=0$ can thus be equivalently restated as
$$
\sqrt{k^{2}+1}-k<\frac{1}{100}
$$
Adding $k$ to both sides, squaring (both sides are positive) and rearranging yields
$$
k>50\left(1-\frac{1}{100^{2}}\right)
$$
The right-hand side is a number strictly between 49 and 50 ; since $k$ is an integer, $k \geq 50$ follows. We conclude that $n=50^{2}+1=2501$ is the sought smallest number.
Problem 33. One of the numbers from 1 to 9 is to be written in each cell of a $2018 \times 2018$ board in such a way that within any $3 \times 3$ square, the sum of the inputs is divisible by 9 . In how many different ways can this be accomplished? Result. $9^{8068}$
Solution. Any filling of the 8068 cells forming the two bottom rows and the two leftmost columns defines the whole filling explicitly as we can uniquely fill in the remaining numbers on consecutive diagonals - see the example in the picture. On the other hand, obviously, each correct filling induces some filling of the 8068 cells. Therefore the number of arbitrary fillings of those cells is the same as the sought number of correct fillings of the table.

Problem 34. Find all pairs of positive integers $(n, m)$ fulfilling the equation $4^{n}+260=m^{2}$.
Result. $(3,18),(6,66)$
Solution. The given equation is equivalent to $m^{2}-\left(2^{n}\right)^{2}=260$ and factorizing the left-hand side leads to ( $m-$ $\left.2^{n}\right)\left(m+2^{n}\right)=260$. The prime factorization of $260=2^{2} \cdot 5 \cdot 13$ leads to the following possible decompositions:
$$
260=1 \cdot 260=2 \cdot 130=4 \cdot 65=5 \cdot 52=10 \cdot 26=13 \cdot 20
$$
taking into account that $\left(m-2^{n}\right)<\left(m+2^{n}\right)$. Due to $\left(m+2^{n}\right)-\left(m-2^{n}\right)=2^{n+1}$ we get the two possibilities $26-10=2^{4}$ and $130-2=2^{7}$ leading to the two pairs $(3,18)$ and $(6,66)$ fulfilling the the given equation.
Problem 35. In an equilateral triangle $A B C$, a light ray coming from $B$ hit $A C$ at point $D$ satisfying $D C: A C=$ $1: 2018$, and it reflected such that the angle of incidence was equal to the angle of reflection. Then it reflected again every time it reached a side of $\triangle A B C$. How many times did it reflect (including the first reflection) until it reached some vertex of $\triangle A B C$ ?
Result. 4033
Solution. Instead of reflecting the light ray, we shall let it proceed straight and subsequently reflect the triangle along the side with which the ray is incident. Let us show that one row of these reflected triangles is sufficient for the light ray to reach a vertex of one of the triangles.
Let $E$ be the intersection of the ray $B D$ with line through $A$ parallel to $B C$, and $F$ a point on $B C$ such that $E F \| A C$. Then the triangles $B C D$ and $B F E$ are similar and $B F=2018 B C$. This implies that the point $E$ may be obtained by reflecting the triangle $A B C$ and it is clearly first such point on $B D$.
It is easy to see that the segment $B E$ intersects $2 \cdot 2017-1=4033$ segments in the row of triangles, which equals the number of reflections of the light ray in the original problem. The picture illustrates the solution with the initial condition changed to $D C: A C=1: 5$.

Problem 36. A rectangular sheet of paper $A B C D$ was folded so that (former) point $A$ ended on side $B C$ and point $M$, where side $C D$ met (former) side $D A$, was exactly in one third of $C D$, i.e. $C D=3 C M$. If the area of the gray overlapping triangle is 1 , what is the area of the striped triangle?

Result. $9 / 4$
Solution. Let us denote the various intersection points as in the figure.

All the three triangles $K M D^{\prime}, A^{\prime} M C$, and $L A^{\prime} B$ are right and similar to each other, as straightforward angle chasing shows, hence we seek the ratio of similitude between the two triangles in question. Taking into account that $K D=K D^{\prime}$ and $L A=L A^{\prime}$, we have
$$
D^{\prime} K+K M=D M=\frac{2}{3} D C=\frac{2}{3} A B
$$
and
$$
A^{\prime} L+L B=A B
$$
Since $A^{\prime} L$ corresponds to $K M$ and $L B$ corresponds to $K D^{\prime}$ in the aforementioned similarity, this shows that the ratio is $3 / 2$. As we are interested in areas, the result is $(3 / 2)^{2}=9 / 4$.
Problem 37. When dividing the polynomial $x^{3}+x^{5}+x^{7}+x^{9}+x^{11}+x^{2017}+x^{2018}$ by the polynomial $x^{2}-1$ there is a remainder. Find the value of the variable $x$ for which the numerical value of that remainder is 1111 .
Result. 185
Solution. The polynomial can be rewritten as
$$
\begin{aligned}
x^{3}+x^{5}+x^{7} & +x^{9}+x^{11}+x^{2017}+x^{2018}= \\
& =x\left(x^{2}-1\right)+x\left(x^{4}-1\right)+x\left(x^{6}-1\right)+x\left(x^{8}-1\right)+x\left(x^{10}-1\right)+x\left(x^{2016}-1\right)+\left(x^{2018}-1\right)+6 x+1
\end{aligned}
$$
Now, since
$$
x^{2 k}-1=\left(x^{2}-1\right)\left(x^{2 k-2}+x^{2 k-4}+\cdots+1\right)
$$
we see that all the brackets on the right-hand side of the equality are divisible by $x^{2}-1$. As the degree of $6 x+1$ is smaller than the degree of $x^{2}-1$, we infer that $6 x+1$ is the sought remainder. Now solving $1111=6 x+1$ produces the answer $x=185$.
Problem 38. There are ten towns in the country of Pentagonia, each one connected by three railway lines to another three towns according to the diagram below. The antitrust laws of the country require that no two lines having a common stop are operated by the same railway company. In how many ways can the lines be assigned to three railway companies in a lawful way?

Result. 30
Solution. Observe that when assigning the lines on the "outer pentagon", two of the companies (denoted by $X$ and $Y$ ) have to get two lines and one company $(Z)$ obtains one line. The companies also have to be in order $X Y X Y Z$ starting from some town. It is easy to show that when we have assigned these lines, the rest of the network is assigned in a unique way: The lines of the "inner pentagon" are assigned to the same companies as their outer counterparts and the "connecting" lines must each go to the sole unused company.
This means that the number of correct assignments of the whole network is equal to the number of assignments of the outer pentagon. There are six ways to assign the three companies to $X, Y$, and $Z$, and five possibilities for the town where the assignment $X Y X Y Z$ starts from. This gives us $5 \cdot 6=30$ ways in total.
Problem 39. A right triangle contains 25 tangent circles of radius 1 as shown in the picture.

What is the radius of the incircle of the triangle?
Result. $\quad 25-13 \sqrt{2}$
Solution. Consider the triangle whose vertices are centers of the three circles in the corner. This is a right triangle with legs of length 14 and 34 , respectively; hence, by the Pythagorean theorem, the length of the hypotenuse is
$$
\sqrt{14^{2}+34^{2}}=26 \sqrt{2}
$$
Further, its inradius can be computed as $(14+34-26 \sqrt{2}) / 2=24-13 \sqrt{2}$. Since the sides of the original triangle are parallel to the new ones and their distance is 1 , the incenters of the two triangles coincide and the sought inradius is
just the one we have computed plus the distance, i.e. $25-13 \sqrt{2}$.

Problem 40. Marge has invented the operation marging on a (finite) list of integers: given a list, she takes four copies of it, increases their entries by $0,2,3$, and 5 , respectively, and concatenates the results, forming again a single list. For example, given the list $(8,3)$, the result after marging is $(8,3,10,5,11,6,13,8)$. If Marge starts with the one-element list (0) and keeps marging it until it has at least 2018 entries, what will be the 2018th entry? (The leftmost entry is considered to be the first one.)
Result. 17
Solution. For convenience, let us number the positions in the list starting with zero instead. In that case, an easy induction argument shows that the position of a number written in the base 4 system describes what operations (and in what order) were applied to obtain the number on the given position. For example, this is what Marge's list looks like after two iterations of marging:

(The numbers under the entries are their positions in base 4.) Since 2017 written in base 4 is 133201 , the number on position 2017 is
$$
2+5+5+3+0+2=17
$$
Problem 41. Determine the smallest positive integer $n$ such that the equation
$$
\left(x^{2}+y^{2}\right)^{2}+2 n x\left(x^{2}+y^{2}\right)=n^{2} y^{2}
$$
has a solution $(x, y)$ in positive integers.
Result. 25
Solution. The equation can be also viewed as a quadratic equation in $n$ with solution
$$
n=\frac{\left(x^{2}+y^{2}\right)\left(x+\sqrt{x^{2}+y^{2}}\right)}{y^{2}}
$$
(the other solution would lead to negative $n$ since $\sqrt{x^{2}+y^{2}}>x$ ), or
$$
n y^{2}=\left(x^{2}+y^{2}\right)\left(x+\sqrt{x^{2}+y^{2}}\right)
$$
Let $d=\operatorname{GCD}(x, y)$ and let $x=x_{0} d, y=y_{0} d$. Plugging in and simplifying yields
$$
n y_{0}^{2}=d\left(x_{0}^{2}+y_{0}^{2}\right)\left(x_{0}+\sqrt{x_{0}^{2}+y_{0}^{2}}\right)
$$
Now since $x_{0}$ and $y_{0}$ are coprime, also $y_{0}^{2}$ and $x_{0}^{2}+y_{0}^{2}$ are coprime and $x_{0}^{2}+y_{0}^{2} \mid n$ follows. Further, the presence of $\sqrt{x_{0}^{2}+y_{0}^{2}}$ forces $x_{0}^{2}+y_{0}^{2}$ to be a square. It is well known that $5^{2}=25$ is the smallest square which is the sum of two squares, $3^{2}+4^{2}$. Hence $n \geq 25$ and plugging in $x=4, y=3$ shows that $n=25$ indeed gives a solution.
Problem 42. In a rectangular room with dimensions $6 \mathrm{~m} \times 2.4 \mathrm{~m} \times 2.4 \mathrm{~m}$ (length $\times$ width $\times$ height), a spider is located on one $2.4 \mathrm{~m} \times 2.4 \mathrm{~m}$ wall $20 \mathrm{~cm}$ away from the ceiling and with equal distance to the vertical edges. A fly, sitting on the opposite wall, is on its vertical axis of symmetry, too, but $20 \mathrm{~cm}$ away from the floor. If the fly does not move at all, what is the shortest total distance (in meters) the spider must crawl along the surfaces in order to capture the fly?

Result. 8
Solution. Let us examine the spider's possible paths in the net of the cuboid. It is clear that the shortest path becomes a straight line segment when the net is put into a plane. The white circle represents the fly, whereas the black circle stands for the spider, its location in the plane dependent on the way we decompose the net of the cuboid.

There are (up to a symmetry) three possible ways for the spider to reach the fly, crossing one, two, or three of the long faces of the cuboid; the paths are marked by $A, B$, and $C$ in the picture. Clearly, a path using four of these faces could be reduced to a shorter one. The length of path $A$ is $8.4 \mathrm{~m}$ and using the Pythagorean theorem, we obtain that the length of path $B$ in meters is $\sqrt{66.32}$ and for path $C$ it is 8 . Therefore path $C$ is the shortest one and the answer is $8 \mathrm{~m}$.
The image below shows the shortest path in three dimensions:

Problem 43. Find the minimum of
$$
(6+2 \cos (x)-\cos (y))^{2}+(8+2 \sin (x)-\sin (y))^{2}
$$
for $x, y \in \mathbb{R}$.
Result. 49
Solution. Let us set $V(x, y)=(6+2 \cos (x)-\cos (y))^{2}+(8+2 \sin (x)-\sin (y))^{2}$. Recall that the circle with center ( $C_{1}, C_{2}$ ) and radius $R>0$ can be parametrized (i.e. coordinates of all points lying on it can be expressed) by angle $\alpha$ as $\left(x_{1}, x_{2}\right)=\left(C_{1}+R \cos (\alpha), C_{2}+R \sin (\alpha)\right)$. Let us consider circles $k_{1}, k_{2}$ with centers $(0,0),(6,8)$ and radii 1,2 , respectively. Then it follows from the Pythagorean theorem that $V(x, y)=A B^{2}$ where $A \in k_{1}$ with angle $x$ and $B \in k_{2}$ with angle $y$. It follows that the minimum of $V(x, y)$ is the square of the distance of the closest pair of points on $k_{1}$ and $k_{2}$ and we can compute it using the distance of the centers and the radii of $k_{1}$ and $k_{2}: \sqrt{6^{2}+8^{2}}-1-2=7$. Thus the minimum of $V(x, y)$ equals $7^{2}=49$.
Problem 44. What is the smallest positive integer such that its last (i.e. units) digit is 2 , and if we move the last digit in front of the first digit, we get the double of the original number?
Result. 105263157894736842
Solution. Let us call $N$ the number in question. When we remove the units digit, we should get all the digits of $2 N$ except for the leftmost one. Therefore, since $N$ ends with $2,2 N$ has to end with 4 , hence the tens digit of $N$ is 4 . Let $d_{i}$ be the $i$-th digit of $N$, this time counting from right to left (i.e. $d_{1}$ is the units digit). Taking into account how multiplying by two works digit-wise, we see that the digits of $N$ have to satisfy
$$
d_{i}= \begin{cases}2 d_{i-1} \bmod 10 & \text { if } d_{i-2}<5 \\ 2 d_{i-1} \bmod 10+1 & \text { if } d_{i-2} \geq 5\end{cases}
$$
for all $i>2$. This way we can directly write down the digits of $N$. We stop when we obtain the digit 1 and in the next step the digit 2: The number starting with this 1 is $N$, because multiplying by 2 precisely removes the last digit, but puts 2 in front of the number. The result is
$$
N=105263157894736842
$$
Problem 45. Mother Berta divides her triangular shaped area of land with two straight lines into four pieces and gives the piece of size 6 to her daughter Betty, the one of size 4 to her daughter Barbara and the smallest one with size 3 to the youngest daughter Francis. She keeps the largest piece for herself. How big is this piece of land?

Result. $19 / 2$
Solution. We use the notation as in the following picture.

Due to the area ratios, $S$ divides $Q B$ in the ratio $1: 2$ and $P C$ in the ratio $2: 3$. Introducing the straight line $A S$ and denoting the area of triangle $A S Q$ by $b$ and the area of triangle $A P S$ by $a$ leads to the following two equations:
$$
\begin{gathered}
\frac{b}{a+4}=\frac{1}{2} \\
\frac{b+3}{a}=\frac{3}{2}
\end{gathered}
$$
These are equivalent to
$$
\begin{aligned}
2 b & =a+4 \\
2 b+6 & =3 a
\end{aligned}
$$
which gives the solutions $a=5$ and $b=\frac{9}{2}$. Therefore the area of quadrangle $A P S Q$ is $\frac{19}{2}$.
Problem 46. Four brothers have altogether 2018 euros. It is known that the wealth of each of them is a positive integer, no two possess the same amount of euros, and whenever one brother is richer than another one, the wealth of the richer one is a multiple of the wealth of the poorer one. What is the smallest number of euros the richest brother could have had?
Result. 1152
Solution. Since each brother's wealth is a multiple of the wealth of the poorest one, their sum, 2018, has to be divisible by this number as well. However, prime factorization $2018=2 \cdot 1009$ gives only three options for the poorest one: 1,2 , or 1009. Clearly, 1009 is impossible, as this would be larger than any of the remaining three amounts. Further, if it was just 1, the rest would be left with 2017 euros, which is a prime number, hence the second poorest brother would have had only 1 as well—a contradiction. Therefore the poorest one has 2 euros and the remaining three have 2016 altogether.
Let $a<b<c$ be the fortunes of the three brothers; these are subject to the conditions $a|b| c$ and $a+b+c=2016$. The divisibility together with strict inequality implies that $2 a \leq b$ and $2 b \leq c$; if we could achieve equalities, we would clearly get a solution with the smallest value of $c$. Luckily, $1+2+4=7$ divides 2016, therefore we can indeed divide this sum as
$$
2016=\frac{1}{7} \cdot 2016+\frac{2}{7} \cdot 2016+\frac{4}{7} \cdot 2016
$$
and the answer is $\frac{4}{7} \cdot 2016=1152$.
Problem 47. Andrew drew the symbol on the blackboard. Then he repeated the following procedure thirteen times: He erased the blackboard and wrote a new sequence of symbols, having the pair $\odot$ instead of each $\triangle$ and $\triangle \Leftrightarrow$ instead of each in the original sequence. For example, Andrew would replace the sequence $\triangle \triangle$ with $\triangle \$ 0$. How many pairs $\triangle \odot$ (with no other symbol in between) were there on the blackboard when Andrew was finished with his task? The counted pairs may overlap, so e.g. in the sequence $\odot \odot \odot 0$, there are three $\odot \odot$ pairs.
Result. 1365
Solution. Let $A_{n}$ be the sequence on the blackboard after Andrew carried out the replacement procedure for the $n$-th time (with $\left.A_{0}=(\boldsymbol{\Leftrightarrow})\right)$ and $h_{n}$ the number of pairs $\triangle \odot$ in $A_{n}$. Since each pair $\triangle \odot$ in $A_{n}$ arises only from the pair $\triangle \boldsymbol{\ell}$ in $A_{n-1}$, which, on the other hand, comes either from $\triangle \bigcirc$ or in $A_{n-2}$, we see that $h_{n}=h_{n-2}+2^{n-3}$ for $n \geq 3$, since there are exactly $2^{n-3}$ symbols $\boldsymbol{\&}$ in $A_{n-2}$. Therefore, for odd $n$, we have
$$
h_{n}=2^{n-3}+2^{n-5}+\cdots+2^{0}+h_{1}=\frac{1}{3}\left(2^{n-1}-1\right)
$$
since $h_{1}=0$. The desired result is $h_{13}=1365$.
Problem 48. Let $A B C D E F G H I$ be a regular nonagon with circumcircle $\varrho$ and center $O$. Let $M$ be the midpoint of the (shorter) arc $A B$ of $\varrho, P$ the midpoint of $M O$, and $N$ the midpoint of $B C$. Let lines $O C$ and $P N$ intersect at $Q$. What is the measure of $\angle N Q C$ (in degrees)?
Result. $10^{\circ}$
Solution. We will prove that the quadrilateral $O C N P$ is cyclic; since $\angle O N C=90^{\circ}$, this is equivalent to $\angle O P C=90^{\circ}$. This can be seen as follows: As both $C$ and $M$ lie on $\varrho, O C=O M$. Easy computation also shows that $\angle M O C=60^{\circ}$, so $\triangle O C M$ is equilateral. Now $P$, being the midpoint of $O M$, satisfies $\angle O P C=90^{\circ}$.
Another easy calculation reveals that $\angle O C N=70^{\circ}$, hence $\angle O P N=180^{\circ}-\angle O C N=110^{\circ}$. Using the triangle $O Q P$, we get that

Problem 49. Anna picked a triple $(x, y, z)$ of positive integers such that $x+y+z=2018$ and told $x$ to Xena, $y$ to Yena, and $z$ to Zena. None of the three knew the other two numbers, but they were told the information about their sum. The following conversation followed:
- Xena: I know that Yena and Zena have different numbers.
- Yena: Thanks to Xena, now I know that all the three of us have different numbers!
- Zena: Now I can finally tell who was told what number.
Find the triple $(x, y, z)$.
Result. $\quad(3,2,2013)$
Solution. Xena's statement means just that $x$ is odd; if it was even, $y$ and $z$ could have been the same.
Assume now that $y$ is odd; that means that Yena knew from the beginning that $x$ and $z$ are different. If, moreover, $y \geq 1009$, Yena would have already known that $x$ and $z$ were different from $y$ and thus would not need Xena's statement. On the other hand, if $y \leq 1007$, then despite Xena's statement Yena still could not tell if her number was different from $x$. We infer that $y$ is even and consequently, $z$ is odd.
If $y$ was a multiple of 4 , then $x+z=2018-y \equiv 2(\bmod 4)$, i.e. it could be a double of an odd number; in such a case Yena could not deduce that $x$ and $z$ are different. However, if $y \equiv 2(\bmod 4)$, then $x$ and $z$ have to give distinct remainders modulo 4 and Yena's statement is justified.
Finally, let us examine Zena's statement. Firstly, $y=2$, for otherwise $y$ could be decreased by 4 and $x$ increased by 4 and Zena could not tell the difference. For similar reasons, $x \leq 4$, hence either $x=1$ or $x=3$. However, in the former case, knowing $2018-z=x+y=3$ Zena could have determined $x$ and $y$ without Yena's statement (using just what Xena had reported). We conclude that $x=3$ and $z=2013$.
Problem 50. Wizards Arithmetix and Combinatorica are engaged in a duel. Both wizards have 100 hit points (HP). Arithmetix's spell hits Combinatorica with probability $90 \%$ and deals 60 HP damage (if it succeeds), Combinatorica's spell hits Arithmetix with probability $60 \%$ and deals $130 \mathrm{HP}$ damage. The wizards alternate in spell-casting, Arithmetix starts. The duel ends when a participant runs out of his or her hit points, the remaining wizard being the winner. Determine the probability that Arithmetix wins the duel.
Result. $45 / 128$
Solution. The exact amount of HP is not important-it clearly suffices to know that Arithmetix loses after being hit once and Combinatorica after being hit twice. Suppose that we are in the state of the duel when Combinatorica has been already hit once and it is Arithmetix's turn to cast. Denote the probability that Arithmetix wins by $q$. In this state, Arithmetix can win either if his attack succeeds, which happens with probability 0.9 , or if he misses and so does Combinatorica in her turn - that happens with probability $0.1 \cdot 0.4$, and subsequently, Arithmetix wins again with probability $q$. Therefore, we obtain the equation
$$
q=0.9+0.1 \cdot 0.4 \cdot q
$$
which yields $q=15 / 16$.
Let us now compute the probability $p$ that Arithmetix wins the duel. If Arithmetix hits and Combinatorica misses (probability $0.9 \cdot 0.4$ ), the duel gets to the situation of the previous paragraph and Arithmetix wins with probability $q=15 / 16$. On the other hand, if Arithmetix misses and Combinatorica misses, too (probability 0.1 0.4 ), then Arithmetix can again win with probability $p$. So we can write the equation
$$
p=0.9 \cdot 0.4 \cdot \frac{15}{16}+0.1 \cdot 0.4 \cdot p
$$
Solving it shows that Arithmetix wins the battle with probability $p=45 / 128$.
Problem 51. Let $a(1), a(2), \ldots, a(n), \ldots$ be an increasing sequence of positive integers satisfying $a(a(n))=3 n$ for every positive integer $n$. Compute $a(2018)$.
Note: A sequence is increasing if $a(m)<a(n)$ whenever $m<n$.
Result. 3867
Solution. If $a(1)=1$ we also have $a(a(1))=1 \neq 3 \cdot 1$ which is impossible. Since the sequence is increasing it follows that $1<a(1)<a(a(1))=3$ and thus $a(1)=2$. From the equation we deduce $a(3 n)=a(a(a(n)))=3 a(n)$ for all $n$. We easily prove by induction (starting with $a(1)=2$ ) that $a\left(3^{m}\right)=2 \cdot 3^{m}$ for every $m$. Using this we also obtain $a\left(2 \cdot 3^{m}\right)=a\left(a\left(3^{m}\right)\right)=3^{m+1}$.
There are $3^{n}-1$ integers $i$ such that $3^{n}<i<2 \cdot 3^{n}$ and there are $3^{n}-1$ integers $j$ such that $a\left(3^{n}\right)=2 \cdot 3^{n}<j<$ $3^{n+1}=a\left(2 \cdot 3^{n}\right)$. Since $a(n)$ is increasing there is no other option than $a\left(3^{n}+b\right)=2 \cdot 3^{n}+b$ for all $0<b<3^{n}$. Therefore $a\left(2 \cdot 3^{n}+b\right)=a\left(a\left(3^{n}+b\right)\right)=3^{n+1}+3 b$ for all $0<b<3^{n}$. Since $2018=2 \cdot 3^{6}+560$ we have $a(2018)=3^{7}+3 \cdot 560=3867$.
Problem 52. Equilateral triangle $T$ of side length 2018 is divided into $2018^{2}$ small equilateral triangles of side length 1. We call a set $M$ of vertices of these small triangles independent if for any two distinct points $A, B \in M$ the segment $A B$ is not parallel to any side of $T$. What is the largest number of elements of an independent set?
Result. 1346
Solution. Each vertex in the grid can be assigned its distances to the three sides of $T$ (taking as the unit the height of a small triangle); it is easy to see that for each vertex, these three integers add up to 2018. On the other hand, given a triple of non-negative integers with sum 2018, there is a unique vertex of the grid with these numbers being its distances from the sides, thus we may equivalently consider such triples instead of the vertices. We will refer to the three numbers as coordinates.
The independence condition translates to the assertion that no two triples in the set have equal the first, the second, or the third coordinate. Let
$$
M=\left\{\left(x_{1}, y_{1}, z_{1}\right),\left(x_{2}, y_{2}, z_{2}\right), \ldots,\left(x_{k}, y_{k}, z_{k}\right)\right\}
$$
be an independent set. Since the numbers $x_{1}, \ldots, x_{k}$ are distinct non-negative integers, their sum is at least
$$
0+1+\cdots+(k-1)=\frac{k(k-1)}{2}
$$
The same holds for the sums $y_{1}+\cdots+y_{k}$ and $z_{1}+\cdots+z_{k}$. On the other hand, we have $x_{i}+y_{i}+z_{i}=2018$ for each $i=1, \ldots, k$, and so
$$
3 \cdot \frac{k(k-1)}{2} \leq\left(x_{1}+\cdots+x_{k}\right)+\left(y_{1}+\cdots+y_{k}\right)+\left(z_{1}+\cdots+z_{k}\right)=2018 k
$$
It follows that
$$
k \leq 1+\frac{2}{3} \cdot 2018
$$
or $k \leq 1346$.
The following two sequences of points form together an independent set of size 1346:
$$
\begin{aligned}
& (0,672,1346),(2,671,1345),(4,670,1344), \ldots,(1344,0,674) \\
& (1,1345,672),(3,1344,671),(5,1343,670), \ldots,(1345,673,0)
\end{aligned}
$$
We conclude that the sought maximal number of elements is 1346 .
The following picture illustrates the construction of an independent set for a triangle of side length 11 instead of 2018:

Problem 53. Let $A B C$ be a triangle with $A B=5, A C=6$ and $\omega$ its circumcircle. Let $F, G$ be points on $A C$ such that $A F=1, F G=3$, and $G C=2$, and let $B F$ and $B G$ intersect $\omega$ in $D$ and $E$, respectively. Given that $A C$ and $D E$ are parallel, what is the length of $B C$ ?
Result. $5 \sqrt{5 / 2}$
Solution. Denote $x=B C$. Since $A C E D$ is an isosceles trapezoid, we may put $y=A E=C D$. Finally, let $p=B F$, $q=D F, u=B G$, and $v=G E$.
Angles $B A C$ and $B D C$ are inscribed in the same circle and hence of the same size. Consequently, triangles $A B F$ and $D C F$ are similar, which implies
$$
\frac{y}{5}=\frac{q}{1}=\frac{5}{p}
$$
Furthermore, in the same way we obtain the similarity between triangles $B C G$ and $A E G$, from which
$$
\frac{y}{x}=\frac{v}{2}=\frac{4}{u}
$$
follows. Finally, as $A C$ and $D E$ are parallel,
$$
\frac{p}{q}=\frac{u}{v}
$$
and combining with the preceding equations yields
$$
\frac{\frac{25}{y}}{\frac{y}{5}}=\frac{\frac{4 x}{y}}{\frac{2 y}{x}}
$$
or $x^{2}=125 / 2$. Therefore, $x=5 \sqrt{5 / 2}$.
Problem 54. We know that
$$
2^{22000}=\underbrace{4569878 \ldots 229376}_{6623 \text { digits }}
$$
For how many positive integers $n<22000$ is it also true that the first digit of $2^{n}$ is 4 ?
Result. 2132
Solution. If the first digit of a $k$-digit number $N$ is $c$, then $c 10^{k-1} \leq N<(c+1) 10^{k-1}$. This implies that $2 c 10^{k-1} \leq 2 N<(2 c+2) 10^{k-1}$, i.e. the first digit of $2 N$ is at least the first digit of $2 c$ and at most the first digit of $2 c+1$. We apply this to the first digits of powers of two: Having a power of two with the first digit equal to 1 , there are these five possibilities for the first digits of the following powers of two: (1) $1,2,4,8,1$; (2) $1,2,4,9,1$; (3) $1,2,5,1$; (4) $1,3,6,1$; (5) $1,3,7,1$.
Let $k$ be a non-negative integer such that $2^{k}$ begins with 1 and has $d$ digits. Then there is a unique power of two beginning with 1 and having $d+1$ digits, and it is either $2^{k+3}$ (if we are in one of the situations (3), (4), (5) above) or $2^{k+4}$ (given that the case (1) or (2) occurs). As $2^{0}$ (having 1 digit) and $2^{21998}$ (having 6623 digits) begin with 1 , we can compute how many times does (1) or (2) occur when computing successive powers of two: It is exactly $21998-3 \cdot 6622=2132$ times.
Finally, observe that the cases (1) and (2) are precisely those giving rise to a power of two starting with 4 , therefore there are exactly 2132 such numbers in the given range.
Problem 55. Find rational numbers $a, b, c$ such that
$$
\sqrt[3]{\sqrt[3]{2}-1}=\sqrt[3]{a}+\sqrt[3]{b}+\sqrt[3]{c}
$$
Note: A rational number is a quotient of two integers.
Result. $\quad(1 / 9,-2 / 9,4 / 9)$
Solution. Let us set $x=\sqrt[3]{\sqrt[3]{2}-1}$ and $y=\sqrt[3]{2}$. The idea is to use the fact that the numbers $y^{3} \pm 1$ are integers and employ the factorization identities for $A^{3} \pm B^{3}$ to obtain a relation between $x$ and $y$ in a form suitable to express $x$ as sum of three rational cube roots. Firstly note that
$$
1=y^{3}-1=(y-1)\left(y^{2}+y+1\right)
$$
and since $3=y^{3}+1$ we have
$$
y^{2}+y+1=\frac{3 y^{2}+3 y+3}{3}=\frac{y^{3}+3 y^{2}+3 y+1}{3}=\frac{(y+1)^{3}}{3}
$$
Hence
$$
x^{3}=y-1=\frac{1}{y^{2}+y+1}=\frac{3}{(y+1)^{3}}
$$
Secondly, since
$$
3=y^{3}+1=(y+1)\left(y^{2}-y+1\right)
$$
we have
$$
\frac{1}{y+1}=\frac{y^{2}-y+1}{3}
$$
and finally
$$
x=\frac{\sqrt[3]{3}}{y+1}=\sqrt[3]{\frac{1}{9}}(\sqrt[3]{4}-\sqrt[3]{2}+1)
$$
We have proved that the triple $(a, b, c)=\left(\frac{4}{9},-\frac{2}{9}, \frac{1}{9}\right)$ works.
It is possible to prove that this representation of $x$ as sum of three cube roots of rationals is unique up to a reordering.
|