Problem 1J. Peter has a gold bar of size $2 \times 3 \times 4$. Being an amateur blacksmith, he melted down the bar and created three identical cubes from the liquid gold. What is the common sidelength of Peter's cubes? Result. 2 Solution outline. The volume of the original blockstone was $2 \cdot 3 \cdot 4=24$. Since all three cubes have the same volume, it equals $\frac{24}{3}=8$. As the volume of a cube is the third power of its sidelength, we conclude that the sidelength of the three golden cubes is $\sqrt[3]{8}=2$. Problem 2J. A new Year's Eve celebration was attended by 43 people. The bar was selling juice, beer, and champagne. During the night 25 people drank beer, 19 people drank champagne, and 12 people drank both beer and champagne. The others were drivers, so they drank only juice. How many people drank only juice? Result. 11 Solution outline. The total number of people drinking alcohol was $25+19-12=32$ (we added the numbers of people drinking beer and people drinking champagne and subtracted the number of those drinking both beverages, since we counted them twice). All the others drank juice only, so there were $43-32=11$ such people. Problem 3J. By drinking a cup of black tea, one gets enough caffeine for one hour. By drinking a cup of coffee, one gets caffeine for 4 hours. In what ratio should we mix black tea and coffee in order to have a full cup containing caffeine for two hours? Result. $2: 1$ Solution outline. Denote by $k$ the amount of caffeine for one hour. Then black tea contains $k$, coffee contains $4 k$ and our goal is to mix $2 k$ into one cup. If we fill a fraction $x$ of a cup with tea and the remainder $1-x$ with coffee into one cup, the amount of caffeine in the mixture satisfies $x \cdot k+(1-x) \cdot 4 k=2 k$. This yields $x=2 / 3$ and hence the desired ratio is $$ \frac{x}{1-x}=\frac{\frac{2}{3}}{1-\frac{2}{3}}=2: 1 $$ Problem 4J. The mirrors $v$ and $h$ in the picture are perpendicular to each other. The angle between the mirrors $h$ and $s$ is $75^{\circ}$. A light ray was incident on the mirror $v$, from which it reflected to $h$, then to $s$, and finally back to $v$ again. The initial angle of incidence on $v$ was $50^{\circ}$. What was the angle of incidence on $v$ after reflecting from $s$ ? Note: The angle of reflection equals the angle of incidence. ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-01.jpg?height=345&width=376&top_left_y=1872&top_left_x=840) Result. $80^{\circ}$ Solution outline. We sketch the trajectory of the light ray into a picture and compute angles in the resulting triangles. The angle of the first reflection from $v$ is $50^{\circ}$ from the last assumption. We know that the sum of angles in a triangle is $180^{\circ}$ and $v$ is perpendicular to $h$. Therefore the angle of incidence on $h$ was $40^{\circ}$, as was the angle of reflection. By the same reasoning, we infer that the angle of reflection from $s$ was $65^{\circ}$. Next we recall that the sum of angles in a quadrilateral is $360^{\circ}$ and hence compute the desired value, i.e. $360^{\circ}-90^{\circ}-75^{\circ}-\left(180^{\circ}-65^{\circ}\right)=80^{\circ}$. ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-02.jpg?height=465&width=506&top_left_y=236&top_left_x=775) Problem 5J. A shop sold 235 intergalactic spaceships during the year 2013. In each month, 20, 16, or 25 spaceships were sold. Determine in how many months the shop sold exactly 20,16 , and 25 spaceships, respectively. Result. 4, 5, 3 Solution outline. Let $a, b$ and $c$ be the number of months in which 20,16 and 25 spacecrafts were sold, respectively. Then $20 a+16 b+25 c=235$. The right hand side is divisible by 5 , so the left hand side has to be divisible by 5 , too. Clearly, $20 a+25 c$ is a multiple of 5 , hence $16 b$ has to be a multiple of 5 as well. Since $5 \nmid 16$, necessarily $5 \mid b$. There are only three possibilities: - $b=0$. Then $c=12-a$ and we get $20 a+25(12-a)=235$ or $4 a+60-5 a=47$. Thus $a=13$, which is not possible as there are only twelve months altogether. - $b=5$. Then $a=7-c$ and substitution gives $80+5 c=95$. The solution is $a=4, c=3$. - $b=10$. Then $c=2-a$ and $210-5 a=235$, which is not possible. Problem 6J. Two circles have radii 5 and 26. The centre of the larger circle lies on the circumference of the smaller one. Consider the longest and the shortest chord of the larger circle which are tangent to the smaller circle. What is the difference between the lengths of these extremal chords? Result. 4 Solution outline. The longest chord is clearly the diameter of the larger circle, so its length is 52 . The shortest is the one whose distance from the centre of the larger circle is the greatest. This distance can be at most 10, because the chord has to be tangent to the smaller circle. By the Pythagorean theorem, the length of the shortest chord is $2 \cdot \sqrt{26^{2}-10^{2}}=48$, so the desired difference is $52-48=4$. ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-02.jpg?height=371&width=374&top_left_y=1782&top_left_x=841) Problem 7J. Collin Farrel was born in the last century in Sleepy Hollow. We know that his age in 1999 was the same as the sum of the digits of the year when he was born. What is Collin's year of birth? Result. 1976 Solution outline. Let $10 x+y$ be his age in 1999, where $x, y$ are digits. Since he was born in the 20th century, the sum of the digits of his year of birth is $1+9+(9-x)+(9-y)$, therefore $28-x-y=10 x+y$ or $28=11 x+2 y$. Since $0 \leq x, y \leq 9$, the only solution is $x=2, y=3$, hence he was born in $1999-23=1976$. Problem 8J. Four circles of radius 1 are pairwise tangent (except for the top and the bottom one) as in the figure below. A tight band is wrapped around them, as shown in the figure. What is the length of the band? ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-03.jpg?height=346&width=263&top_left_y=381&top_left_x=905) ## Result. $8+2 \pi$ Solution outline. We can split the band into straight and curved parts. The curved parts together form a full turn, so their total length is $2 \pi$. The length of each straight part is the same as the distance of the centers of the corresponding circles, which is 2 . Thus the overall length is $8+2 \pi$. Problem 9J. A certain sports teacher always orders his class of bugs by the number of their legs. In the last sports session, only Buggy and four other bugs, who have $6,3,10$, and 9 legs, were present. We know that when they stood in the correct order, the number of legs of the middle bug was the arithmetic mean of the numbers of legs of all five bugs. Find all possible numbers of Buggy's legs. Result. 2, 7, 17 Solution outline. Let $m$ be the number of legs of the middle bug, and let $b$ be number of Buggy's legs. Then we have $$ m=\frac{6+3+10+9+b}{5}=5+\frac{3+b}{5} $$ or $b=5 m-28$. As $m$ is also the median (i.e. the "middle value"), it has to be one of 6,9 , or $b$, so (by plugging into the last equation) we find that $b$ is one of 2,7 , or 17 . Problem 10J. For non-zero digits $X$ and $Y$, denote $\overline{X Y}$ the number whose decimal representation is $X Y$. Assuming non-zero digits $A, B, C$ satisfy $\overline{A A}+\overline{B B}+\overline{C C}=\overline{A B C}$, determine $\overline{A B C}$. Result. 198 Solution outline. Comparison of the units digit in the equality yields $A+B+C=C+f$ or $A+B=f$, where $f$ is 0 or 10 ; as $A, B$ are non-zero digits, only $A+B=10$ is possible. Similarly, the tens digit gives $A+B+C+1=B+10$ (the one on the left hand side is carried from units) or $A+C=9$. Finally, since we again carry only 1 to the hundreds, we obtain $A=1$, thus $B=9$ and $C=8$. Problem 11J / 1S. The famous celestial object collector Buggo was forced to sell one third of his collection due to the financial crisis. Immediately afterwards he gave three of his Solar System planets to his daughter. Later, he sold one third of the rest of his collection, and, furthermore, he also gave two moons of Jupiter and two moons of Saturn to his wife. Finally he sold one third of the rest of his objects followed by Mars with both its moons, and after that there were only 9 planets in the Alpha Centauri system left in his collection. How many objects did Buggo have at the beginning? Result. 54 Solution outline. Let $x$ be the number of celestial objects at the beginning. The number of objects changes during the process in the following way: $$ x, \frac{2}{3} x, \frac{2}{3} x-3, \ldots, \frac{2}{3}\left(\frac{2}{3}\left(\frac{2}{3} x-3\right)-4\right)-3=9 $$ After a bit of manipulation we obtain $$ x=\frac{3}{2}\left(\frac{3}{2}\left(\frac{3}{2}(9+3)+4\right)+3\right)=54 $$ Problem 12J / 2S. Find the least positive integer greater than 2014 that cannot be written as a sum of two palindromes. Note: A palindrome is a number whose digits (in decimal representation) are the same read backward. Result. 2019 Solution outline. If a number greater than 2014 can be written as a sum of two palindromes, then one of these palindromes needs to be at least 4 digits long. However, there are not many of these namely $1001,1111, \ldots, 1991,2002$ (and the rest is too large). We can write the numbers up to 2018 as $2015=1551+464,2016=1441+575,2017=1331+686$ and $2018=1221+797$. Assume that 2019 can be decomposed in such a fashion; then one of the summands must have four digits. If the second summand had an even number of digits, their sum would be a multiple of 11 , whereas 2019 is not. Thus we have $2019=\overline{1 A A 1}+\overline{B C B}$, where $A, B$ and $C$ are digits. From the units digit we see that $B=8$, so there is no carrying and either $A+C=1$ or $A+C=11$. The former would imply $\overline{1 A A 1}+\overline{8 C 8}<2000$, the latter $A+8+1=10$ (hundreds digit), so $A=1$ and $C=10$ which is a contradiction. Therefore the number we are looking for is 2019 . Problem 13J / 3S. Vodka gave Ondro a number puzzle. He chose a digit $X$ and said: "I am thinking of a three digit number that is divisible by 11. The hundreds digit is $X$ and the tens digit is 3 . Find the units digit." Ondro soon realised that he had been cheated and there is no such number. Which digit $X$ did Vodka choose? Result. 4 Solution outline. Taking into account the well-known rule for divisibility by 11 the problem simplifies to determining for which digit $X$ there is no digit $Y$ (the units digit) such that $(X+Y)-3$ is divisible by 11. This further reduces to seeking $X$ such that $00$, we infer that $a=b=d$ and $d-1=1$, thus $(a, b)=(2,2)$. Problem 20J / 10S. There are 29 unit squares in the diagram below. A frog starts in one of the five (unit) squares in the bottom row. Each second, it jumps either to the square directly above its current position (if such a square exists), or to the square that is one above and one to the right from its current square (if such a square exists). The frog jumps every second until it reaches the top. How many distinct paths from the bottom row to the top row can the frog take? ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-06.jpg?height=414&width=416&top_left_y=473&top_left_x=820) Result. 256 Solution outline. Every path of the frog has to go through the square in the middle. On its way from this square the frog decides four times whether to jump directly up or diagonally, thus the number of ways from the middle up is $2^{4}=16$. The number of ways from the bottom row to the middle is the same as the number of ways from the middle downwards using the opposite moves (because of the symmetry of the diagram), so it is 16 as well. Any two such subpaths may be joined in the middle square to form a full path, so the total number is $16^{2}=256$. Problem 21J / 11S. Palo is walking along the diagonals of a regular octagon. His walk begins in a fixed vertex of the octagon, and should continue along all the diagonals in such a way that he walks along each diagonal exactly once. How many different walks can Palo take? Result. 0 Solution outline. Whenever Palo enters a vertex other than the first and the last one of his walk, he has to leave it along a previously unused diagonal. However, there is an odd number of diagonals incident at every vertex (namely five), therefore he cannot use all the diagonals incident to some vertex. We conclude that there is no such walk. Problem 22J / 12S. Consider a $2014 \times 2014$ grid of unit squares with the lower left corner in the point $(0,0)$ and upper right corner in $(2014,2014)$. A line $p$ passes through the points $(0,0)$ and $(2014,2019)$. How many squares of the grid does $p$ cross? Note: A line crosses a square if they have at least two points in common. For example, the diagonal crosses 2014 squares of the grid. Result. 4023 Solution outline. As $p$ passes through the points $(0,0)$ and $(2014,2019)$, each of its points $(x, y)$ satisfies $x / y=2014 / 2019$. Since 2014 and 2019 are coprime, the fraction 2014/2019 is in its lowest terms and $p$ does not pass through any vertex of a square in the grid other than $(0,0)$. Thus, $p$ crosses a new square with every intersected inner grid segment. "On its way" from $(0,0)$ to $(2014,2019), p$ intersects 2013 such horizontal and $\left\lfloor 2014^{2} / 2019\right\rfloor=2009$ vertical segments. If we add the corner square in which $p$ "starts", we get $1+2013+2009=4023$ crossed squares in total. Problem 23J / 13S. A convex $n$-gon has one interior angle of an arbitrary measure and all the remaining $n-1$ angles have a measure of $150^{\circ}$. What are the possible values of $n$ ? List all possibilities. Result. 8, 9, 10, 11, 12 Solution outline. Every $n$-gon can be cut into $n-2$ triangles, hence the sum of interior angles is $(n-2) \cdot 180^{\circ}$. Thus we have $(n-2) \cdot 180^{\circ}=(n-1) \cdot 150^{\circ}+x$ or $n=x / 30^{\circ}+7$, where $0^{\circ}1$, so the assumption is false and $\operatorname{gcd}\left(2 x-1,3 x^{2}-3 x+1\right)=1$ for any $x \geq 1$. Given that we have shown $x=y+1$, the desired pairs are $(2,1),(3,2), \ldots,(100,99)$. All in all there are 99 of them. Problem 32J / 22S. Consider a number that starts with $122333444455555 \ldots$ and continues in such a way that we write each positive integer as many times as its value indicates. We stop after writing 2014 digits. What is the last digit of this number? Result. 4 Solution outline. One-digit numbers require $1+2+\cdots+9=45$ digits, two-digit numbers $2 \cdot(10+11+$ $\cdots+99)=2 \cdot\left(\frac{99 \cdot 100}{2}-\frac{9 \cdot 10}{2}\right)=9810$. Hence we reach 2014 digits while writing a two-digit number. Observe that we are asking for a digit in an even position, and considering one-digit numbers take up an odd length, we only need to know the value of the digit on tens place for the number that occupies the 2014th position. The last written number is the least $n$ such that $45+2 \cdot(10+11+\cdots+n)>2014$, which yields a rough estimate $40m$ then $q^{2}>m q$ and $q^{m+1} \nmid 2014$ !, implying $q^{q} \nmid 2014$ !, which is undesirable. Conversely, if $q \leq m$, then clearly $q^{q} \mid 2014$ !. Hence $p$ must be the largest prime satisfying $p \leq\lfloor 2014 / p\rfloor$, i.e. $p^{2} \leq 2014$, which results in $p=43$. Problem 36J / 26S. Consider an array of 2 columns and 2014 rows. Using 3 different colours, we paint each cell of the array with a colour so that if the cells share a wall, they are of different colours. How many different colourings are there? Result. $6 \cdot 3^{2013}$ Solution outline. First we colour the bottom row arbitrarily, yielding $3 \cdot 2=6$ possibilities. If a row is coloured $(a, b)$ then the next one can be $(b, a),(b, c)$ or $(c, a)$. In other words, independently of choosing a colouring for a row, we have exactly three possibilities of how to colour the following one. That gives us $6 \cdot 3^{2013}$ different colourings. Problem 37J / 27S. Find the smallest positive integer $m$ such that $5 \mathrm{~m}$ is the fifth power of an integer, $6 m$ is the sixth power of an integer and $7 \mathrm{~m}$ is the seventh power of an integer. Result. $5^{84} 6^{35} 7^{90}$ Solution outline. Let us write $m=5^{a} 6^{b} 7^{c} d$ where $d$ is divisible by neither 5,6 nor 7 . In order for $5 m$ to be a fifth power, we need 5 to divide $a+1, b$ and $c$. Likewise $6 \mid a, b+1, c$ and $7 \mid a, b, c+1$. The number $d$ has to be a fifth, sixth and seventh power at the same time; we are looking for the smallest integer, so we let $d=1$. The number $a$ is divisible by 42 and $a+1$ by 5 , therefore the smallest suitable $a$ is 84 . We find $b=35$ and $c=90$ analogously. The smallest suitable $m$ turns out to be $5^{84} 6^{35} 7^{90}$. Problem 38J / 28S. We fold a rectangular piece of paper in such a way that two diagonally opposite vertices are touching, thus creating a fold, i.e. a line segment across the paper. After folding, the length of the fold line has the same length as the longer side of the rectangle. What is the ratio of the length of a longer side to the length of a shorter side of the rectangle? Result. $\sqrt{\frac{1+\sqrt{5}}{2}}$ Solution outline. Label important points as in the picture. Since similar rectangles yield the same result, we may w.l.o.g. assume $A B=1$. The question is now to find $x=B C$. First note that $E F \perp A C$, as $E F$ is the axis of symmetry of $A C$. We can see that $E S=F S=\frac{x}{2}$ by symmetry. The Pythagorean theorem implies $C S=\frac{\sqrt{x^{2}+1}}{2}$. Triangles $A B C$ and $E S C$ are similar, hence we infer $\frac{x}{1}=\frac{\sqrt{x^{2}+1}}{x}$. This relation yields $x^{4}-x^{2}-1=0$ which, after substituting $z=x^{2}$, produces a unique non-negative solution $x=\sqrt{\frac{1+\sqrt{5}}{2}}$. ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-11.jpg?height=557&width=483&top_left_y=1189&top_left_x=792) Problem 39J / 29S. We have 20 marbles, each of which is either yellow, blue, green, or red. Assuming marbles of the same colour are indistinguishable, how many marbles can be blue at most if the number of ways we can arrange the marbles into a straight line at most is 1140 ? Result. 17 Solution outline. Let $b, y, g$, and $r$ denote the number of blue, yellow, green, and red marbles, respectively. We have $\binom{20}{r}$ different ways of placing the red marbles. There remain $20-r$ positions for the green marbles, hence $\binom{20-r}{g}$ different ways of placing them, having placed the red ones. Similarly, the yellow marbles can be placed in $\binom{20-r-g}{y}$ different ways after fixing the red and green marbles. The remaining blue marbles just fill in the void. So we seek the smallest $y+g+r$ such that $$ \binom{20}{r}\binom{20-r}{g}\binom{20-r-g}{y}=1140 $$ We can manipulate the expression to obtain $$ 1140=\frac{20(20-1) \cdots(b+1)}{r!g!y!} $$ If $b \geq 18$, the numerator is at most $20 \cdot 19=380$, so the number of ways is less than 1140 . For $b=17$ the number 1140 can be attained via setting $y=3, g=0, r=0$. Problem 40J / 30S. Find all integers $n \geq 3$ such that the regular $n$-gon can be divided into at least two regular polygons. Result. 3, 4, 6, 12 Solution outline. Firstly observe that an equilateral triangle can be divided into four equilateral triangles by its midlines, a square can be divided into four squares and a regular hexagon into six triangles. Consider a regular $n$-gon with $n \neq 3,4,6$. The internal angles of regular polygons with $3,4,5$, and 6 vertices are $60^{\circ}, 90^{\circ}, 108^{\circ}$, and $120^{\circ}$, respectively. We have to "fill" the internal angle of the $n$-gon either using a smaller $n$-gon or two polygons with at most five vertices. However, the former option leaves us with an acute angle different from $60^{\circ}$, which cannot be filled. Therefore, the internal angles of the $n$-gon have to be filled either with a triangle and a square or with a triangle and a pentagon. The corresponding interior angles are $150^{\circ}$ and $168^{\circ}$, i.e. $n$ is 12 or 30 . It is indeed possible to divide the regular dodecagon: We alternately put squares and triangles to the sides of the polygon and a hexagon to the middle. ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-12.jpg?height=192&width=900&top_left_y=846&top_left_x=584) On the other hand, such a division of a triacontagon does not exist; it would need to have a pentagon adjoined to every other side. Two such neighbouring pentagons would meet in a vertex with one angle equal to $60^{\circ}$, thus the angle on the other side would be $84^{\circ}$, which cannot be filled. ![](https://cdn.mathpix.com/cropped/2024_06_04_672dbc0c05ef2e59ad01g-12.jpg?height=240&width=334&top_left_y=1208&top_left_x=861) Problem 41J / 31S. A rook is standing in the bottom left corner of a $5 \times 5$ chessboard. In how many ways can the rook reach the top right corner of the board, provided that it is limited to move only up or to the right? We consider two paths to be distinct if the sequences of the visited squares are different. Result. 838 Solution outline. For each square we compute the number of ways to reach it. There is only one way for the bottom left corner (empty sequence of moves). For every other square $S$ we take the following approach: Consider a sequence of moves ending in $S$ and exclude its last move; before this move, the rook was in a square $T$ either below or to the left of $S$. On the other hand, whenever the rook gets to a square $T$ below or to the left of $S$, by adding one move we obtain a way to reach $S$. Therefore if we know the numbers of ways to get to all such squares $T$, it suffices to sum up all these ways. Thus we employ the following procedure: Firstly, we write 1 to the bottom left corner of the board and then we repeatedly apply the rule "Find a square with all squares below and to the left filled in and fill it with the sum of these values." The sought number is in the top right corner. | 8 | 28 | 94 | 289 | 838 | | :---: | :---: | :---: | :---: | :---: | | 4 | 12 | 37 | 106 | 289 | | 2 | 5 | 14 | 37 | 94 | | 1 | 2 | 5 | 12 | 28 | | 1 | 1 | 2 | 4 | 8 | Problem 42J / 32S. What is the digit in the place of hundreds in $11^{2014}$ ? Result. 2 Solution outline. The binomial theorem entails $$ 11^{2014}=(1+10)^{2014}=\binom{2014}{0} \cdot 1+\binom{2014}{1} \cdot 10+\binom{2014}{2} \cdot 100+1000 \cdot\left(\binom{2014}{3}+\cdots\right) $$ We need to compute this expression modulo 1000 and to take the first digit, so we may drop the terms grouped in the last brackets and proceed as $$ 11^{2014} \equiv 1+2014 \cdot 10+1007 \cdot 2013 \cdot 100 \equiv 1+140+7 \cdot 3 \cdot 100 \equiv 241 \quad(\bmod 1000) $$ Problem 43J / 33S. A grasshopper is jumping on vertices of an equilateral triangle. Whenever it sits on a vertex, it randomly chooses one of the other two vertices as the destination for its next jump. What is the probability that it returns to the starting vertex with its tenth jump? ## Result. $\frac{171}{512}$ Solution outline. Denote by $A$ the starting vertex and by $a_{i}$ the probability of the grasshopper being in the vertex $A$ after $i$ jumps (so $a_{0}=1$ ). We can find a recurrence relation for $a_{i+1}$ provided that $a_{i}$ is given: If the $(i+1)$-th jump of the grasshopper ended in $A$, then the previous jump did not and the grasshopper had to choose vertex $A$ out of the two possible ones, so $$ a_{i+1}=\frac{1}{2}\left(1-a_{i}\right) $$ or, equivalently, $$ a_{i+1}-\frac{1}{3}=-\frac{1}{2}\left(a_{i}-\frac{1}{3}\right) $$ As $a_{0}=1 / 3+2 / 3$, we infer that $$ a_{i}=\frac{1}{3}+\frac{2}{3} \cdot\left(-\frac{1}{2}\right)^{i} $$ and thus $$ a_{10}=\frac{1}{3}+\frac{1}{3 \cdot 512}=\frac{171}{512} $$ Problem 44J / 34S. Parsley is a lumberjack. His work is strictly divided into minutes, in which he may choose one of the following actions: - He cuts down $n$ trees, where $n$ is his current power. This wears him out, so his power decreases by one. - He takes a rest and restores one point of power. What is the maximal number of trees he may cut down in 60 minutes, if his initial power is 100 ? Result. 4293 Solution outline. If Parsley spent a minute resting and in the following minute he cut trees, he would cut one tree less than if he firstly cut and then rested, but in neither case does his power change. Therefore, in order to maximize the number of trees cut, he begins with $r$ minutes of rest and proceeds with $60-r$ minutes of cutting for some $r$. The total number of trees cut is then $(r+100)+(r+99)+\cdots+(r+100-(60-r-1))=\frac{(r+100+2 r+41)}{2} \cdot(60-r)=-\frac{3}{2}\left((r-6.5)^{2}-2862.25\right)$. The maximum is attained if the term $(r-6.5)^{2}$ is lowest possible, i.e. for $r=6$ or $r=7$. In this case Parsley cuts $\frac{3}{2} \cdot 2862=4293$ trees. Problem 45J / 35S. Denote by $\sqrt{\mathbb{N}}$ the set $\{\sqrt{1}, \sqrt{2}, \sqrt{3}, \sqrt{4}, \ldots\}$, i.e. the set of all square roots of positive integers. Let $S$ be the set of real numbers $a$ for which both $a \in \sqrt{\mathbb{N}}$ and $36 / a \in \sqrt{\mathbb{N}}$ hold. What is the product of the elements of the set $S$ ? Result. $6^{25}$ Solution outline. If $a=\sqrt{n_{a, 1}}$ and $36 / a=\sqrt{n_{a, 2}}$ for some $n_{a, 1}, n_{a, 2} \in \mathbb{N}$, it follows $n_{a, 1} n_{a, 2}=36^{2}$. This observation lets us compute the desired product as follows: $$ \prod_{a \in S} a=\sqrt{\prod_{a \in S} n_{a, 1}}=\sqrt{\prod_{n \mid 36^{2}} n}=\sqrt{\prod_{0 \leq k_{2} \leq 4} \prod_{0 \leq k_{1} \leq 4} 2^{k_{1}} 3^{k_{2}}}=\sqrt{\prod_{0 \leq k_{2} \leq 4} 2^{10} 3^{k_{2}}}=\sqrt{2^{50} 3^{50}}=6^{25} $$ Problem 46J / 36S. What is the probability that the product of 2014 randomly chosen digits is a multiple of 10 ? Result. $1-\left(\frac{5}{10}\right)^{2014}-\left(\frac{8}{10}\right)^{2014}+\left(\frac{4}{10}\right)^{2014}$ Solution outline. We seek the probability that the product is divisible by both 2 and 5 . Let us compute the probability of the complementary event: the probability of the product not being divisible by 2 is $a=(5 / 10)^{2014}$ (all the factors have to be odd). Similarly, for the divisibility by 5 we have $b=(8 / 10)^{2014}$ (there may be no 0 or 5 ), and the probability of not being divisible neither by 2 nor 5 is $c=(4 / 10)^{2014}$. The sought probability is $1-a-b+c$, since we have subtracted the probability of non-divisibility by 2 and 5 twice and thus we have to add it back. Problem 47J / 37S. Evaluate the expression $$ \lfloor 2014 \sqrt[3]{-2014}\rfloor+\lfloor 2014 \sqrt[3]{-2013}\rfloor+\cdots+\lfloor 2014 \sqrt[3]{2014}\rfloor $$ Note: The symbol $\lfloor x\rfloor$ denotes the integral part of $x$, e.g. the greatest integer not exceeding $x$. Result. -2002 Solution outline. We rewrite the expression as $$ \begin{aligned} & \lfloor 2014 \sqrt[3]{0}\rfloor+(\lfloor 2014 \sqrt[3]{1}\rfloor+\lfloor 2014 \sqrt[3]{-1}\rfloor)+\cdots+(\lfloor 2014 \sqrt[3]{2014}\rfloor+\lfloor 2014 \sqrt[3]{-2014}\rfloor)= \\ & \quad=(\lfloor 2014 \sqrt[3]{1}\rfloor-\lceil 2014 \sqrt[3]{1}\rceil)+(\lfloor 2014 \sqrt[3]{2}\rfloor-\lceil 2014 \sqrt[3]{2}\rceil)+\cdots+(\lfloor 2014 \sqrt[3]{2014}\rfloor-\lceil 2014 \sqrt[3]{2014}\rceil) \end{aligned} $$ where $\lceil x\rceil$ denotes the smallest integer greater or equal to $x$. Observe that if $x$ is an integer, then $\lfloor x\rfloor-\lceil x\rceil$ is equal to zero; otherwise it is -1 . As the cube root of an integer is either an integer or an irrational number, the sum in question is minus the number of numbers between 1 and 2014 (inclusive) which are not a cube. Since $12^{3}=1728<2014$ and $13^{3}=2197>2014$, there are exactly 12 cubes between 1 and 2014 , so the desired value is $-(2014-12)=-2002$. Problem 48J / 38S. Boris counted the sum $1+2+\cdots+2012$. However, he forgot to add some numbers and got a number divisible by 2011. Ann counted the sum $A=1+2+\cdots+2013$. However, she missed the same numbers as Boris and got a number $N$ divisible by 2014. What is the ratio $N / A$ ? Result. $2 / 3$ Solution outline. Boris's number is $N-2013$, so $$ N \equiv 2013 \equiv 2 \quad(\bmod 2011) $$ and $N \equiv 0(\bmod 2014)$. We may similarly proceed with the number $2 A$ : $$ 2 A=2013 \cdot 2014 \equiv 0 \quad(\bmod 2014) $$ and $2 A \equiv 2 \cdot 3=6(\bmod 2011)$. Since $2 A$ is divisible by 3 (as it is divisible by 2013), but neither of 2011 and 2014 is, we may divide the congruences for $A$ by 3 and find that the number $2 A / 3$ satisfies precisely the conditions for $N$. On the other hand, no other such $N$ is admissible, since the distance of the next closest numbers satisfying the congruences for $N$ is $2011 \cdot 2014>A$. Thus $N / A=2 / 3$. Problem 49J / 39S. A game is played with 16 cards laid in a row. Each card has one side black and the other side red. A move consists of taking a consecutive sequence of cards (possibly only containing 1 card) in which the leftmost card has its black side face-up and the rest of the cards have red side face-up, and flipping all of these cards over. The game ends when a move can no longer be made. What is the maximum possible number of moves that can be made before the game ends? Result. $2^{16}-1$ Solution outline. Imagine the row of 16 cards as a binary number where a black side face-up corresponds to 0 and a red one to 1 . A move in our game then corresponds to binary addition of some number to thus interpreted row of cards so that the sum would always remain less than $2^{16}$. Therefore the game cannot run forever and we have an upper bound for the number of moves $2^{16}-1$. This number of moves can actually be attained: consider the initial state consisting of all zeroes (i.e. all cards are black side face-up) and perform moves corresponding to adding 1 in every move. Problem 50J / 40S. We have a right-angled triangle with sides of integral lengths such that one of the catheti is $2014^{14}$ in length. How many such triangles exist up to congruence? Result. $\frac{27 \cdot 29^{2}-1}{2}$ Solution outline. Denote the length of the second cathetus $b$ and the hypotenuse $c$. The Pythagorean theorem implies $(c-b)(c+b)=2014^{28}$. Since all the lengths are integers, the question is in how many ways we can write $2014^{28}$ as a product of two distinct, even divisors: the numbers $c-b$ and $c+b$ have the same parity, hence both must be even. The possibility $c-b=c+b$ is ruled out for it implies $b=0$. We have $2014^{28}=2^{28} \cdot 19^{28} \cdot 53^{28}$, so there are $27 \cdot 29 \cdot 29-1$ pairs of divisors satisfying the conditions. Given that we have to take into account also $c-b