# Contest Problems and Preliminary Solutions ![](https://cdn.mathpix.com/cropped/2024_04_17_4ead9738494cc20c28d3g-01.jpg?height=799&width=1430&top_left_y=831&top_left_x=313) Problem 1: Find all strictly increasing sequences $1=a_{1}1+\frac{1}{2023} . $$ Solution: Let us prove that conversely, the condition $$ a_{1}^{2023}+a_{2}^{2022}+\cdots+a_{2023} \leq 1+\frac{1}{2023} $$ implies that $$ S:=a_{1}+a_{2}^{2}+\cdots+a_{2023}^{2023}<2023 . $$ This is trivial if all $a_{i}$ are less than 1 . So suppose that there is an $i$ with $a_{i} \geq 1$, clearly it is unique and $a_{i}<1+\frac{1}{2023}$. Then we have $$ \begin{aligned} a_{i}^{i} & <\left(1+\frac{1}{2023}\right)^{2023}=1+\sum_{k=1}^{2023} \frac{1}{k !} \cdot \frac{2023}{2023} \cdot \frac{2022}{2023} \ldots \cdot \frac{2023-k+1}{2023} \\ & <1+\sum_{k=1}^{2023} \frac{1}{k !} \leq 1+\sum_{k=0}^{2022} \frac{1}{2^{k}}<3, \\ \sum_{\substack{k=1, k \neq i}}^{1011} a_{k}^{k} & \leq 1011 \text { and } \sum_{\substack{k=1012, k \neq i}}^{2023} a_{k}^{k} \leq \sum_{\substack{k=1012, k \neq i}}^{2023} a_{k}^{2024-k}<\frac{1}{2023} . \end{aligned} $$ Hence we have $$ S=a_{i}^{i}+\sum_{\substack{k=1, k \neq i}}^{1011} a_{k}^{k}+\sum_{\substack{k=1012, k \neq i}}^{2023} a_{k}^{k}<3+1011+\frac{1}{2023}<2023 $$ Remark: While the estimates might seem crude, the resulting bound is not so far away from the truth: If we replace 2023 by $n$ and the bound by $1+c_{n}$, then our argument shows that $c_{n} \geq \frac{1}{n}$, at least for large $n$, while the optimal bound has $c_{n} \asymp \frac{\log n}{n}$ (as in fact a slightly more careful version of our argument immediately shows!). Problem 3: Denote a set of equations in the real numbers with variables $x_{1}, x_{2}, x_{3} \in \mathbb{R}$ Flensburgian if there exists an $i \in\{1,2,3\}$ such that every solution of the set of equations where all the variables are pairwise different, satisfies $x_{i}>x_{j}$ for all $j \neq i$. Determine for which positive integers $n \geq 2$, the following set of two equations $$ a^{n}+b=a \text { and } c^{n+1}+b^{2}=a b $$ in the three real variables $a, b, c$ is Flensburgian. Solution: The set of equations given in the problem statement is Flensburgian precisely when $n$ is even. To see that it is not Flensburgian when $n \geq 3$ is odd, notice that if $(a, b, c)$ satisfies the set of equations then so does $(-a,-b,-c)$. Hence, if there exists a single solution to the set of equation where all the variables are different then the set of equations cannot be Flensburgian. This is in fact the case, e.g., consider $(a, b, c)=$ $\left(\frac{1}{2}, \frac{2^{n-1}-1}{2^{n}},\left(\frac{2^{n-1}-1}{2^{2 n}}\right)^{\frac{1}{n+1}}\right)$. The rest of the solution is dedicated to prove that the set of equations is indeed Flensburgian when $n$ is even. The first equation yields $b=a-a^{n} \leq a$, since $a^{n} \geq 0$ when $n$ is even. The inequality is strict whenever $a \neq 0$ and the case $a=0$ implies $b=0$, i.e. $a=b$, which we can disregard. Substituting the relation $b=a-a^{n}$ into the second equation yields $$ \begin{aligned} & 0=c^{n+1}+\left(a-a^{n}\right)^{2}-a\left(a-a^{n}\right)=c^{n+1}+a^{2 n}-a^{n+1}, \text { i.e. } \\ & c^{n+1}=a^{n+1}-a^{2 n}b$ and $a>c$. Problem 4: Determine all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ that satisfy $$ f(f(x)+y)+x f(y)=f(x y+y)+f(x) $$ for all real numbers $x$ and $y$. Solution: Let $P(x, y)$ denote the assertion of the given functional equation. Claim 1: $f(0)=0$. Proof. Note that $P(0, y)$ and $P(x, 0)$ gives us the following: $$ \begin{aligned} f(y+f(0)) & =f(y)+f(0) \\ f(f(x))+x f(0) & =f(0)+f(x) . \end{aligned} $$ Consider the first expression. Plugging $y=-f(0)$ in it yields $$ f(-f(0)+f(0))=f(-f(0))+f(0) \text {, i.e. } f(-f(0))=0 \text {. } $$ If we denote $-f(0)=a$, then we have $f(a)=0$. Plugging $x=a$ in the second expression gives us: $$ f(f(a))+a f(0)=f(0)+f(a) \text {, i.e. } a f(0)=0 \text {. } $$ This either means that $a=0$, i.e. $f(0)=0$ or $f(0)=0$. In both cases the claim is proved. Since $f(0)=0$, the expression $P(x, 0)$ becomes $$ f(f(x))=f(x) . $$ Claim 2: $f(1)=1$ or $f(x)=0$ for all real numbers $x$. Proof. Consider $P(x, 1)$ : $$ f(f(x)+1)+x f(1)=f(x+1)+f(x) . $$ Replacing $x$ by $f(x)$ and using $(*)$ leads to: $$ \begin{aligned} f(f(f(x))+1)+f(x) f(1) & =f(f(x)+1)+f(f(x)) \\ f(f(x)+1)+f(x) f(1) & =f(f(x)+1)+f(x) \\ f(x) f(1) & =f(x) . \end{aligned} $$ Suppose that there does not exist such $b$ that $f(b) \neq 0$, then $f(x)=0$ for all real numbers $x$. Otherwise $f(b) f(1)=f(b)$ implies $f(1)=1$ as desired. Claim 3: If $f(1)=1$ and $f(a)=0$, then $a=0$. Proof. Suppose $f(a)=0$ for some real number $a$. Then $P(a, 1)$ gives us $$ \begin{aligned} f(f(a)+1)+a f(1) & =f(a+1)+f(a) \\ f(1)+a=f(a+1) & =a+1 \end{aligned} $$ On the other hand $P(1, a)$ leads us to the following: $$ \begin{aligned} f(f(1)+a)+f(a) & =f(2 a)+f(1) \\ f(a+1) & =f(2 a)+1 \\ a+1 & =f(2 a)+1 \\ f(2 a) & =a . \end{aligned} $$ Taking $f$ from both sides in the last relation and using $(*)$ leads to: $$ 0=f(a)=f(f(2 a))=f(2 a)=a . $$ This proves the claim. To finish the problem, consider $P(x, x-f(x))$ : $$ x f(x-f(x))=f((x-f(x)) \cdot(x+1)) . $$ Setting $x=-1$ gives us $$ -f(-1-f(-1))=f((-1-f(-1)) \cdot 0)=f(0)=0 . $$ From Claim 3 for $f \not \equiv 0$ we obtain that $-1-f(-1)=0$ implies $f(-1)=-1$. Now looking at $P(-1, y)$ and replacing $y$ by $y+1$, we get that $$ f(y-1)=f(y)-1 \text { implies } f(y+1)=f(y)+1 \text {. } $$ On the other hand, $P(x, 1)$, the previous relation and $\left(^{*}\right)$ give us the following: $$ \begin{aligned} f(f(x)+1)+x & =f(x+1)+f(x) \\ f(f(x))+1+x & =f(x)+1+f(x) \\ f(x)+x & =2 f(x) \\ f(x) & =x . \end{aligned} $$ Thus, the only possible functions that satisfy the given relation are $f(x)=x$ and $f(x)=0$. It is easy to check that they indeed solve the functional equation. Problem 5: Find the smallest positive real number $\alpha$, such that $$ \frac{x+y}{2} \geq \alpha \sqrt{x y}+(1-\alpha) \sqrt{\frac{x^{2}+y^{2}}{2}} $$ for all positive real numbers $x$ and $y$. Solution: Let us prove that $\alpha=\frac{1}{2}$ works. Then the following inequality should hold for all positive real numbers $x$ and $y$ : $$ \begin{aligned} & \frac{x+y}{2} \geq \frac{1}{2} \sqrt{x y}+\frac{1}{2} \sqrt{\frac{x^{2}+y^{2}}{2}} \\ \Longleftrightarrow & (x+y)^{2} \geq x y+\frac{x^{2}+y^{2}}{2}+2 \sqrt{x y \cdot \frac{x^{2}+y^{2}}{2}} \\ \Longleftrightarrow & (x+y)^{2} \geq 4 \sqrt{x y \cdot \frac{x^{2}+y^{2}}{2}} \\ \Longleftrightarrow & (x+y)^{4} \geq 8 x y\left(x^{2}+y^{2}\right) \\ \Longleftrightarrow & (x-y)^{4} \geq 0 \end{aligned} $$ which is true, so we showed that $\alpha=\frac{1}{2}$ actually works. Now it remains to show that $\alpha \geq \frac{1}{2}$. Let's consider $x=1+\varepsilon$ and $y=1-\varepsilon$ where $\varepsilon<1$. Then the inequality becomes $$ 1 \geq \alpha \sqrt{1-\varepsilon^{2}}+(1-\alpha) \sqrt{1+\varepsilon^{2}} \text {, i.e. } \alpha \geq \frac{\sqrt{1+\varepsilon^{2}}-1}{\sqrt{1+\varepsilon^{2}}-\sqrt{1-\varepsilon^{2}}} \text {. } $$ Notice that $$ \begin{aligned} & \frac{\sqrt{1+\varepsilon^{2}}-1}{\sqrt{1+\varepsilon^{2}}-\sqrt{1-\varepsilon^{2}}} \\ = & \frac{\left(\sqrt{1+\varepsilon^{2}}-1\right)\left(\sqrt{1+\varepsilon^{2}}+1\right)\left(\sqrt{1+\varepsilon^{2}}+\sqrt{1-\varepsilon^{2}}\right)}{\left(\sqrt{1+\varepsilon^{2}}-\sqrt{1-\varepsilon^{2}}\right)\left(\sqrt{1+\varepsilon^{2}}+\sqrt{1-\varepsilon^{2}}\right)\left(\sqrt{1+\varepsilon^{2}}+1\right)} \\ = & \frac{\varepsilon^{2}\left(\sqrt{1+\varepsilon^{2}}+\sqrt{1-\varepsilon^{2}}\right)}{2 \varepsilon^{2}\left(\sqrt{1+\varepsilon^{2}}+1\right)}=\frac{\sqrt{1+\varepsilon^{2}}+1-1+\sqrt{1-\varepsilon^{2}}}{2\left(\sqrt{1+\varepsilon^{2}}+1\right)} \\ = & \frac{1}{2}-\frac{1-\sqrt{1-\varepsilon^{2}}}{2\left(\sqrt{1+\varepsilon^{2}}+1\right)}=\frac{1}{2}-\frac{\left(1-\sqrt{1-\varepsilon^{2}}\right)\left(1+\sqrt{1-\varepsilon^{2}}\right)}{2\left(\sqrt{1+\varepsilon^{2}}+1\right)\left(1+\sqrt{1-\varepsilon^{2}}\right)} \\ = & \frac{1}{2}-\frac{\varepsilon^{2}}{2\left(\sqrt{1+\varepsilon^{2}}+1\right)\left(1+\sqrt{1-\varepsilon^{2}}\right)}>\frac{1}{2}-\frac{\varepsilon^{2}}{4 \cdot(1+\sqrt{2})} . \end{aligned} $$ As $\varepsilon$ can be arbitrarily small this expression can get arbitrarily close to $\frac{1}{2}$. This means that $\alpha<\frac{1}{2}$ cannot hold, as desired. Problem 6: Let $n$ be a positive integer. Each cell of an $n \times n$ table is coloured in one of $k$ colours where every colour is used at least once. Two different colours $A$ and $B$ are said to touch each other, if there exists a cell coloured in $A$ sharing a side with a cell coloured in $B$. The table is coloured in such a way that each colour touches at most 2 other colours. What is the maximal value of $k$ in terms of $n$ ? Solution: $k=2 n-1$ when $n \neq 2$ and $k=4$ when $n=2$. $k=2 n-1$ is possible by colouring diagonally as shown in the figure below and when $n=2, k=4$ is possible by colouring each cell in a unique colour. ![](https://cdn.mathpix.com/cropped/2024_04_17_4ead9738494cc20c28d3g-09.jpg?height=214&width=217&top_left_y=1024&top_left_x=925) We consider the graph, where each node represents a colour and two nodes are linked, if the colours they represent touch. This graph is connected and since each colour touches at most 2 colours every node has at most degree 2 . This means that the graph is either one long chain or one big cycle. ![](https://cdn.mathpix.com/cropped/2024_04_17_4ead9738494cc20c28d3g-09.jpg?height=146&width=534&top_left_y=1486&top_left_x=767) We now look at the case when $n$ is odd. Consider the cell in the center of the table. From this cell we can get to any other cell by passing through at most $n-1$ cells. Therefore from the node representing this cell, we can get to any node through at most $n-1$ edges. But if the graph has $2 n$ or more nodes, then for every node there is a node which is more than $n-1$ edges away. So we must have $k \leq 2 n-1$ for all odd $n$. When $n$ is even we consider the 4 center cells. If they all have a different colour, then they form a 4-cycle in the graph, meaning the graph has only 4 nodes. If two of the center cells have the same colour, then from this colour you will be able to get to all other cells passing thorugh at most $n-1$ cells. By same the arguments as in the odd case, we get $k \leq \max (2 n-1,4)$ for even $n$. So overall we have $k \leq 2 n-1$ for $n \neq 2$ and $k \leq 4$ for $n=2$ as desired. Problem 7: A robot moves in the plane in a straight line, but every one meter it turns $90^{\circ}$ to the right or to the left. At some point it reaches its starting point without having visited any other point more than once, and stops immediately. What are the possible path lengths of the robot? Solution: Let us define the coordinates system with unit length of one meter, point of origin in the starting point and vertical-horizontal axes. W.l.o.g. assume that the first move was east and the path had length of $n$. Then each odd move changed $x$ coordinate of the robot by 1 and each even move changed $y$ coordinate by 1 . At the end of the day both coordinates were equal to zero again, so there had to be even number of odd and even number of even moves. That implies that only $n$ divisible by 4 can fulfill the conditions. For $n=4$ we have a square path. For $n=8$ we had 4 changes of $x$ coordinate and 4 changes of $y$, so the whole path was inside some $2 \times 2$ square. Unfortunately that's not possible without reaching some point twice. Now, we will prove that all $n>8$ divisible by 4 are good. For $n=12$ there is a path in shape of "+" with first 4 moves like $(\rightarrow, \uparrow, \rightarrow, \uparrow)$. Now we can change the middle $(\uparrow, \rightarrow)$ sequence by $(\downarrow, \rightarrow, \uparrow, \rightarrow, \uparrow, \leftarrow)$. Thanks to this change the robot explored new territory south-east from the one before explored. We got +4 of length of the path. There we can do it again and again, reaching any length of $4 k+8$ for all $k \in \mathbb{Z}^{+}$. Problem 8: In the city of Flensburg there is a single, infinitely long, street with houses numbered 2, 3, .. The police in Flensburg is trying to catch a thief who every night moves from the house where she is currently hiding to one of its neighbouring houses. To taunt the local law enforcement the thief reveals every morning the highest prime divisor of the number of the house she has moved to. Every Sunday afternoon the police searches a single house, and they catch the thief if they search the house she is currently occupying. Does the police have a strategy to catch the thief in finite time? Solution: We will prove that the police are always able to catch the thief in finite time. Let $h_{i}$ denote the house the thief stays at the $i$-th night and $p_{i}$ denote the greatest prime divisor of $h_{i}$. The police knows that she stays at different neighbouring houses every night, so $h_{i+1}-h_{i}=1$ for all non-negative integers $i$. Let us assume that the police are given the address of the thief's first two hiding spots, then we will prove by induction that the police can determine $h_{i}$ precisely except being unable to distinguish between houses numbered 2 and 4. Assume the police knows $h_{i-2}$ and $h_{i-1}$, then they known that $h_{i}=h_{i-2}$ or $h_{i}=$ $2 h_{i-1}-h_{i-2}$. In the first case they will receive $p_{i}=p_{i-2}$ and in the latter case they will receive $p_{i}$ as the biggest prime divisor of $2 h_{i-1}-h_{i-2}$. Assume that they are unable to distinguish between these two cases, i.e., that $p_{i}=p_{i-2}$, which implies $$ p_{i-2} \mid 2 h_{i-1}-h_{i-2} \text {, i.e. } p_{i-2} \mid 2 h_{i-1} \text {, i.e. } p_{i-2} \mid 2 \text {, i.e. } p_{i-2}=2 $$ since $h_{i-1}-h_{i-2}=1$ implies $\operatorname{gcd}\left(h_{i-1}, h_{i-1}\right)=1$. Moreover, since $p_{i}=p_{i-2}=2$ are the biggest prime divisors of $h_{i}=2 h_{i-1}-h_{i-2}$ and $h_{i-2}$ they must both be powers of 2 . However, the only powers of two with a difference of exactly 2 are 2 and 4 . Hence $\left\{h_{i-2}, 2 h_{i-1}-h_{i-2}\right\}=\{2,4\}$, i.e. $h_{i-1}=\frac{2+4}{2}=3$. Thus, either the police will with certainty be able to determine $h_{i}$ or $h_{i-1}=3$, in which case $h_{i}$ may equal either 2 or 4 . To complete the inductive step we observe that the police are always able to determine the parity of $h_{j}$, since it changes every day. Thus, in the future if the police know that $h_{j} \in[2,4]$, then they can either determine $h_{j}=3$ or $h_{j} \in\{2,4\}$. However, the only way for the thief to leave the interval $[2,4]$ is to go to house number 5 , in which case the police will be alerted by receiving $p_{j}=5$, and they can again with certainty determine $h_{j}=5$ and $h_{j-1}=4$ preserving our inductive hypothesis. To summarize, if the police knows both $h_{0}$ and $h_{1}$, then they can always determine $h_{i}$ with certainty until $h_{i-1}=3$. After this point they will with known the two last hiding places of the thief if she leaves the interval $[2,4]$, restoring the inductive hypothesis, or otherwise, if she never leaves $[2,4]$ be able to determine his position, up to confusion about 2 and 4 using the parity of the day. Now, to catch the thief in finite time, they may methodically try to guess all viable pairs of $\left(h_{0}, h_{1}\right)$, i.e $h_{0}, h_{1} \in \mathbb{N}_{\geq 2}$ and $h_{0}-h_{1}=1$, of which there are countably many. For each viable starting position, let us consider either the immediate Sunday or the one after that, since each week has an odd amount of days, we are certain that exactly one of these days gives us that the thief is hiding in an odd house (given our assumption on his starting position). Thus, due to our inductive hypothesis, we can precisely determine where the thief will be, and search this house. If the thief is hiding in that house, the police wins, and if not, they will with certainty know that their guess of starting positions was incorrect, and move onto the next guess. By the above argument, each guess of initial starting positions requires at most two weeks, meaning that the police will catch the thief in finite time. Remark: Note that if a week contained an even number of days then the police would not be able to guarantee that they would be able to catch the thief, if the thief moves between houses number 3 and $\{2,4\}$. Problem 9: Determine if there exists a triangle that can be cut into 101 congruent triangles. Solution: Answer: Yes, there is. Choose an arbitrary positive integer $m$ and draw a height in the right triangle with ratio of legs $1: m$. This height cuts the triangle in two similar triangles with similarity coefficient $m$. The largest of them can further be cut into $m^{2}$ smaller equal triangles by splitting all sides in $m$ equal parts and connecting corresponding points with parallel lines. Thus a triangle can be split into $m^{2}+1$ equal triangles. The figure shows this for $m=4$, but in our problem we must take $m=10$. ![](https://cdn.mathpix.com/cropped/2024_04_17_4ead9738494cc20c28d3g-13.jpg?height=215&width=866&top_left_y=1089&top_left_x=595) Problem 10: On a circle, $n \geq 3$ points are marked. Each marked point is coloured red, green or blue. In one step, one can erase two neighbouring marked points of different colours and mark a new point between the locations of the erased points with the third colour. In a final state, all marked points have the same colour which is called the colour of the final state. Find all $n$ for which there exists an initial state of $n$ marked points with one missing colour, from which one can reach a final state of any of the three colours by applying a suitable sequence of steps. Solution: Answer: All even numbers $n$ greater than 2 . We show first that required initial states are impossible for odd $n$. Note that if one colour is missing then the numbers of marked points of existing two colours have different parities, i.e., the difference of these numbers is odd. Each step keeps the parity of the difference of the numbers of marked points of these two colours unchanged. Hence in every intermediate state and also in the final state, one of these two colours is represented. Consequently, a final state of the third colour is impossible. For every even number $n>2$, an initial state with 2 consecutive points marked with one colour and $n-2$ points marked with another colour satisfies the conditions of the problem. Indeed, if $n>4$ then with two symmetric steps, one can reach a similar state where the number of points marked with the more popular colour is 2 less. Hence it suffices to solve the case $n=4$. In this case, making one step leads to a state with 3 marked points, all with different colours. In order to obtain a final state of any given colour, one can replace points of the other two colours with a new point of the given colour. This completes the solution. ## 2nd Solution: Definition: Call a configuration colourful, if the final state may have any of the three colours. The case of $n$ being odd is excluded as in the first solution, so let $n>2$ be even. To construct colourful configurations, we consider linear configurations, i.e. one where the points are placed on a line instead of a circle. There is only difference to the circular situaton: We may not choose the two end points for the replacement step. So it suffices to construct linear colourful configurations. We start by providing explicit examples for $n=4$ and $n=6$ (with the bold letters being replaced): $$ \begin{aligned} & \mathbf{R G} R G \rightarrow B \mathbf{R G} \rightarrow B B \\ & R \mathbf{G R} G \rightarrow R \mathbf{B G} \rightarrow R R \\ & R \mathbf{G R} G \rightarrow \mathbf{R B} G \rightarrow G G \\ & \mathbf{R G} R R G R \rightarrow B R R \mathbf{G R} \rightarrow B R \mathbf{R B} \rightarrow B \mathbf{R G} \rightarrow B B \\ & R \mathbf{G R} R G R \rightarrow R B \mathbf{R G} R \rightarrow \mathbf{R B} B R \rightarrow \mathbf{G B} R \rightarrow R R \\ & R \mathbf{G R} R G R \rightarrow R B \mathbf{R G} R \rightarrow \mathbf{R B} B R \rightarrow G \mathbf{B R} \rightarrow G G . \end{aligned} $$ Next observe that the concatenation of several linear colourful configurations is again colourful: Indeed, each part can be transformed into the desired colour independently. So the building blocks for $n=4$ and $n=6$ can produce colourful configurations of any even length. Actually one can prove a lot more about colourful configurations: Proposition: Denote the number of red resp. green resp. blue points in the initial state by $R$ resp. $G$ resp. $B$. A circular configuration is colourful if and only if $$ R \equiv G \equiv B \quad(\bmod 2) $$ and it contains at least two colours. Proof. We have already seen in the solution above that $R-G \bmod 2, G-B \bmod 2$ and $B-R$ mod 2 are invariants. Moreover it is obvious that we need at least two colours to be able to do anything. So the conditions are necessary. We prove that they are sufficient: For $n=3$ the conditions require $R=G=B=1$ and the configuration indeed colourful. We continue by induction for $n>3$ : As $n>3$, there is at least one colour with more than one point, so assume wlog. $R>1$. Having at least two colours, we can find a pair of two different colours, one of which is red. Assume w.l.o.g. that the other is green. As a first step replace these two points. The resulting configuration has $R-1$ red, $G-1$ green and $B+1$ blue points, so it satisfies $R-1=G-1=B+1 \bmod 2$. Moreover due to $R>1$ is has at least one red and one blue point. So by induction the configuration is colourful, and hence so was our original state. This classification of colourful configuration, has some nice consequences: Proposition: If a circular configuration is colourful, then so is any permutation of its points. Proof. Immediate. Problem 11: $\quad$ Let $A B C$ be a triangle and let $J$ be the centre of the $A$-excircle. The reflection of $J$ in $B C$ is $K$. The points $E$ and $F$ are on $B J$ and $C J$, respectively, such that $\angle E A B=\angle C A F=90^{\circ}$. Prove that $\angle F K E+\angle F J E=$ $180^{\circ}$. Remark: The $A$-excircle is the circle that touches the side $B C$ and the extensions of $A C$ and $A B$. Solution: ![](https://cdn.mathpix.com/cropped/2024_04_17_4ead9738494cc20c28d3g-16.jpg?height=552&width=1222&top_left_y=888&top_left_x=313) Let $J K$ intersect $B C$ at $X$. We will prove a key claim: Claim: $B E K$ is similar to $B A X$. Proof. Note that $\angle E A B=90^{\circ}=\angle K X B$. Also, since $B J$ bisects $\angle C B A$, we get $\angle A B E=\angle J B X=\angle X B K$. Hence $E B A \sim K B X$. From that, we see that the spiral similarity that sends the line segment $E A$ to $K X$ has centre $B$. So the spiral similarity that sends the line segment $E K$ to $A X$ has centre $B$. Thus $B E K \sim B A X$. In a similar manner, we get $C F K$ is similar to $C A X$. Now, using the similar triangles and the fact that $K$ and $J$ are symmetric in $B C$, we have $$ \begin{aligned} \angle F K E+\angle F J E & =\angle F K E+\angle B K C \\ & =360^{\circ}-\angle E K B-\angle C K F \\ & =360^{\circ}-\angle A X B-\angle C X A \\ & =360^{\circ}-180^{\circ} \\ & =180^{\circ} \end{aligned} $$ as desired. Problem 12: Let $A B C$ be an acute triangle with $A B>A C$. The internal angle bisector of $\angle B A C$ intersects $B C$ at $D$. Let $O$ be the circumcentre of $A B C$. Let $A O$ intersect the segment $B C$ at $E$. Let $J$ be the incentre of $A E D$. Prove that if $\angle A D O=45^{\circ}$ then $O J=J D$. Solution: Let $\alpha=\angle B A C, \beta=\angle C B A, \gamma=\angle A C B$. We have $$ \begin{aligned} \angle D J A & =90^{\circ}+\frac{1}{2} \angle D E A=90^{\circ}+\frac{1}{2}(\angle E B A+\angle B A E) \\ & =90^{\circ}+\frac{1}{2}\left(\beta+90^{\circ}-\gamma\right)=135^{\circ}+\frac{\beta}{2}-\frac{\gamma}{2} \end{aligned} $$ and $$ \begin{aligned} \angle D O A & =180^{\circ}-\angle O A D-\angle A D O=180^{\circ}-(\angle O A C-\angle D A C)-45^{\circ} \\ & =135^{\circ}-\left(90^{\circ}-\beta-\frac{\alpha}{2}\right)=135^{\circ}-\left(\frac{1}{2}(\alpha+\beta+\gamma)-\beta-\frac{\alpha}{2}\right) \\ & =135^{\circ}+\frac{\beta}{2}-\frac{\gamma}{2} . \end{aligned} $$ Therefore, $\angle D J A=\angle D O A$, hence quadrilateral $A D J O$ is cyclic. Since $A J$ is the bisector of $\angle O A D$, the $\operatorname{arcs} O J$ and $J D$ are equal. Hence $O J=J D$. ![](https://cdn.mathpix.com/cropped/2024_04_17_4ead9738494cc20c28d3g-17.jpg?height=416&width=531&top_left_y=1551&top_left_x=771) ## B ALTIC Problem 13: Let $A B C$ be an acute triangle with $A B7$ be a prime number and let $A$ be a subset of $\{0,1, \ldots, p-1\}$ consisting of at least $\frac{p-1}{2}$ elements. Show that for each integer $r$, there exist (not necessarily distinct) numbers $a, b, c, d \in A$ such that $$ a b-c d \equiv r \quad(\bmod p) $$ Solution: Let $P$ be the set of residues modulo of possible products $a b$, for $a, b \in A$. Clearly, we have $|P| \geq \frac{p-1}{2}$, since we get $|A|$ different products by fixing an arbitrary $0 \neq a \in A$ and let run $b$ through $A$. If $|P| \geq \frac{p+1}{2}$, then $|r+P| \geq \frac{p+1}{2}$, too. Hence, $|P|+|r+P| \geq p+1>p$, so, by the Pigeonhole Principle, $P$ and $r+P$ must have an element in common. In other words, there are $p_{1}, p_{2}$ with $p_{1} \equiv r+p_{2}(\bmod p)$ and hence $p_{1}-p_{2} \equiv r(\bmod p)$, which gives a solution of the desired shape from the definition of $P$. So the only remaining case is that of $|P|=|A|=\frac{p-1}{2}$. Multiplying all elements of $A$ with the same constant and reducing modulo $p$, if necessary, we may assume w.l.o.g. that $1 \in A$. Then $A \subseteq P$ and hence $A=P$. This means that the product of each two non-zero elements of $A$ is an element of $A$, too. Furthermore, for a fixed $0 \neq a \in A$ the products $a b$ all differ modulolo $p$. (It follows, that for every $0 \neq a \in A$ there is a $b \in A$ with $a b \equiv 1(\bmod p)$. Hence, the non-zero elements of $A$ form a group.) Thus, if we denote $A^{\star}:=A \backslash\{0\}$, for a fixed non-zero $a \in A$ we have $$ \prod_{b \in A^{\star}} b \equiv \prod_{b \in A^{\star}}(a b)=a^{\left|A^{\star}\right|} \cdot \prod_{b \in A^{\star}} b(\bmod p) . $$ Hence $a^{\left|A^{\star}\right|} \equiv 1(\bmod p)$. If $0 \in A$ we have $\left|A^{\star}\right|=\frac{p-3}{2}$. So $a^{p-3}=a^{2 \mid A^{\star}} \equiv 1(\bmod p)$. But from Fermat's little theorem we know $a^{p-1} \equiv 1(\bmod p)$, hence $a^{2} \equiv 1(\bmod p)$ and $a \equiv \pm 1(\bmod p)$. We get $\frac{p-3}{2}=\left|A^{\star}\right| \leq 2$. This is impossible for $p>7$. Consequently, $0 \notin A$ and we have $A^{\star}=A$. We now use the well-known fact that for every prime $p$ there exists a primitive root, that is an integer $0\ell$ and $a_{k}=a_{\ell}$. Then we have $2^{k} \equiv 2^{\ell}(\bmod 101)$ and $0 \equiv 2^{k}-2^{\ell} \equiv 2^{\ell} \cdot\left(2^{k-\ell}-1\right)(\bmod 101)$. Since $2^{\ell}$ and 101 are coprime, it follows that $2^{k-\ell}-1 \equiv 0(\bmod 101)$ and $2^{k-\ell} \equiv 1(\bmod 101)$. This cannot be true, since $k-\ell \in[1,99]$, but $s=100$ is the smallest positive integer with $2^{s} \equiv 1(\bmod 101)$. Hence $a_{k} \neq a_{\ell}$. We conclude that the numbers $a_{k}$ with $k \in[0,99]$ are a hundred pairwise different numbers from the set $[1,100]$, hence they are a permutation of the set $[1,100]$ as it was required. 2nd Solution: Definition: Let $p$ be a prime. Consider an $n \times n$ square grid of elements $a_{i, j} \in \mathbb{F}_{p}^{*}$ (for $i, j=1, \ldots, n$ ), which are not necessarily distinct. We call it rooky, if all its German products are equal as elements in $\mathbb{F}_{p}^{*}$. We will provide a classification of all rooky square grids. Of course, most of this is not necessary when writing down a solution to the given problem, but it may still be interesting... Lemma: A square grid is rooky if and only if for all $i, j, k, \ell$ : $$ a_{i, j} \cdot a_{k, \ell}=a_{i, \ell} \cdot a_{k, j} $$ Proof. If we swap the rows of two cells in a German set and keep their columns, it turns one valid German set into another. When comparing their German products, we can ignore all $n-2$ labels of cells that were not moved. The remaining values are $a_{i, j} \cdot a_{k, \ell}$ resp. $a_{i, \ell} \cdot a_{k, j}$ for certain $i, j, k, \ell$. This gives equality (1) for rooky square grids. Conversely assume that (1) holds. Then we have to compare two arbitrary German products. But they can transformed into each other by a sequence of several swaps of two cells. Due to (1) the German product does not change at any of these steps, so the rook products of the original configurations are the same as well. Lemma: A rooky square grid is uniquely determined by the elements of its first row and first column. Proof. Indeed the previous lemma implies that $$ a_{i, j} \cdot a_{1,1}=a_{i, 1} \cdot a_{1, j} $$ which determines $a_{i, j}$ uniquely because $a_{1,1}$ is a unit. One can actually prove directly that the square grid obtained that way is rooky, but it is simpler to continue directly to Proposition: Let $\lambda_{i} \in \mathbb{F}_{p}^{*}(i=1, \ldots, n)$ and $\mu_{j} \in \mathbb{F}_{p}^{*}(j=1, \ldots, n)$ arbitrary elements. Then the square grid with $$ a_{i, j}=\lambda_{i} \cdot \mu_{j} $$ is rooky. Moreover any rooky square grid can be obtained this way. Proof. The square grid with $a_{i, j}=\lambda_{i} \cdot \mu_{j}$ is rooky, because any German product has the value $$ \prod_{i} \lambda_{i} \cdot \prod_{j} \mu_{j} . $$ ## B ALTIC
Way
FLENSBURG 2023 Let us prove the converse: By the previous lemma, it suffices to find $\lambda_{i} \mathrm{~s}$ and $\mu_{j} \mathrm{~s}$ that recreate the values of the first row and column. For this simply set $\lambda_{i}=a_{i, 1}$ and $\mu_{j}=\frac{a_{1, j}}{a_{1,1}}$. Proposition: For any prime $p>n^{2}$, there exists a rooky square grid with only distinct elements. Proof. Choose any primitive root $\alpha \in \mathbb{F}_{p}^{*}$. Then set $\lambda_{i}=\alpha^{i-1}, \mu_{j}=\alpha^{n \cdot(j-1)}$ and $a_{i, j}=\lambda_{i} \cdot \mu_{j}=\alpha^{i-1+n \cdot(j-1)}$. This provides indeed a rooky square grid. The values in the square are $\alpha^{0}, \alpha^{1}, \ldots, \alpha^{n^{2}-1}$. As we have chosen a primitive root, these are all distinct. For $n=10, p=101$ and $\alpha=2$, this reproduces exactly the construction given in the previous solution.