diff --git a/BalticWay/download_script/download.py b/BalticWay/download_script/download.py new file mode 100644 index 0000000000000000000000000000000000000000..2b9716287de661a8e4efe2b337ee0a675957eeb5 --- /dev/null +++ b/BalticWay/download_script/download.py @@ -0,0 +1,81 @@ +# ----------------------------------------------------------------------------- +# Author: Jiawei Liu +# Date: 2024-11-22 +# ----------------------------------------------------------------------------- +''' +To run: +`python BalticWay/download_script/download.py` +''' + +import requests +from requests.adapters import HTTPAdapter +from tqdm import tqdm +from bs4 import BeautifulSoup +from urllib.parse import urljoin +from urllib3.util.retry import Retry +from pathlib import Path + + +def build_session( + max_retries: int = 3, + backoff_factor: int = 2, + session: requests.Session = None +) -> requests.Session: + """ + Build a requests session with retries + + Args: + max_retries (int, optional): Number of retries. Defaults to 3. + backoff_factor (int, optional): Backoff factor. Defaults to 2. + session (requests.Session, optional): Session object. Defaults to None. + """ + session = session or requests.Session() + adapter = HTTPAdapter(max_retries=Retry(total=max_retries, backoff_factor=backoff_factor)) + session.mount("http://", adapter) + session.mount("https://", adapter) + session.headers.update({ + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" + }) + + return session + + +def main(): + base_url = "https://www.math.olympiaadid.ut.ee/eng/html/?id=bw" + + output_dir = Path(__file__).parent.parent / "raw" + output_dir.mkdir(parents=True, exist_ok=True) + + req_session = build_session() + + resp = req_session.get(base_url) + soup = BeautifulSoup(resp.text, "html.parser") + + year_list_eles = soup.find("td", class_="leht").find_all("a", class_="siseviit") + + for year_ele in tqdm(year_list_eles): + problem_with_solution_link_ele = year_ele.find(lambda tag: tag.name == "a" and "solutions:" in tag.parent.text.lower()) + problem_link_ele = year_ele.find(lambda tag: tag.name == "a" and "problems:" in tag.parent.text.lower()) + + if problem_with_solution_link_ele: + pdf_url = urljoin(base_url, problem_with_solution_link_ele["href"]) + elif problem_link_ele: + pdf_url = urljoin(base_url, problem_link_ele["href"]) + else: + continue + + output_file = output_dir / f"en-{pdf_url.split('/')[-1]}" + if output_file.exists(): + continue + + resp = req_session.get(pdf_url) + + if resp.status_code != 200: + print(f"Failed to download {pdf_url}") + continue + + output_file.write_bytes(resp.content) + + +if __name__ == "__main__": + main() diff --git a/BalticWay/md/en-bw00sol.md b/BalticWay/md/en-bw00sol.md new file mode 100644 index 0000000000000000000000000000000000000000..6515be55ee4c3d85380763ef33991e81064614cc --- /dev/null +++ b/BalticWay/md/en-bw00sol.md @@ -0,0 +1,388 @@ +# Baltic Way 2000 + +## Oslo, November 4, 2000 + +## Problems + +1. Let $K$ be a point inside the triangle $A B C$. Let $M$ and $N$ be points such that $M$ and $K$ are on opposite sides of the line $A B$, and $N$ and $K$ are on opposite sides of the line $B C$. Assume that + +$$ +\angle M A B=\angle M B A=\angle N B C=\angle N C B=\angle K A C=\angle K C A . +$$ + +Show that $M B N K$ is a parallelogram. + +2. Given an isosceles triangle $A B C$ with $\angle A=90^{\circ}$. Let $M$ be the midpoint of $A B$. The line passing through $A$ and perpendicular to $C M$ intersects the side $B C$ at $P$. Prove that $\angle A M C=\angle B M P$. +3. Given a triangle $A B C$ with $\angle A=90^{\circ}$ and $|A B| \neq|A C|$. The points $D, E, F$ lie on the sides $B C, C A, A B$, respectively, in such a way that $A F D E$ is a square. Prove that the line $B C$, the line $F E$ and the line tangent at the point $A$ to the circumcircle of the triangle $A B C$ intersect in one point. +4. Given a triangle $A B C$ with $\angle A=120^{\circ}$. The points $K$ and $L$ lie on the sides $A B$ and $A C$, respectively. Let $B K P$ and $C L Q$ be equilateral triangles constructed outside the triangle $A B C$. Prove that + +$$ +|P Q| \geqslant \frac{\sqrt{3}}{2} \cdot(|A B|+|A C|) . +$$ + +5. Let $A B C$ be a triangle such that $\frac{|B C|}{|A B|-|B C|}=\frac{|A B|+|B C|}{|A C|}$. Determine the ratio $\angle A: \angle C$. +6. Fredek runs a private hotel. He claims that whenever $n \geqslant 3$ guests visit the hotel, it is possible to select two guests who have equally many acquaintances among the other guests, and who also have a common acquaintance or a common unknown among the guests. For which values of $n$ is Fredek right? + +(Acquaintance is a symmetric relation.) + +7. In a $40 \times 50$ array of control buttons, each button has two states: $\mathrm{ON}$ and OFF. By touching a button, its state and the states of all buttons in the same row and in the same column are switched. Prove that the array of control buttons may be altered from the all-OFF state to the all-ON state by touching buttons successively, and determine the least number of touches needed to do so. +8. Fourteen friends met at a party. One of them, Fredek, wanted to go to bed early. He said goodbye to 10 of his friends, forgot about the remaining 3 , and went to bed. After a while he returned to the party, said goodbye to 10 of his friends (not necessarily the same as before), and went to bed. Later Fredek came back a number of times, each time saying goodbye to exactly 10 of his friends, and then went back to bed. As soon as he had said goodbye to each of his friends at least once, he did not come back again. In the morning Fredek realised that he had said goodbye a different number of times to each of his thirteen friends! What is the smallest possible number of times that Fredek returned to the party? +9. There is a frog jumping on a $2 k \times 2 k$ chessboard, composed of unit squares. The frog's jumps are of length $\sqrt{1+k^{2}}$ and they carry the frog from the center of a square to the center of another square. Some $m$ squares of the board are marked with an $x$, and all the squares into which the frog can jump from an $x$ 'd square (whether they carry an $x$ or not) are marked with an $\circ$. There are $n \circ$ 'd squares. Prove that $n \geqslant m$. +10. Two positive integers are written on the blackboard. Initially, one of them is 2000 and the other is smaller than 2000. If the arithmetic mean $m$ of the two numbers on the blackboard is an integer, the following operation is allowed: one of the two numbers is erased and replaced by $m$. Prove that this operation cannot be performed more than ten times. Give an example where the operation can be performed ten times. +11. A sequence of positive integers $a_{1}, a_{2}, \ldots$ is such that for each $m$ and $n$ the following holds: if $m$ is a divisor of $n$ and $mk, \\ (i-1, j-k) & \text { for } i \text { even and } j>k\end{cases} +$$ + +It is easy to see that $f$ is one-to-one. Let $X \subset L$ be the set of $\times^{\prime} \mathrm{d}$ squares and $O \subset L$ the set of o'd squares. Since the distance from $(i, j)$ to +$(i \pm 1, j \pm k)$ is $\sqrt{1+k^{2}}$, we have $f(i, j) \in O$ for every $(i, j) \in X$. Now, since $f$ is one-to-one, the number of elements in $f(S)$ is the same as the number of elements in $S$. As $f(X) \subset O$, the number of elements in $X$ is at most the number of elements in $O$, or $m \leqslant n$. + +10. Each time the operation is performed, the difference between the two numbers on the blackboard will become one half of its previous value (regardless of which number was erased). The mean value of two integers is an integer if and only if their difference is an even number. Suppose the initial numbers were $a=2000$ and $b$. It follows that the operation can be performed $n$ times if and only if $a-b$ is of the form $2^{n} u$. This shows that $n \leqslant 10$ since $2^{11}>2000$. Choosing $b=976$ so that $a-b=1024=2^{10}$, the operation can be performed 10 times. +11. Answer: 128. + +Let $d$ denote the least possible value of $a_{2000}$. We shall prove that $d=128$. + +Clearly the sequence defined by $a_{1}=1$ and $a_{n}=2^{\alpha_{1}+\alpha_{2}+\cdots+\alpha_{k}}$ for $n=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \cdots \cdots p_{k}^{\alpha_{k}}$ has the required property. Since $2000=2^{4} \cdot 5^{3}$, we have $a_{2000}=2^{4+3}=128$ and therefore $d \leqslant 128$. + +Note that in the sequence $1<5<25<125<250<500<1000<2000$ each term is divisible by the previous one. As $a_{1} \geqslant 1$ it follows that + +$$ +a_{2000} \geqslant 2 \cdot a_{1000} \geqslant 2^{2} \cdot a_{500} \geqslant 2^{3} \cdot a_{250} \geqslant \ldots \geqslant 2^{7} \cdot a_{1} \geqslant 2^{7}=128 . +$$ + +12. Let $\left\{y_{1}, \ldots, y_{k}\right\} \subset\left\{x_{1}, \ldots, x_{n}\right\}$ be a subset of numbers with the maximal number of digits, and differing from one another only by their last digits: $y_{1}=\overline{y \alpha_{1}}, y_{2}=\overline{y \alpha_{2}}, \ldots, y_{k}=\overline{y \alpha_{k}}$ (here $\overline{y \alpha_{i}}$ denotes the number consisting of $y$ as its initial fragment and $\alpha_{i}$ as its last digit). Then we have + +$$ +\frac{1}{y_{1}}+\ldots+\frac{1}{y_{k}} \leqslant \frac{1}{\overline{y 0}}+\ldots+\frac{1}{\overline{y 9}}<10 \cdot \frac{1}{\overline{y 0}}=\frac{1}{y} +$$ + +Let's replace all numbers $y_{1}, y_{2}, \ldots, y_{k}$ by a single $y$ in the set $\left\{x_{1}, \ldots, x_{n}\right\}$. Then the obtained set of numbers still has the property mentioned in the statement of the problem, and the sum of their reciprocals does not decrease. Continuing to reduce the given set of numbers in the same way, we finally obtain + +$$ +\frac{1}{x_{1}}+\frac{1}{x_{2}}+\cdots+\frac{1}{x_{n}} \leqslant \frac{1}{1}+\frac{1}{2}+\ldots+\frac{1}{9}<3 +$$ + +13. Assume $a_{i}=k+d i$ for $i=1,2, \ldots, n$. Then $k$ is a multiple of every $i \in\{1,2, \ldots, n-1\}$ but not a multiple of $n$. If $n=a b$ with $a, b>1$ and $\operatorname{gcd}(a, b)=1$, then $k$ is divisible by both $a$ and $b$, but not by $n$, which is a contradiction. Hence, $n$ has only one prime factor. +14. Answer: 2000 is the only such integer. + +Let $d(n)$ denote the number of positive divisors of $n$ and $p \triangleright n$ denote the exponent of the prime $p$ in the canonical representation of $n$. Let $\delta(n)=\frac{n}{d(n)}$. Using this notation, the problem reformulates as follows: Find all positive integers $n$ such that $\delta(n)=100$. + +Lemma: Let $n$ be an integer and $m$ its proper divisor. Then $\delta(m) \leqslant \delta(n)$ and the equality holds if and only if $m$ is odd and $n=2 m$. + +Proof. Let $n=m p$ for a prime $p$. By the well-known formula + +$$ +d(n)=\prod_{p}(1+p \triangleright n) +$$ + +we have + +$$ +\frac{\delta(n)}{\delta(m)}=\frac{n}{m} \cdot \frac{d(m)}{d(n)}=p \cdot \frac{1+p \triangleright m}{1+p \triangleright n}=p \cdot \frac{p \triangleright n}{1+p \triangleright n} \geqslant 2 \cdot \frac{1}{2}=1, +$$ + +hence $\delta(m) \leqslant \delta(n)$. It is also clear that equality holds if and only if $p=2$ and $p \triangleright n=1$, i.e. $m$ is odd and $n=2 m$. + +For the general case $n=m s$ where $s>1$ is an arbitrary positive integer, represent $s$ as a product of primes. By elementary induction on the number of factors in the representation we prove $\delta(m) \leqslant \delta(n)$. The equality can hold only if all factors are equal to 2 and the number $m$ as well as any intermediate result of multiplying it by these factors is odd, i.e. the representation of $s$ consists of a single prime 2, which gives $n=2 m$. This proves the lemma. + +Now assume that $\delta(n)=100$ for some $n$, i.e. $n=100 \cdot d(n)=2^{2} \cdot 5^{2} \cdot d(n)$. In the following, we estimate the exponents of primes in the canonical representation of $n$, using the fact that 100 is a divisor of $n$. + +(1) Observe that $\delta\left(2^{7} \cdot 5^{2}\right)=\frac{2^{5} \cdot 100}{8 \cdot 3}=\frac{3200}{24}>100$. Hence $2 \triangleright n \leqslant 6$, since otherwise $2^{7} \cdot 5^{2}$ divides $n$ and, by the lemma, $\delta(n)>100$. + +(2) Observe that $\delta\left(2^{2} \cdot 5^{4}\right)=\frac{5^{2} \cdot 100}{3 \cdot 5}=\frac{2500}{15}>100$. Hence $5 \triangleright n \leqslant 3$, since otherwise $2^{2} \cdot 5^{4}$ divides $n$ and, by the lemma, $\delta(n)>100$. + +(3) Observe that $\delta\left(2^{2} \cdot 5^{2} \cdot 3^{4}\right)=\frac{3^{4} \cdot 100}{3 \cdot 3 \cdot 5}=\frac{8100}{45}>100$. Hence $3 \triangleright n \leqslant 3$, since otherwise $2^{2} \cdot 5^{2} \cdot 3^{4}$ divides $n$ and, by the lemma, $\delta(n)>100$. + +(4) Take a prime $q>5$ and an integer $k \geqslant 4$. Then + +$$ +\begin{aligned} +\delta\left(2^{2} \cdot 5^{2} \cdot q^{k}\right) & =\frac{2^{2} \cdot 5^{2} \cdot q^{k}}{d\left(2^{2} \cdot 5^{2} \cdot q^{k}\right)}=\frac{2^{2} \cdot 5^{2} \cdot q^{k}}{d\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)}>\frac{2^{2} \cdot 5^{2} \cdot 3^{k}}{d\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)}= \\ +& =\delta\left(2^{2} \cdot 5^{2} \cdot 3^{k}\right)>100 . +\end{aligned} +$$ + +Hence, similarly to the previous cases, we get $q \triangleright n \leqslant 3$. + +(5) If a prime $q>7$ divides $n$, then $q$ divides $d(n)$. Thus $q$ divides $1+p \triangleright n$ for some prime $p$. But this is impossible because, as the previous cases showed, $p \triangleright n \leqslant 6$ for all $p$. So $n$ is not divisible by primes greater than 7 . + +(6) If 7 divides $n$, then 7 divides $d(n)$ and hence divides $1+p \triangleright n$ for some prime $p$. By (1)-(4), this implies $p=2$ and $2 \triangleright n=6$. At the same time, if $2 \triangleright n=6$, then 7 divides $d(n)$ and $n$. So 7 divides $n$ if and only if $2 \triangleright n=6$. Since $\delta\left(2^{6} \cdot 5^{2} \cdot 7\right)=\frac{2^{4} \cdot 7 \cdot 100}{7 \cdot 3 \cdot 2}=\frac{11200}{42}>100$, both of these conditions cannot hold simultaneously. So $n$ is not divisible by 7 and $2 \triangleright n \leqslant 5$. + +(7) If $5 \triangleright n=3$, then 5 divides $d(n)$ and hence divides $1+p \triangleright n$ for some prime $p$. By (1)-(4), this implies $p=2$ and $2 \triangleright n=4$. At the same time, if $2 \triangleright n=4$, then 5 divides $d(n), 5^{3}$ divides $n$ and, by (2), $5 \triangleright n=3$. So $5 \triangleright n=3$ if and only if $2 \triangleright n=4$. Since $\delta\left(2^{4} \cdot 5^{3}\right)=\frac{2^{2} \cdot 5 \cdot 100}{5 \cdot 4}=100$, we find that $n=2^{4} \cdot 5^{3}=2000$ satisfies the required condition. On the other hand, if $2 \triangleright n=4$ and $5 \triangleright n=3$ for some $n \neq 2000$, then $n=2000 s$ for some $s>1$ and, by the lemma, $\delta(n)>100$. + +(8) The case $5 \triangleright n=2$ has remained. By (7), we have $2 \triangleright n \neq 4$, so $2 \triangleright n \in\{2,3,5\}$. The condition $5 \triangleright n=2$ implies that 3 divides $d(n)$ and $n$, thus $3 \triangleright n \in\{1,2,3\}$. If $2 \triangleright n=3$, then $d(n)$ is divisible by 2 but not by 4 . At the same time $2 \triangleright n=3$ implies $3+1=4$ divides $d(n)$, a contradiction. Thus $2 \triangleright n \in\{2,5\}$, and $3^{2}$ divides $d(n)$ and $n$, i.e. +$3 \triangleright n \in\{2,3\}$. Now $3 \triangleright n=2$ would imply that $3^{3}$ divides $d(n)$ and $n$, a contradiction; on the other hand $3 \triangleright n=3$ would imply $3 \triangleright d(n)=2$ and hence $3 \triangleright n=2$, a contradiction. + +15. Note that $n$ must be congruent to 1 or 5 modulo 6 , and proceed by induction on $\lfloor n / 6\rfloor$. It can easily be checked that the assertion holds for $n \in\{1,5\}$. Let $n>6$, and put $t=k^{2}+k+1$. The claim follows by: + +$$ +\begin{aligned} +(k+1)^{n}-k^{n}-1 & =(t+k)(k+1)^{n-2}-(t-(k+1)) k^{n-2}-1 \\ +& \equiv k(k+1)^{n-2}+(k+1) k^{n-2}-1 \\ +& \equiv(t-1)\left((k+1)^{n-3}+k^{n-3}\right)-1 \\ +& \equiv-(k+1)^{n-3}-k^{n-3}-1 \\ +& \equiv-(t+k)(k+1)^{n-5}-(t-(k+1)) k^{n-5}-1 \\ +& \equiv-k(k+1)^{n-5}+(k+1) k^{n-5}-1 \\ +& \equiv-(t-1)\left((k+1)^{n-6}-k^{n-6}\right)-1 \\ +& \equiv(k+1)^{n-6}-k^{n-6}-1(\bmod t) . +\end{aligned} +$$ + +Alternative solution. Let $P(k)=(k+1)^{n}-k^{n}-1$, and let $\omega_{1}, \omega_{2}$ be the two roots of the quadratic polynomial $k^{2}+k+1$. The problem is then equivalent to showing that $P\left(\omega_{1}\right)=P\left(\omega_{2}\right)=0$ when $\operatorname{gcd}(n, 6)=1$, which is easy to check. + +![](https://cdn.mathpix.com/cropped/2024_04_17_8c3840558e5986866c27g-12.jpg?height=379&width=482&top_left_y=1235&top_left_x=308) + +Figure 7 + +16. If $|O A|=a,|O B|=b,|O C|=c$ (see Figure 7), then the inequality follows from $|A C| \leqslant|A B|+|B C|$ by applying the cosine theorem to triangles $A O B$, +$B O C$ and $A O C$. The same argument holds if the quadrangle $O A B C$ is concave. +17. Answer: $x=\frac{1 \pm \sqrt{2}}{2}, y=2, z=\frac{1 \mp \sqrt{2}}{2}, t=2$ or $x=2, y=\frac{1 \pm \sqrt{2}}{2}$, $z=2, t=\frac{1 \mp \sqrt{2}}{2}$. + +Let $A=x+z$ and $B=y+t$. Then the system of equations is equivalent to + +$$ +\left\{\begin{aligned} +A+B & =5 \\ +A B & =4 \\ +B x z+A y t & =3 \\ +(B x z) \cdot(A y t) & =-4 . +\end{aligned}\right. +$$ + +The first two of these equations imply $\{A, B\}=\{1,4\}$ and the last two give $\{B x z, A y t\}=\{-1,4\}$. Once $A=x+z, B=y+t, B x z$ and Ayt are known, it is easy to find the corresponding values of $x, y, z$ and $t$. The solutions are shown in the following table. + +| $A$ | $B$ | Bxz | Ayt | $x, z$ | $y, t$ | +| :---: | :---: | :---: | :---: | :---: | :---: | +| 1 | 4 | -1 | 4 | $\frac{1 \pm \sqrt{2}}{2}$ | 2 | +| 1 | 4 | 4 | -1 | - | - | +| 4 | 1 | -1 | 4 | - | - | +| 4 | 1 | 4 | -1 | 2 | $\frac{1 \pm \sqrt{2}}{2}$ | + +18. Answer: $x=y=1+\sqrt{2}$. + +Note that + +$$ +x+\frac{1}{x}+2-2 \sqrt{2 x+1}=\frac{x^{2}+2 x+1-2 x \sqrt{2 x+1}}{x}=\frac{1}{x}(x-\sqrt{2 x+1})^{2} . +$$ + +Hence the original equation can be rewritten as + +$$ +\frac{1}{x}(x-\sqrt{2 x+1})^{2}+\frac{1}{y}(y-\sqrt{2 y+1})^{2}=0 . +$$ + +For $x, y>0$ this gives $x-\sqrt{2 x+1}=0$ and $y-\sqrt{2 y+1}$. It follows that the only solution is $x=y=1+\sqrt{2}$. + +19. Use induction. For $n=1$ the inequality reads $t^{2} \geqslant(t-1)^{2}+(2 t-1)$ which is obviously true. To prove the induction step it suffices to show that + +$$ +t^{2}(t-1)^{2 n}+t^{2}(2 t-1)^{n} \geqslant(t-1)^{2 n+2}+(2 t-1)^{n+1} +$$ + +This easily follows from $t^{2} \geqslant(t-1)^{2}$ (which is true for $t \geqslant \frac{1}{2}$ ) and $t^{2} \geqslant 2 t-1$ (which is true for any real $t$ ). + +Alternative solution. Note that + +$$ +t^{2 n}=\left(t^{2}\right)^{n}=\left((t-1)^{2}+(2 t-1)\right)^{n} . +$$ + +Applying the binomial formula to the right-hand side we obtain a sum containing both summands of the right-hand side of the given equality and other summands each of which is clearly non-negative. + +20. Squaring both sides of the given equality and applying $x(x+2) \leqslant(x+1)^{2}$ to the numerator of the obtained fraction and cancelling we have + +$$ +x_{n}^{2} \leqslant \frac{(2 n+1) \cdot(4 n+1)}{(2 n)^{2}}<2+\frac{2}{n} . +$$ + +Similarly (applying $x(x+2) \leqslant(x+1)^{2}$ to the denominator and cancelling) we get + +$$ +x_{n}^{2} \geqslant \frac{(4 n+1)^{2}}{2 n \cdot 4 n}>2+\frac{1}{n} +$$ + +Hence + +$$ +\frac{1}{n}\sqrt{2}$ and $x_{n}<2$. The result then follows from the second chain of inequalities. + +Comment. These inequalities can easily be improved. For example, the inequalities in the solution involving $x_{n}^{2}$ can immediately be replaced by $\frac{3}{2 n}1, b>1$ with $d=\operatorname{gcd}(a, b)$, we have + +$$ +f(a b)=f(d) \cdot\left(f\left(\frac{a}{d}\right)+f\left(\frac{b}{d}\right)\right), +$$ + +Determine all possible values of $f(2001)$. + +12. Let $a_{1}, a_{2}, \ldots, a_{n}$ be positive real numbers such that $\sum_{i=1}^{n} a_{i}^{3}=3$ and $\sum_{i=1}^{n} a_{i}^{5}=5$. Prove that $\sum_{i=1}^{n} a_{i}>\frac{3}{2}$. +13. Let $a_{0}, a_{1}, a_{2}, \ldots$ be a sequence of real numbers satisfying $a_{0}=1$ and $a_{n}=a_{\lfloor 7 n / 9\rfloor}+a_{\lfloor n / 9\rfloor}$ for $n=1,2, \ldots$ Prove that there exists a positive integer $k$ with $a_{k}<\frac{k}{2001 !}$. + +(Here $\lfloor x\rfloor$ denotes the largest integer not greater than $x$.) + +14. There are $2 n$ cards. On each card some real number $x, 1 \leqslant x \leqslant 2$, is written (there can be different numbers on different cards). Prove that +the cards can be divided into two heaps with sums $s_{1}$ and $s_{2}$ so that $\frac{n}{n+1} \leqslant \frac{s_{1}}{s_{2}} \leqslant 1$. +15. Let $a_{0}, a_{1}, a_{2}, \ldots$ be a sequence of positive real numbers satisfying $i \cdot a_{i}^{2} \geqslant(i+1) \cdot a_{i-1} a_{i+1}$ for $i=1,2, \ldots$ Furthermore, let $x$ and $y$ be positive reals, and let $b_{i}=x a_{i}+y a_{i-1}$ for $i=1,2, \ldots$ Prove that the inequality $i \cdot b_{i}^{2}>(i+1) \cdot b_{i-1} b_{i+1}$ holds for all integers $i \geqslant 2$. +16. Let $f$ be a real-valued function defined on the positive integers satisfying the following condition: For all $n>1$ there exists a prime divisor $p$ of $n$ such that + +$$ +f(n)=f\left(\frac{n}{p}\right)-f(p) +$$ + +Given that $f(2001)=1$, what is the value of $f(2002)$ ? + +17. Let $n$ be a positive integer. Prove that at least $2^{n-1}+n$ numbers can be chosen from the set $\left\{1,2,3, \ldots, 2^{n}\right\}$ such that for any two different chosen numbers $x$ and $y, x+y$ is not a divisor of $x \cdot y$. +18. Let $a$ be an odd integer. Prove that $a^{2^{n}}+2^{2^{n}}$ and $a^{2^{m}}+2^{2^{m}}$ are relatively prime for all positive integers $n$ and $m$ with $n \neq m$. +19. What is the smallest positive odd integer having the same number of positive divisors as 360 ? +20. From a sequence of integers $(a, b, c, d)$ each of the sequences + +$$ +(c, d, a, b),(b, a, d, c),(a+n c, b+n d, c, d),(a+n b, b, c+n d, d), +$$ + +for arbitrary integer $n$ can be obtained by one step. Is it possible to obtain $(3,4,5,7)$ from $(1,2,3,4)$ through a sequence of such steps? + +## Solutions + +1. Answer: 8 . + +Denote the problems by $A, B, C, D, E, F, G, H$, then 8 possible problem sets are $A B C, A D E, A F G, B D G, B F H, C D H, C E F, E G H$. Hence, there could be 8 students. + +Suppose that some problem (e.g., $A$ ) was given to 4 students. Then each of these 4 students should receive 2 different "supplementary" problems, and there should be at least 9 problems - a contradiction. Therefore each problem was given to at most 3 students, and there were at most $8 \cdot 3=24$ "awardings" of problems. As each student was "awarded" 3 problems, there were at most 8 students. + +2. Answer: yes. + +Let $A_{1}$ be the set of positive integers whose only non-zero digits may be the 1 -st, the $(n+1)$-st, the $(2 n+1)$-st etc. from the end; $A_{2}$ be the set of positive integers whose only non-zero digits may be the 2 -nd, the $(n+2)$ nd, the $(2 n+2)$-nd etc. from the end, and so on. The sets $A_{1}, A_{2}, \ldots, A_{n}$ have the required property. + +Remark. This problem is quite similar to problem 18 from Baltic Way 1997. + +3. Answer: no. + +If this were possible, then $2 \cdot(1+\ldots+49)=A+B=2 B$. But $B$ is even since it is the sum of even numbers, whereas $1+\ldots+49=25 \cdot 49$ is odd. This is a contradiction. + +4. The line $y=\frac{p}{q} x$ contains the diagonal of the rectangle with vertices $(0,0)$, $(q, 0),(q, p)$ and $(0, p)$ and passes through no points with integer coordinates in the interior of that rectangle. For $k=1,2, \ldots, q-1$ the summand $\left\lfloor\frac{k p}{q}\right\rfloor$ counts the number of interior points of the rectangle lying below the diagonal $y=\frac{p}{q} x$ and having $x$-coordinate equal to $k$. Therefore the sum in consideration counts all interior points with integer coordinates below the diagonal, which is exactly half the number of all points with integer coordinates in the interior of the rectangle, i.e. $\frac{1}{2} \cdot(p-1)(q-1)$. + +Remark. The integers $p$ and $q$ need not be primes: in the solution we only used the fact that they are coprime. + +5. Answer: no. + +Let the points be denoted by $1,2, \ldots, 2001$ such that $i, j$ are neighbors if $|i-j|=1$ or $\{i, j\}=\{1,2001\}$. We say that $k$ points form a monochromatic segment of length $k$ if the points are consecutive on the circle and if +they all have the same color. For a coloring $F$ let $d(F)$ be the maximum length of a monochromatic segment. Note that $d\left(F_{n}\right)>1$ for all $n$ since 2001 is odd. If $d\left(F_{1}\right)=2001$ then all points have the same color, hence $F_{1}=F_{2}=F_{3}=\ldots$ and we can choose $n_{0}=1$. Thus, let $1d\left(F_{2}\right)>\ldots>d\left(F_{1000}\right)=2$ which shows that, for all $n<1000, F_{n} \neq F_{n+2}$ and thus 1000 cannot be replaced by 999 . + +It remains to prove (1)-(3). Let $(i+1, \ldots, i+k)$ be a longest monochromatic segment for $F_{n}$ (considering the labels of the points modulo 2001). Then $(i+2, \ldots, i+k-1)$ is a monochromatic segment for $F_{n+1}$ and thus $d\left(F_{n+1}\right) \geqslant d\left(F_{n}\right)-2$. Moreover, if $(i+1, \ldots, i+k)$ is a longest monochromatic segment for $F_{n+1}$ where $k \geqslant 3$, then $(i, \ldots, i+k+1)$ is a monochromatic segment for $F_{n}$. From this and $F_{n+1}>1$ the implications (1) and (2) clearly follow. For proof of (3) note that if $d\left(F_{n}\right) \leqslant 2$ then $F_{n+1}$ is obtained from $F_{n}$ by changing the colour of all points. + +![](https://cdn.mathpix.com/cropped/2024_04_17_2e42d82bdb4a68411fc6g-05.jpg?height=462&width=522&top_left_y=1226&top_left_x=304) + +Figure 1 + +6. The arcs $B C$ and $A E$ are of equal length (see Figure 1). Also, since +$A B \| E C$ and $E D \| A C$, we have $\angle C A B=\angle D E C$ and the $\operatorname{arcs} D C$ and $B C$ are of equal length. Since $P E$ is tangent to $c$ and $|A E|=|D C|$, then $\angle P E A=\angle D B C=\angle Q B C$. As $A B C D$ is inscribed in $c$, we have $\angle Q C B=180^{\circ}-\angle E A B=\angle P A E$. Also, $A B C D$ is an isosceles trapezium, whence $|A E|=|B C|$. So the triangles $A P E$ and $C Q B$ are congruent, and $|Q C|=|P A|$. Now $P A C Q$ is a quadrilateral with a pair of opposite sides equal and parallel. So $P A C Q$ is a parallelogram, and $|P Q|=|A C|$. +7. Let $X$ be the point on segment $A C$ such that $\angle A D X=\angle A K N$, then + +$$ +\angle A X D=\angle A N K=180^{\circ}-\angle A M K +$$ + +(see Figure 2). Triangles $N A K$ and $X A D$ are similar, having two pairs of equal angles, hence $|A X|=\frac{|A N| \cdot|A D|}{|A K|}$. Since triangles $M A K$ and $X C D$ are also similar, we have $|C X|=\frac{|A M| \cdot|C D|}{|A K|}=\frac{|A M| \cdot|A B|}{|A K|}$ and + +$$ +|A M| \cdot|A B|+|A N| \cdot|A D|=(|A X|+|C X|) \cdot|A K|=|A C| \cdot|A K| \text {. } +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_2e42d82bdb4a68411fc6g-06.jpg?height=408&width=783&top_left_y=1031&top_left_x=319) + +Figure 2 + +8. Let $X$ be the point symmetric to $B$ with respect to $A N$, and let $Y$ be the point symmetric to $C$ with respect to $D N$ (see Figure 3 ). Then + +$$ +\angle X N Y=180^{\circ}-2 \cdot\left(180^{\circ}-135^{\circ}\right)=90^{\circ} +$$ + +and $|N X|=|N Y|=\frac{|B C|}{2}$. Therefore, $|X Y|=\frac{|B C|}{\sqrt{2}}$. Moreover, we have + +$$ +\begin{aligned} +& |A X|=|A B| \text { and }|D Y|=|D C| \text {. Consequently, } \\ +& \qquad|A D| \leqslant|A X|+|X Y|+|Y D|=|A B|+\frac{|B C|}{\sqrt{2}}+|D C| . +\end{aligned} +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_2e42d82bdb4a68411fc6g-07.jpg?height=214&width=700&top_left_y=397&top_left_x=255) + +Figure 3 + +9. Answer: the locus of the points $P$ is the union of the diagonals $A C$ and $B D$. + +Let $Q$ be a point such that $P Q C D$ is a parallelogram (see Figure 4). Then $A B Q P$ is also a parallelogram. From the equality $\angle A P D+\angle B P C=180^{\circ}$ it follows that $\angle B Q C+\angle B P C=180^{\circ}$, so the points $B, Q, C, P$ lie on a common circle. Therefore, $\angle P B C=\angle P Q C=\angle P D C$, and since $|B C|=|C D|$, we obtain that $\angle C P B=\angle C P D$ or $\angle C P B+\angle C P D=180^{\circ}$. Hence, the point $P$ lies on the segment $A C$ or on the segment $B D$. +![](https://cdn.mathpix.com/cropped/2024_04_17_2e42d82bdb4a68411fc6g-07.jpg?height=294&width=1076&top_left_y=1062&top_left_x=203) + +Figure 4 + +Conversely, any point $P$ lying on the diagonal $A C$ satisfies the equation $\angle B P C=\angle D P C$. Therefore, $\angle A P D+\angle B P C=180^{\circ}$. Analogously, we show that the last equation holds if the point $P$ lies on the diagonal $B D$. + +10. Answer: $\angle B A C=60^{\circ}, \angle A B C=105^{\circ}$ and $\angle A C B=15^{\circ}$. + +Suppose the line $A D$ meets the circumcircle of triangle $A B C$ at $A$ and $E$ (see Figure 5). Let $M$ be the midpoint of $B C$ and $O$ the circumcentre of triangle $A B C$. Since the arcs $B E$ and $E C$ are equal, then the points $O$, $M, E$ are collinear and $O E$ is perpendicular to $B C$. From the equality +$\angle C D E=\angle A D B=45^{\circ}$ it follows that $\angle A E O=45^{\circ}$. Since $|A O|=|E O|$, we have $\angle A O E=90^{\circ}$ and $A O \| D M$. + +From the equality $|B D| \cdot|C D|=|A D|^{2}$ we obtain $|A D|=|D E|$, which implies that $|O M|=|M E|$. Therefore $|B O|=|B E|$ and also $|B O|=|E O|$. Hence the triangle $B O E$ is equilateral. This gives $\angle B A E=30^{\circ}$, so $\angle B A C=60^{\circ}$. Summing up the angles of the triangle $A B D$ we obtain $\angle A B C=105^{\circ}$ and from this $\angle A C B=15^{\circ}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_2e42d82bdb4a68411fc6g-08.jpg?height=374&width=458&top_left_y=515&top_left_x=316) + +Figure 5 + +11. Answer: 0 and $\frac{1}{2}$. + +Obviously the constant functions $f(n)=0$ and $f(n)=\frac{1}{2}$ provide solutions. + +We show that there are no other solutions. Assume $f(2001) \neq 0$. Since $2001=3 \cdot 667$ and $\operatorname{gcd}(3,667)=1$, then + +$$ +f(2001)=f(1) \cdot(f(3)+f(667)), +$$ + +and $f(1) \neq 0$. Since $\operatorname{gcd}(2001,2001)=2001$ then + +$$ +f\left(2001^{2}\right)=f(2001)(2 \cdot f(1)) \neq 0 . +$$ + +Also $\operatorname{gcd}\left(2001,2001^{3}\right)=2001$, so + +$$ +f\left(2001^{4}\right)=f(2001) \cdot\left(f(1)+f\left(2001^{2}\right)\right)=f(1) f(2001)(1+2 f(2001)) +$$ + +On the other hand, $\operatorname{gcd}\left(2001^{2}, 2001^{2}\right)=2001^{2}$ and + +$$ +f\left(2001^{4}\right)=f\left(2001^{2}\right) \cdot(f(1)+f(1))=2 f(1) f\left(2001^{2}\right)=4 f(1)^{2} f(2001) . +$$ + +So $4 f(1)=1+2 f(2001)$ and $f(2001)=2 f(1)-\frac{1}{2}$. Exactly the same +argument starting from $f\left(2001^{2}\right) \neq 0$ instead of $f(2001)$ shows that $f\left(2001^{2}\right)=2 f(1)-\frac{1}{2}$. So + +$$ +2 f(1)-\frac{1}{2}=2 f(1)\left(2 f(1)-\frac{1}{2}\right) \text {. } +$$ + +Since $2 f(1)-\frac{1}{2}=f(2001) \neq 0$, we have $f(1)=\frac{1}{2}$, which implies $f(2001)=2 f(1)-\frac{1}{2}=\frac{1}{2}$. + +12. By Hölder's inequality, + +$$ +\sum_{i=1}^{n} a^{3}=\sum_{i=1}^{n}\left(a_{i} \cdot a_{i}^{2}\right) \leqslant\left(\sum_{i=1}^{n} a_{i}^{5 / 3}\right)^{3 / 5} \cdot\left(\sum_{i=1}^{n}\left(a_{i}^{2}\right)^{5 / 2}\right)^{2 / 5} . +$$ + +We will show that + +$$ +\sum_{i=1}^{n} a_{i}^{5 / 3} \leqslant\left(\sum_{i=1}^{n} a_{i}\right)^{5 / 3} +$$ + +Let $S=\sum_{i=1}^{n} a_{i}$, then (4) is equivalent to + +$$ +\sum_{i=1}^{n}\left(\frac{a_{i}}{S}\right)^{5 / 3} \leqslant 1=\sum_{i=1}^{n} \frac{a_{i}}{S} +$$ + +which holds since $0<\frac{a_{i}}{S} \leqslant 1$ and $\frac{5}{3}>1$ yield $\left(\frac{a_{i}}{S}\right)^{5 / 3} \leqslant \frac{a_{i}}{S}$. So, + +$$ +\sum_{i=1}^{n} a_{i}^{3} \leqslant\left(\sum_{i=1}^{n} a_{i}\right) \cdot\left(\sum_{i=1}^{n} a_{i}^{5}\right)^{2 / 5} +$$ + +which gives $\sum_{i=1}^{n} a_{i} \geqslant \frac{3}{5^{2 / 5}}>\frac{3}{2}$, since $2^{5}>5^{2}$ and hence $2>5^{2 / 5}$. + +13. Consider the equation + +$$ +\left(\frac{7}{9}\right)^{x}+\left(\frac{1}{9}\right)^{x}=1 . +$$ + +It has a root $\frac{1}{2}<\alpha<1$, because $\sqrt{\frac{7}{9}}+\sqrt{\frac{1}{9}}=\frac{\sqrt{7}+1}{3}>1$ and $\frac{7}{9}+\frac{1}{9}<1$. We will prove that $a_{n} \leqslant M \cdot n^{\alpha}$ for some $M>0-$ since $\frac{n^{\alpha}}{n}$ will be arbitrarily small for large enough $n$, the claim follows from this immediately. We choose $M$ so that the inequality $a_{n} \leqslant M \cdot n^{\alpha}$ holds for $1 \leqslant n \leqslant 8$; since for $n \geqslant 9$ we have $1<[7 n / 9]1+\frac{1}{i}=\frac{i+1}{i} +$$ + +which implies + +$$ +i \cdot y^{2} \cdot a_{i-1}^{2}>(i+1) \cdot y^{2} \cdot a_{i} a_{i-2} . +$$ + +Multiplying (5) and (6), and dividing both sides of the resulting inequality by $i a_{i} a_{i-1}$, we get + +$$ +(i-1) \cdot a_{i} a_{i-1} \geqslant(i+1) \cdot a_{i+1} a_{i-2} . +$$ + +Adding $(i+1) a_{i} a_{i-1}$ to both sides of the last inequality and multiplying both sides of the resulting inequality by $x y$ gives + +$$ +i \cdot 2 x y \cdot a_{i} a_{i-1} \geqslant(i+1) \cdot x y \cdot\left(a_{i+1} a_{i-2}+a_{i} a_{i-1}\right) . +$$ + +Finally, adding up (7), (8) and (9) results in + +$$ +i \cdot\left(x a_{i}+y a_{i-1}\right)^{2}>(i+1) \cdot\left(x a_{i+1}+y a_{i}\right)\left(x a_{i-1}+y a_{i-2}\right) +$$ + +which is equivalent to the claim. + +16. Answer: 2. + +For any prime $p$ we have $f(p)=f(1)-f(p)$ and thus $f(p)=\frac{f(1)}{2}$. If $n$ is a product of two primes $p$ and $q$, then $f(n)=f(p)-f(q)$ or $f(n)=f(q)-f(p)$, so $f(n)=0$. By the same reasoning we find that if $n$ is a product of three primes, then there is a prime $p$ such that + +$$ +f(n)=f\left(\frac{n}{p}\right)-f(p)=-f(p)=-\frac{f(1)}{2} . +$$ + +By simple induction we can show that if $n$ is the product of $k$ primes, then $f(n)=(2-k) \cdot \frac{f(1)}{2}$. In particular, $f(2001)=f(3 \cdot 23 \cdot 29)=1$ so $f(1)=-2$. Therefore, $f(2002)=f(2 \cdot 7 \cdot 11 \cdot 13)=-f(1)=2$. + +17. We choose the numbers $1,3,5, \ldots, 2^{n}-1$ and $2,4,8,16, \ldots, 2^{n}$, i.e. all odd numbers and all powers of 2 . Consider the three possible cases. + +(1) If $x=2 a-1$ and $y=2 b-1$, then $x+y=(2 a-1)+(2 b-1)=2(a+b-1)$ is even and does not divide $x y=(2 a-1)(2 b-1)$ which is odd. + +(2) If $x=2^{k}$ and $y=2^{m}$ where $k(2 b-1)$ is odd and hence does not divide $x y=2^{k}(2 b-1)$ which has $2 b-1$ as its largest odd divisor. + +18. Rewriting $a^{2^{n}}+2^{2^{n}}=a^{2^{n}}-2^{2^{n}}+2 \cdot 2^{2^{n}}$ and making repeated use of the identity + +$$ +a^{2^{n}}-2^{2^{n}}=\left(a^{2^{n-1}}-2^{2^{n-1}}\right) \cdot\left(a^{2^{n-1}}+2^{2^{n-1}}\right) +$$ + +we get + +$$ +\begin{gathered} +a^{2^{n}}+2^{2^{n}}=\left(a^{2^{n-1}}+2^{2^{n-1}}\right) \cdot\left(a^{2^{n-2}}+2^{2^{n-2}}\right) \cdot \ldots \cdot\left(a^{2^{m}}+2^{2^{m}}\right) \cdot \ldots \\ +\ldots \cdot\left(a^{2}+2^{2}\right) \cdot(a+2) \cdot(a-2)+2 \cdot 2^{2^{n}} +\end{gathered} +$$ + +For $n>m$, assume that $a^{2^{n}}+2^{2^{n}}$ and $a^{2^{m}}+2^{2^{m}}$ have a common divisor $d>1$. Then an odd integer $d$ divides $2 \cdot 2^{2^{n}}$, a contradiction. + +19. Answer: 31185 . + +An integer with the prime factorization $p_{1}^{r_{1}} \cdot p_{2}^{r_{2}} \cdot \ldots \cdot p_{k}^{r_{k}}$ (where $p_{1}, p_{2}, \ldots$, $p_{k}$ are distinct primes) has precisely $\left(r_{1}+1\right) \cdot\left(r_{2}+1\right) \cdot \ldots \cdot\left(r_{k}+1\right)$ distinct positive divisors. Since $360=2^{3} \cdot 3^{2} \cdot 5$, it follows that 360 has $4 \cdot 3 \cdot 2=24$ positive divisors. Since $24=3 \cdot 2 \cdot 2 \cdot 2$, it is easy to check that the smallest odd number with 24 positive divisors is $3^{2} \cdot 5 \cdot 7 \cdot 11=31185$. + +20. Answer: no. + +Under all transformations $(a, b, c, d) \rightarrow\left(a^{\prime}, b^{\prime}, c^{\prime}, d^{\prime}\right)$ allowed in the problem we have $|a d-b c|=\left|a^{\prime} d^{\prime}-b^{\prime} c^{\prime}\right|$, but $|1 \cdot 4-2 \cdot 3|=2 \neq 1=|3 \cdot 7-4 \cdot 5|$. + +Remark. The transformations allowed in the problem are in fact the elementary transformations of the determinant + +$$ +\left|\begin{array}{ll} +a & b \\ +c & d +\end{array}\right| +$$ + +and the invariant $|a d-b c|$ is the absolute value of the determinant which is preserved under these transformations. + diff --git a/BalticWay/md/en-bw02sol.md b/BalticWay/md/en-bw02sol.md new file mode 100644 index 0000000000000000000000000000000000000000..ab5b0ef0d689d47c8577d91e7280b6ce2111a823 --- /dev/null +++ b/BalticWay/md/en-bw02sol.md @@ -0,0 +1,794 @@ +# Baltic Way 2002 mathematical team contest + +## Tartu, November 2, 2002 + +## Problems and solutions + +1. Solve the system of equations + +$$ +\left\{\begin{array}{l} +a^{3}+3 a b^{2}+3 a c^{2}-6 a b c=1 \\ +b^{3}+3 b a^{2}+3 b c^{2}-6 a b c=1 \\ +c^{3}+3 c a^{2}+3 c b^{2}-6 a b c=1 +\end{array}\right. +$$ + +in real numbers. + +Answer: $a=1, b=1, c=1$. + +Solution. Denoting the left hand sides of the given equations as $A, B$ and $C$, the following equalities can easily be seen to hold: + +$$ +\begin{aligned} +-A+B+C & =(-a+b+c)^{3} \\ +A-B+C & =(a-b+c)^{3} \\ +A+B-C & =(a+b-c)^{3} . +\end{aligned} +$$ + +Hence, the system of equations given in the problem is equivalent to the following one: + +$$ +\left\{\begin{array}{c} +(-a+b+c)^{3}=1 \\ +(a-b+c)^{3}=1 \\ +(a+b-c)^{3}=1 +\end{array}\right. +$$ + +which gives + +$$ +\left\{\begin{array}{c} +-a+b+c=1 \\ +a-b+c=1 \\ +a+b-c=1 +\end{array} .\right. +$$ + +The unique solution of this system is $(a, b, c)=(1,1,1)$. + +2. Let $a, b, c, d$ be real numbers such that + +$$ +\begin{aligned} +a+b+c+d & =-2 \\ +a b+a c+a d+b c+b d+c d & =0 +\end{aligned} +$$ + +Prove that at least one of the numbers $a, b, c, d$ is not greater than -1 . + +Solution. We can assume that $a$ is the least among $a, b, c, d$ (or one of the least, if some of them are equal), there are $n>0$ negative numbers among $a, b, c, d$, and the sum of the positive ones is $x$. + +Then we obtain + +$$ +-2=a+b+c+d \geqslant n a+x . +$$ + +Squaring we get + +$$ +4=a^{2}+b^{2}+c^{2}+d^{2} +$$ + +which implies + +$$ +4 \leqslant n \cdot a^{2}+x^{2} +$$ + +as the square of the sum of positive numbers is not less than the sum of their squares. + +Combining inequalities (1) and (2) we obtain + +$$ +\begin{aligned} +n a^{2}+(n a+2)^{2} & \geqslant 4, \\ +n a^{2}+n^{2} a^{2}+4 n a & \geqslant 0, \\ +a^{2}+n a^{2}+4 a & \geqslant 0 . +\end{aligned} +$$ + +As $n \leqslant 3$ (if all the numbers are negative, the second condition of the problem cannot be satisfied), we obtain from the last inequality that + +$$ +\begin{aligned} +& 4 a^{2}+4 a \geqslant 0, \\ +& a(a+1) \geqslant 0 . +\end{aligned} +$$ + +As $a<0$ it follows that $a \leqslant-1$. + +Alternative solution. Assume that $a, b, c, d>-1$. Denoting $A=a+1, B=b+1, C=c+1, D=d+1$ we have $A, B, C, D>0$. Then the first equation gives + +$$ +A+B+C+D=2 \text {. } +$$ + +We also have + +$$ +a b=(A-1)(B-1)=A B-A-B+1 . +$$ + +Adding 5 similar terms to the last one we get from the second equation + +$$ +A B+A C+A D+B C+B D+C D-3(A+B+C+D)+6=0 . +$$ + +In view of (3) this implies + +$$ +A B+A C+A D+B C+B D+C D=0, +$$ + +a contradiction as all the unknowns $A, B, C, D$ were supposed to be positive. + +Another solution. Assume that the conditions of the problem hold: + +$$ +\begin{aligned} +a+b+c+d & =-2 \\ +a b+a c+a d+b c+b d+c d & =0 . +\end{aligned} +$$ + +Suppose that + +$$ +a, b, c, d>-1 \text {. } +$$ + +If all of $a, b, c, d$ were negative, then (5) could not be satisfied, so at most three of them are negative. If two or less of them were negative, then (6) would imply that the sum of negative numbers, and hence also the sum $a+b+c+d$, is greater than $2 \cdot(-1)=-2$, which contradicts (4). So exactly three of $a, b, c, d$ are negative and one is nonnegative. Let $d$ be the nonnegative one. Then $d=-2-(a+b+c)<-2-(-1-1-1)=1$. Obviously $|a|,|b|,|c|,|d|<1$. Squaring (4) and subtracting 2 times (5), we get + +$$ +a^{2}+b^{2}+c^{2}+d^{2}=4, +$$ + +but + +$$ +a^{2}+b^{2}+c^{2}+d^{2}=|a|^{2}+|b|^{2}+|c|^{2}+|d|^{2}<4, +$$ + +a contradiction. + +3. Find all sequences $a_{0} \leqslant a_{1} \leqslant a_{2} \leqslant \ldots$ of real numbers such that + +$$ +a_{m^{2}+n^{2}}=a_{m}^{2}+a_{n}^{2} +$$ + +for all integers $m, n \geqslant 0$. + +Answer: $a_{n} \equiv 0, a_{n} \equiv \frac{1}{2}$ and $a_{n}=n$. + +Solution. Denoting $f(n)=a_{n}$ we have + +$$ +f\left(m^{2}+n^{2}\right)=f^{2}(m)+f^{2}(n) . +$$ + +Substituting $m=n=0$ into (7) we get $f(0)=2 f^{2}(0)$, hence either $f(0)=\frac{1}{2}$ or $f(0)=0$. We consider these cases separately. + +(1) If $f(0)=\frac{1}{2}$ then substituting $m=1$ and $n=0$ into (7) we obtain $f(1)=f^{2}(1)+\frac{1}{4}$, whence $\left(f(1)-\frac{1}{2}\right)^{2}=0$ and $f(1)=\frac{1}{2}$. Now, + +$$ +\begin{aligned} +& f(2)=f\left(1^{2}+1^{2}\right)=2 f^{2}(1)=\frac{1}{2}, \\ +& f(8)=f\left(2^{2}+2^{2}\right)=2 f^{2}(2)=\frac{1}{2}, +\end{aligned} +$$ + +etc, implying that $f\left(2^{i}\right)=\frac{1}{2}$ for arbitrarily large natural $i$ and, due to monotonity, $f(n)=\frac{1}{2}$ for every natural $n$. + +(2) If $f(0)=0$ then by substituting $m=1, n=0$ into (7) we obtain $f(1)=f^{2}(1)$ and hence, $f(1)=0$ or $f(1)=1$. This gives two subcases. + +(2a) If $f(0)=0$ and $f(1)=0$ then by the same technique as above we see that $f\left(2^{i}\right)=0$ for arbitrarily large natural $i$ and, due to monotonity, $f(n)=0$ for every natural $n$. + +(2b) If $f(0)=0$ and $f(1)=1$ then we compute + +$$ +\begin{aligned} +& f(2)=f\left(1^{2}+1^{2}\right)=2 f^{2}(1)=2, \\ +& f(4)=f\left(2^{2}+0^{2}\right)=f^{2}(2)=4, \\ +& f(5)=f\left(2^{2}+1^{2}\right)=f^{2}(2)+f^{2}(1)=5 . +\end{aligned} +$$ + +Now, + +$$ +f^{2}(3)+f^{2}(4)=f(25)=f^{2}(5)+f^{2}(0)=25, +$$ + +hence $f^{2}(3)=25-16=9$ and $f(3)=3$. Further, + +$$ +\begin{aligned} +f(8) & =f\left(2^{2}+2^{2}\right)=2 f^{2}(2)=8 \\ +f(9) & =f\left(3^{2}+0^{2}\right)=f^{2}(3)=9 \\ +f(10) & =f\left(3^{2}+1^{2}\right)=f^{2}(3)+f^{2}(1)=10 +\end{aligned} +$$ + +From the equalities + +$$ +\begin{aligned} +& f^{2}(6)+f^{2}(8)=f^{2}(10)+f^{2}(0), \\ +& f^{2}(7)+f^{2}(1)=f^{2}(5)+f^{2}(5) +\end{aligned} +$$ + +we also conclude that $f(6)=6$ and $f(7)=7$. It remains to note that + +$$ +\begin{aligned} +& (2 k+1)^{2}+(k-2)^{2}=(2 k-1)^{2}+(k+2)^{2}, \\ +& (2 k+2)^{2}+(k-4)^{2}=(2 k-2)^{2}+(k+4)^{2} +\end{aligned} +$$ + +and by induction it follows that $f(n)=n$ for every natural $n$. + +4. Let $n$ be a positive integer. Prove that + +$$ +\sum_{i=1}^{n} x_{i}\left(1-x_{i}\right)^{2} \leqslant\left(1-\frac{1}{n}\right)^{2} +$$ + +for all nonnegative real numbers $x_{1}, x_{2}, \ldots, x_{n}$ such that $x_{1}+x_{2}+\cdots+x_{n}=1$. + +Solution. Expanding the expressions at both sides we obtain the equivalent inequality + +$$ +-\sum_{i} x_{i}^{3}+2 \sum_{i} x_{i}^{2}-\frac{2}{n}+\frac{1}{n^{2}} \geqslant 0 +$$ + +It is easy to check that the left hand side is equal to + +$$ +\sum_{i}\left(2-\frac{2}{n}-x_{i}\right)\left(x_{i}-\frac{1}{n}\right)^{2} +$$ + +and hence is nonnegative. + +Alternative solution. First note that for $n=1$ the required condition holds trivially, and for $n=2$ we have + +$$ +x(1-x)^{2}+(1-x) x^{2}=x(1-x) \leqslant\left(\frac{x+(1-x)}{2}\right)^{2}=\frac{1}{4}=\left(1-\frac{1}{2}\right)^{2} . +$$ + +So we may further consider the case $n \geqslant 3$. + +Assume first that for each index $i$ the inequality $x_{i}<\frac{2}{3}$ holds. Let $f(x)=x(1-x)^{2}=x-2 x^{2}+x^{3}$, then $f^{\prime \prime}(x)=6 x-4$. Hence, the function $f$ is concave in the interval $\left[0, \frac{2}{3}\right]$. Thus, from Jensen's inequality we have + +$$ +\begin{aligned} +\sum_{i=1}^{n} x_{i}\left(1-x_{i}\right)^{2} & =\sum_{i=1}^{n} f\left(x_{i}\right) \leqslant n \cdot f\left(\frac{x_{1}+\ldots+x_{n}}{n}\right)=n \cdot f\left(\frac{1}{n}\right)= \\ +& =n \cdot \frac{1}{n}\left(1-\frac{1}{n}\right)^{2}=\left(1-\frac{1}{n}\right)^{2} . +\end{aligned} +$$ + +If some $x_{i} \geqslant \frac{2}{3}$ then we have + +$$ +x_{i}\left(1-x_{i}\right)^{2} \leqslant 1 \cdot\left(1-\frac{2}{3}\right)^{2}=\frac{1}{9} +$$ + +For the rest of the terms we have + +$$ +\sum_{j \neq i} x_{j}\left(1-x_{j}\right)^{2} \leqslant \sum_{j \neq i} x_{j}=1-x_{i} \leqslant \frac{1}{3} +$$ + +Hence, + +$$ +\sum_{i=1}^{n} x_{i}\left(1-x_{i}\right)^{2} \leqslant \frac{1}{9}+\frac{1}{3}=\frac{4}{9} \leqslant\left(1-\frac{1}{n}\right)^{2} +$$ + +as $n \geqslant 3$. + +5. Find all pairs $(a, b)$ of positive rational numbers such that + +$$ +\sqrt{a}+\sqrt{b}=\sqrt{2+\sqrt{3}} . +$$ + +Answer: $(a, b)=\left(\frac{1}{2}, \frac{3}{2}\right)$ or $(a, b)=\left(\frac{3}{2}, \frac{1}{2}\right)$. + +Solution. Squaring both sides of the equation gives + +$$ +a+b+2 \sqrt{a b}=2+\sqrt{3} +$$ + +so $2 \sqrt{a b}=r+\sqrt{3}$ for some rational number $r$. Squaring both sides of this gives $4 a b=r^{2}+3+2 r \sqrt{3}$, so $2 r \sqrt{3}$ is rational, which implies $r=0$. Hence $a b=3 / 4$ and substituting this into (8) gives $a+b=2$. Solving for $a$ and $b$ gives $(a, b)=\left(\frac{1}{2}, \frac{3}{2}\right)$ or $(a, b)=\left(\frac{3}{2}, \frac{1}{2}\right)$. + +6. The following solitaire game is played on an $m \times n$ rectangular board, $m, n \geqslant 2$, divided into unit squares. First, a rook is placed on some square. At each move, the rook can be moved an arbitrary number of squares horizontally or vertically, with the extra condition that each move has to be made in the $90^{\circ}$ clockwise direction compared to the previous one (e.g. after a move to the left, the next one has to be done upwards, the next one to the right etc). For which values of $m$ and $n$ is it possible that the rook visits every square of the board exactly once and returns to the first square? (The rook is considered to visit only those squares it stops on, and not the ones it steps over.) + +Answer: $m, n \equiv 0 \bmod 2$. + +Solution. First, consider any row that is not the row where the rook starts from. The rook has to visit all the squares of that row exactly once, and on its tour around the board, every time it visits this row, exactly two squares get visited. Hence, $m$ must be even; a similar argument for the columns shows that $n$ must also be even. + +It remains to prove that for any even $m$ and $n$ such a tour is possible. We will show it by an inductionlike argument. Labelling the squares with pairs of integers $(i, j)$, where $1 \leqslant i \leqslant m$ and $1 \leqslant j \leqslant n$, we start moving from the square $(m / 2+1,1)$ and first cover all the squares of the top and bottom rows in the order shown in the figure below, except for the squares $(m / 2-1, n)$ and $(m / 2+1, n)$; note that we finish on the square $(m / 2-1,1)$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_0d7b2527e7110b7d89ceg-05.jpg?height=363&width=479&top_left_y=1600&top_left_x=363) + +The next square to visit will be $(m / 2-1, n-1)$ and now we will cover the rows numbered 2 and $n-1$, except for the two middle squares in row 2 . Continuing in this way we can visit all the squares except for the two middle squares in every second row (note that here we need the assumption that $m$ and $n$ are even): + +| 3 | 7 | | | 8 | 4 | +| :---: | :---: | :---: | :---: | :---: | :---: | +| 15 | 19 | 11 | 20 | 16 | 12 | +| 23 | 27 | | | 28 | 24 | +| 35 | 39 | 31 | 40 | 36 | 32 | +| 34 | 38 | | | 37 | 33 | +| 22 | 26 | 30 | 21 | 29 | 25 | +| 14 | 18 | | | 17 | 13 | +| 2 | 6 | 10 | 1 | 9 | 5 | + +The rest of the squares can be visited easily: + +| 3 | 7 | 47 | 48 | 8 | 4 | +| :---: | :---: | :---: | :---: | :---: | :---: | +| 15 | 19 | 11 | 20 | 16 | 12 | +| 23 | 27 | 43 | 44 | 28 | 24 | +| 35 | 39 | 31 | 40 | 36 | 32 | +| 34 | 38 | 42 | 41 | 37 | 33 | +| 22 | 26 | 30 | 21 | 29 | 25 | +| 14 | 18 | 46 | 45 | 17 | 13 | +| 2 | 6 | 10 | 1 | 9 | 5 | + +7. We draw $n$ convex quadrilaterals in the plane. They divide the plane into regions (one of the regions is infinite). Determine the maximal possible number of these regions. + +Answer: The maximal number of regions is $4 n^{2}-4 n+2$. + +Solution. One quadrilateral produces two regions. Suppose we have drawn $k$ quadrilaterals $Q_{1}, \ldots, Q_{k}$ and produced $a_{k}$ regions. We draw another quadrilateral $Q_{k+1}$ and try to evaluate the number of regions $a_{k+1}$ now produced. Our task is to make $a_{k+1}$ as large as possible. Note that in a maximal configuration, no vertex of any $Q_{i}$ can be located on the edge of another quadrilateral as otherwise we could move this vertex a little bit to produce an extra region. + +Because of this fact and the convexity of the $Q_{j}$ 's, any one of the four sides of $Q_{k+1}$ meets at most two sides of any $Q_{j}$. So the sides of $Q_{k+1}$ are divided into at most $2 k+1$ segments, each of which potentially grows the number of regions by one (being part of the common boundary of two parts, one of which is counted in $a_{k}$ ). + +But if a side of $Q_{k+1}$ intersects the boundary of each $Q_{j}, 1 \leqslant j \leqslant k$ twice, then its endpoints (vertices of $Q_{k+1}$ ) are in the region outside of all the $Q_{j}$-s, and the the segments meeting at such a vertex are on the boundary of a single new part (recall that it makes no sense to put vertices on edges of another quadrilaterals). This means that $a_{k+1}-a_{k} \leqslant 4(2 k+1)-4=8 k$. By considering squares inscribed in a circle one easily sees that the situation where $a_{k+1}-a_{k}=8 k$ can be reached. + +It remains to determine the expression for the maximal $a_{k}$. Since the difference $a_{k+1}-a_{k}$ is linear in $k, a_{k}$ is a quadratic polynomial in $k$, and $a_{0}=2$. So $a_{k}=A k^{2}+B k+2$. We have $8 k=a_{k+1}-a_{k}=A(2 k+1)+B$ for all $k$. This implies $A=4, B=-4$, and $a_{n}=4 n^{2}-4 n+2$. + +8. Let $P$ be a set of $n \geqslant 3$ points in the plane, no three of which are on a line. How many possibilities are there to choose a set $T$ of $\left(\begin{array}{c}n-1 \\ 2\end{array}\right)$ triangles, whose vertices are all in $P$, such that each triangle in $T$ has a side that is not a side of any other triangle in $T$ ? + +Answer: There is one possibility for $n=3$ and $n$ possibilities for $n \geqslant 4$. + +Solution. For a fixed point $x \in P$, let $T_{x}$ be the set of all triangles with vertices in $P$ which have $x$ as a vertex. Clearly, $\left|T_{x}\right|=\left(\begin{array}{c}n-1 \\ 2\end{array}\right)$, and each triangle in $T_{x}$ has a side which is not a side of any other triangle in $T_{x}$. For any $x, y \in P$ such that $x \neq y$, we have $T_{x} \neq T_{y}$ if and only if $n \geqslant 4$. We will show that any possible set $T$ is equal to $T_{x}$ for some $x \in P$, i.e. that the answer is 1 for $n=3$ and $n$ for $n \geqslant 4$. + +Let + +$$ +T=\left\{t_{i}: i=1,2, \ldots,\left(\begin{array}{c} +n-1 \\ +2 +\end{array}\right)\right\}, \quad S=\left\{s_{i}: i=1,2, \ldots,\left(\begin{array}{c} +n-1 \\ +2 +\end{array}\right)\right\} +$$ + +such that $T$ is a set of triangles whose vertices are all in $P$, and $s_{i}$ is a side of $t_{i}$ but not of any $t_{j}$, $j \neq i$. Furthermore, let $C$ be the collection of all the $\left(\begin{array}{l}n \\ 3\end{array}\right)$ triangles whose vertices are in $P$. Note that + +$$ +|C \backslash T|=\left(\begin{array}{c} +n \\ +3 +\end{array}\right)-\left(\begin{array}{c} +n-1 \\ +2 +\end{array}\right)=\left(\begin{array}{c} +n-1 \\ +3 +\end{array}\right) +$$ + +Let $m$ be the number of pairs $(s, t)$ such that $s \in S$ is a side of $t \in C \backslash T$. Since every $s \in S$ is a side of exactly $n-3$ triangles from $C \backslash T$, we have + +$$ +m=|S| \cdot(n-3)=\left(\begin{array}{c} +n-1 \\ +2 +\end{array}\right) \cdot(n-3)=3 \cdot\left(\begin{array}{c} +n-1 \\ +3 +\end{array}\right)=3 \cdot|C \backslash T| +$$ + +On the other hand, every $t \in C \backslash T$ has at most three sides from $S$. By the above equality, for every $t \in C \backslash T$, all its sides must be in $S$. + +Assume that for $p \in P$ there is a side $s \in S$ such that $p$ is an endpoint of $s$. Then $p$ is also a vertex of each of the $n-3$ triangles in $C \backslash T$ which have $s$ as a side. Consequently, $p$ is an endpoint of $n-2$ sides in $S$. Since every side in $S$ has exactly 2 endpoints, the number of points $p \in P$ which occur as a vertex of some $s \in S$ is + +$$ +\frac{2 \cdot|S|}{n-2}=\frac{2}{n-2} \cdot\left(\begin{array}{c} +n-1 \\ +2 +\end{array}\right)=n-1 +$$ + +Consequently, there is an $x \in P$ which is not an endpoint of any $s \in S$, and hence $T$ must be equal to $T_{x}$. + +9. Two magicians show the following trick. The first magician goes out of the room. The second magician takes a deck of 100 cards labelled by numbers $1,2, \ldots, 100$ and asks three spectators to choose in turn one card each. The second magician sees what card each spectator has taken. Then he adds one more card from the rest of the deck. Spectators shuffle these 4 cards, call the first magician and give him these 4 cards. The first magician looks at the 4 cards and "guesses" what card was chosen by the first spectator, what card by the second and what card by the third. Prove that the magicians can perform this trick. + +Solution. We will identify ourselves with the second magician. Then we need to choose a card in such a manner that another magician will be able to understand which of the 4 cards we have chosen and what information it gives about the order of the other cards. We will reach these two goals independently. + +Let $a, b, c$ be remainders of the labels of the spectators' three cards modulo 5 . There are three possible cases. + +1) All the three remainders coincide. Then choose a card with a remainder not equal to the remainder of spectators' cards. Denote this remainder $d$. + +Note that we now have 2 different remainders, one of them in 3 copies (this will be used by the first magician to distinguish betwwen the three cases). To determine which of the cards is chosen by us is now a simple exercise in division by 5 . But we must also encode the ordering of the spectators' cards. These cards have a natural ordering by their labels, and they are also ordered by their belonging to the spectators. Thus, we have to encode a permutation of 3 elements. There are 6 permutations of 3 elements, let us enumerate them somehow. Then, if we want to inform the first magician that spectators form a permutation number $k$ with respect to the natural ordering, we choose the card number $5 k+d$. + +2) The remainders $a, b, c$ are pairwise different. Then it is clear that exactly one of the following possibilities takes place: + +$$ +\text { either }|b-a|=|a-c| \text {, or }|a-b|=|b-c| \text {, or } \quad|a-c|=|c-b| +$$ + +(the equalities are considered modulo 5). It is not hard to prove it by a case study, but one could also imagine choosing three vertices of a regular pentagon - these vertices always form an isosceles, but not an equilateral triangle. + +Each of these possibilities has one of the remainders distinguished from the other two remainders (these distinguished remainders are $a, b, c$, respectively). Now, choose a card from the rest of the deck having the distinguished remainder modulo 5. Hence, we have three different remainders, one of them distinguished by (9) and presented in two copies. Let $d$ be the distinguished remainder and $s=5 m+d$ be the spectator's card with this remainder. + +Now we have to choose a card $r$ with the remainder $d$ such that the first magician would be able to understand which of the cards $s$ and $r$ was chosen by us and what permutation of spectators it implies. This can be done easily: if we want to inform the first magician that spectators form a permutation number $k$ with respect to the natural ordering, we choose the card number $s+5 k(\bmod 100)$. + +The decoding procedure is easy: if we have two numbers $p$ and $q$ that have the same remainder modulo 5 , calculate $p-q(\bmod 100)$ and $q-p(\bmod 100)$. If $p-q(\bmod 100)>q-p(\bmod 100)$ then $r=q$ is our card and $s=p$ is the spectator's card. (The case $p-q(\bmod 100)=q-p(\bmod 100)$ is impossible since the sum of these numbers is equal to 100 , and one of them is not greater than $6 \cdot 5=30$.) + +3) Two remainders (say, $a$ and $b$ ) coincide. Let us choose a card with the remainder $d=(a+c) / 2 \bmod 5$. Then $|a-d|=|d-c| \bmod 5$, so the remainder $d$ is distinguished by (9). Hence we have three different remainders, one of them distinguished by (9) and one of the non-distinguished remainders presented in two copies. The first magician will easily determine our card, and the rule to choose the card in order to enable him also determine the order of spectators is similar to the one in the 1-st case. + +Alternative solution. This solution gives a non-constructive proof that the trick is possible. For this, we need to show there is an injective mapping from the set of ordered triples to the set of unordered quadruples that additionally respects inclusion. + +To prove that the desired mapping exists, let's consides a bipartite graph such that the set of ordered triples $T$ and the set of unordered quadruples $Q$ form the two disjoint sets of vertices and there is an edge between a triple and a quadruple if and only if the triple is a subset of the quadruple. + +For each triple $t \in T$, we can add any of the remaining 97 cards to it, and thus we have 97 different quadruples connected to each triple in the graph. Conversely, for each quadruple $q \in Q$, we can remove any of the 4 cards from it, and reorder the remaining 3 cards in $3 !=6$ different ways, and thus we have 24 different triples connected to each quadruple in the graph. + +According to the Hall's theorem, a bipartite graph $G=(T, Q, E)$ has a perfect matching if and only if for each subset $T^{\prime} \subseteq T$ the set of neighbours of $T^{\prime}$, denoted $N\left(T^{\prime}\right)$, satisfies $\left|N\left(T^{\prime}\right)\right| \geqslant\left|T^{\prime}\right|$. + +To prove that this condition holds for our graph, consider any subset $T^{\prime} \subseteq T$. Because we have 97 quadruples for each triple, and there can be at most 24 copies of each of them in the multiset of neighbours, we have $\left|N\left(T^{\prime}\right)\right| \geqslant \frac{97}{24}\left|T^{\prime}\right|>4\left|T^{\prime}\right|$, which is even much more than we need. + +Thus, the desired mapping is guaranteed to exist. + +Another solution. Let the three chosen numbers be $\left(x_{1}, x_{2}, x_{3}\right)$. At least one of the sets $\{1,2, \ldots, 24\}$, $\{25,26, \ldots, 48\},\{49,50, \ldots, 72\}$ and $\{73,74, \ldots, 96\}$ should contain none of $x_{1}, x_{2}$ and $x_{3}$, let $S$ be such set. Next we split $S$ into 6 parts: $S=S_{1} \cup S_{2} \cup \ldots \cup S_{6}$ so that 4 first elements of $S$ are in $S_{1}$, four next in $S_{2}$, etc. Now we choose $i \in\{1,2, \ldots, 6\}$ corresponding to the order of numbers $x_{1}, x_{2}$ and $x_{3}$ (if $x_{1}|A B|$ and $|A D|>|A C|$. By the cosine law we have + +$$ +\begin{aligned} +|B D|^{2} & =|A D|^{2}+|A B|^{2}-2|A D \| A B| \cos \angle B A D \\ +& <|A D|^{2}+|A B|^{2}-2|A B|^{2} \cos \angle B A D \\ +& =|A D|^{2}+|A B|^{2}(1-2 \cos \angle B A D) \\ +& \leqslant|A D|^{2} +\end{aligned} +$$ + +since $1 \leqslant 2 \cos (\angle B A D)$. Hence $|B D|<|A D|$. Similarly we get $|C D|<|A D|$. Hence $A$ and $D$ should not be connected which is a contradiction. + +Comment. It would be interesting to know whether 11 can be achieved or the actual bound is lower. + +12. A set $S$ of four distinct points is given in the plane. It is known that for any point $X \in S$ the remaining points can be denoted by $Y, Z$ and $W$ so that + +$$ +|X Y|=|X Z|+|X W| . +$$ + +Prove that all the four points lie on a line. + +Solution. Let $S=\{A, B, C, D\}$ and let $A B$ be the longest of the six segments formed by these four points (if there are several longest segments, choose any of them). If we choose $X=A$ then we must also choose $Y=B$. Indeed, if we would, for example, choose $Y=C$, we should have $|A C|=|A B|+|A D|$ contradicting the maximality of $A B$. Hence we get + +$$ +|A B|=|A C|+|A D| \text {. } +$$ + +Similarly, choosing $X=B$ we must choose $Y=A$ and we obtain + +$$ +|A B|=|B C|+|B D| \text {. } +$$ + +On the other hand, from the triangle inequality we know that + +$$ +\begin{aligned} +& |A B| \leqslant|A C|+|B C|, \\ +& |A B| \leqslant|A D|+|B D|, +\end{aligned} +$$ + +where at least one of the inequalities is strict if all the four points are not on the same line. Hence, adding the two last inequalities we get + +$$ +2|A B|<|A C|+|B C|+|A D|+|B D| . +$$ + +On the other hand, adding (10) and (11) we get + +$$ +2|A B|=|A C|+|A D|+|B C|+|B D|, +$$ + +a contradiction. + +13. Let $A B C$ be an acute triangle with $\angle B A C>\angle B C A$, and let $D$ be a point on side $A C$ such that $|A B|=|B D|$. Furthermore, let $F$ be a point on the circumcircle of triangle $A B C$ such that line $F D$ is perpendicular to side $B C$ and points $F, B$ lie on different sides of line $A C$. Prove that line $F B$ is perpendicular to side $A C$. + +Solution. Let $E$ be the other point on the circumcircle of triangle $A B C$ such that $|A B|=|E B|$. Let $D^{\prime}$ be the point of intersection of side $A C$ and the line perpendicular to side $B C$, passing through $E$. Then $\angle E C B=\angle B C A$ and the triangle $E C D^{\prime}$ is isosceles. As $E D^{\prime} \perp B C$, the triangle $B E D^{\prime}$ is also isosceles and $|B E|=\left|B D^{\prime}\right|$ implying $D=D^{\prime}$. Hence, the points $E, D, F$ lie on one line. We now have + +$$ +\angle E F B+\angle F D A=\angle B C A+\angle E D C=90^{\circ} . +$$ + +The required result now follows. + +![](https://cdn.mathpix.com/cropped/2024_04_17_0d7b2527e7110b7d89ceg-10.jpg?height=591&width=563&top_left_y=270&top_left_x=381) + +14. Let $L, M$ and $N$ be points on sides $A C, A B$ and $B C$ of triangle $A B C$, respectively, such that $B L$ is the bisector of angle $A B C$ and segments $A N, B L$ and $C M$ have a common point. Prove that if $\angle A L B=\angle M N B$ then $\angle L N M=90^{\circ}$. + +Solution. Let $P$ be the intersection point of lines $M N$ and $A C$. Then $\angle P L B=\angle P N B$ and the quadrangle $P L N B$ is cyclic. Let $\omega$ be its circumcircle. It is sufficient to prove that $P L$ is a diameter of $\omega$. + +Let $Q$ denote the second intersection point of the line $A B$ and $\omega$. Then $\angle P Q B=\angle P L B$ and + +$$ +\angle Q P L=\angle Q B L=\angle L B N=\angle L P N +$$ + +and the triangles $P A Q$ and $B A L$ are similar. Therefore, + +$$ +\frac{|P Q|}{|P A|}=\frac{|B L|}{|B A|} +$$ + +We see that the line $P L$ is a bisector of the inscribed angle $N P Q$. Now in order to prove that $P L$ is a diameter of $\omega$ it is sufficient to check that $|P N|=|P Q|$. + +The triangles $N P C$ and $L B C$ are similar, hence + +$$ +\frac{|P N|}{|P C|}=\frac{|B L|}{|B C|} +$$ + +Note also that + +$$ +\frac{|A B|}{|B C|}=\frac{|A L|}{|C L|} +$$ + +by the properties of a bisector. Combining (12), (13) and (14) we have + +$$ +\frac{|P N|}{|P Q|}=\frac{|A L|}{|A P|} \cdot \frac{|C P|}{|C L|} +$$ + +We want to prove that the left hand side of this equality equals 1 . This follows from the fact that the quadruple of points $(P, A, L, C)$ is harmonic, as can be proven using standard methods (e.g. considering the quadrilateral $M B N S$, where $S=M C \cap A N$ ). + +![](https://cdn.mathpix.com/cropped/2024_04_17_0d7b2527e7110b7d89ceg-11.jpg?height=554&width=945&top_left_y=194&top_left_x=381) + +15. A spider and a fly are sitting on a cube. The fly wants to maximize the shortest path to the spider along the surface of the cube. Is it necessarily best for the fly to be at the point opposite to the spider? ("Opposite" means "symmetric with respect to the center of the cube".) + +Answer: no. + +Solution. Suppose that the side of the cube is 1 and the spider sits at the middle of one of the edges. Then the shortest path to the middle of the opposite edge has length 2 . However, if the fly goes to a point on this edge at distance $s$ from the middle, then the length of the shortest path is + +$$ +\min \left(\sqrt{4+s^{2}}, \sqrt{\frac{9}{4}+\left(\frac{3}{2}-s\right)^{2}}\right) . +$$ + +If $01$ such that any prime divisor of $n^{6}-1$ is a divisor of $\left(n^{3}-1\right)\left(n^{2}-1\right)$. + +Solution. Clearly $n=2$ is such an integer. We will show that there are no others. + +Consider the equality + +$$ +n^{6}-1=\left(n^{2}-n+1\right)(n+1)\left(n^{3}-1\right) \text {. } +$$ + +The integer $n^{2}-n+1=n(n-1)+1$ clearly has an odd divisor $p$. Then $p \mid n^{3}+1$. Therefore, $p$ does not divide $n^{3}-1$ and consequently $p \mid n^{2}-1$. This implies that $p$ divides $\left(n^{3}+1\right)+\left(n^{2}-1\right)=n^{2}(n+1)$. As $p$ does not divide $n$, we obtain $p \mid n+1$. Also, $p \mid\left(n^{2}-1\right)-\left(n^{2}-n+1\right)=n-2$. From $p \mid n+1$ and $p \mid n-2$ it follows that $p=3$, so $n^{2}-n+1=3^{r}$ for some positive integer $r$. + +The discriminant of the quadratic $n^{2}-n+\left(1-3^{r}\right)$ must be a square of an integer, hence + +$$ +1-4\left(1-3^{r}\right)=3\left(4 \cdot 3^{r-1}-1\right) +$$ + +must be a squareof an integer. Since for $r \geqslant 2$ the number $4 \cdot 3^{r-1}-1$ is not divisible by 3 , this is possible only if $r=1$. So $n^{2}-n-2=0$ and $n=2$. + +19. Let $n$ be a positive integer. Prove that the equation + +$$ +x+y+\frac{1}{x}+\frac{1}{y}=3 n +$$ + +does not have solutions in positive rational numbers. + +Solution. Suppose $x=\frac{p}{q}$ and $y=\frac{r}{s}$ satisfy the given equation, where $p, q, r, s$ are positive integers and $\operatorname{gcd}(p, q)=1, \operatorname{gcd}(r, s)=1$. We have + +$$ +\frac{p}{q}+\frac{r}{s}+\frac{q}{p}+\frac{s}{r}=3 n +$$ + +or + +$$ +\left(p^{2}+q^{2}\right) r s+\left(r^{2}+s^{2}\right) p q=3 n p q r s, +$$ + +so $r s \mid\left(r^{2}+s^{2}\right) p q$. Since $\operatorname{gcd}(r, s)=1$, we have $\operatorname{gcd}\left(r^{2}+s^{2}, r s\right)=1$ and $r s \mid p q$. Analogously $p q \mid r s$, so $r s=p q$ and hence there are either two or zero integers divisible by 3 among $p, q, r, s$. Now we have + +$$ +\begin{aligned} +\left(p^{2}+q^{2}\right) r s+\left(r^{2}+s^{2}\right) r s & =3 n(r s)^{2} \\ +p^{2}+q^{2}+r^{2}+s^{2} & =3 n r s, +\end{aligned} +$$ + +but $3 n r s \equiv 0(\bmod 3)$ and $p^{2}+q^{2}+r^{2}+s^{2}$ is congruent to either 1 or 2 modulo 3 , a contradiction. + +20. Does there exist an infinite non-constant arithmetic progression, each term of which is of the form $a^{b}$, where $a$ and $b$ are positive integers with $b \geqslant 2$ ? + +Answer: no. + +Solution. For an arithmetic progression $a_{1}, a_{2}, \ldots$ with difference $d$ the following holds: + +$$ +\begin{aligned} +S_{n} & =\frac{1}{a_{1}}+\frac{1}{a_{2}}+\ldots+\frac{1}{a_{n+1}}=\frac{1}{a_{1}}+\frac{1}{a_{1}+d}+\ldots+\frac{1}{a_{1}+n d} \geqslant \\ +& \geqslant \frac{1}{m}\left(\frac{1}{1}+\frac{1}{2}+\ldots+\frac{1}{n+1}\right), +\end{aligned} +$$ + +where $m=\max \left(a_{1}, d\right)$. Therefore $S_{n}$ tends to infinity when $n$ increases. + +On the other hand, the sum of reciprocals of the powers of a natural number $x \neq 1$ is + +$$ +\frac{1}{x^{2}}+\frac{1}{x^{3}}+\ldots=\frac{\frac{1}{x^{2}}}{1-\frac{1}{x}}=\frac{1}{x(x-1)} +$$ + +Hence, the sum of reciprocals of the terms of the progression required in the problem cannot exceed + +$$ +\frac{1}{1}+\frac{1}{1 \cdot 2}+\frac{1}{2 \cdot 3}+\ldots=1+\left(\frac{1}{1}-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+\ldots\right)=2 +$$ + +a contradiction. + +Alternative solution. Let $a_{k}=a_{0}+d k, k=0,1, \ldots$ Choose a prime number $p>d$ and set $k^{\prime} \equiv\left(p-a_{0}\right) d^{-1} \bmod p^{2}$. Then $a_{k^{\prime}}=a_{0}+k^{\prime} d \equiv p \bmod p^{2}$ and hence, $a_{k^{\prime}}$ can not be a power of a natural number. + +Another solution. There can be at most $\lfloor\sqrt{n}\rfloor$ squares in the set $\{1,2, \ldots, n\}$, at most $\lfloor\sqrt[3]{n}\rfloor$ cubes in the same set, etc. The greatest power that can occur in the set $\{1,2, \ldots, n\}$ is $\left\lfloor\log _{2} n\right\rfloor$ and thus there are no more than + +$$ +\lfloor\sqrt{n}\rfloor+\lfloor\sqrt[3]{n}\rfloor+\ldots+\left\lfloor\left\lfloor\log _{2} \sqrt[n]{n}\right\rfloor\right. +$$ + +powers among the numbers $1,2, \ldots, n$. Now we can estimate this sum above: + +$$ +\begin{aligned} +\lfloor\sqrt{n}\rfloor+\lfloor\sqrt[3]{n}\rfloor+\ldots+\left\lfloor\left\lfloor\log _{2} \sqrt[n\rfloor\right]{n}\right\rfloor & \leqslant\lfloor\sqrt{n}\rfloor\left(\left\lfloor\log _{2} n\right\rfloor-1\right)< \\ +& <\lfloor\sqrt{n}\rfloor \cdot\left\lfloor\log _{2} n\right\rfloor=o(n) +\end{aligned} +$$ + +This means that every arithmetic progression grows faster than the share of powers. + diff --git a/BalticWay/md/en-bw03sol.md b/BalticWay/md/en-bw03sol.md new file mode 100644 index 0000000000000000000000000000000000000000..ce4a905189f089fa8faef81f271bf51fe16ae45d --- /dev/null +++ b/BalticWay/md/en-bw03sol.md @@ -0,0 +1,339 @@ +# Baltic Way 2003 + +Riga, November 2, 2003 + +## Problems and solutions + +1. Let $\mathbb{Q}_{+}$be the set of positive rational numbers. Find all functions $f: \mathbb{Q}_{+} \rightarrow \mathbb{Q}_{+}$which for all $x \in \mathbb{Q}_{+}$fulfil + +(1) $f\left(\frac{1}{x}\right)=f(x)$ + +(2) $\left(1+\frac{1}{x}\right) f(x)=f(x+1)$ + +Solution: Set $g(x)=\frac{f(x)}{f(1)}$. Function $g$ fulfils (1), (2) and $g(1)=1$. First we prove that if $g$ exists then it is unique. We prove that $g$ is uniquely defined on $x=\frac{p}{q}$ by induction on $\max (p, q)$. If $\max (p, q)=1$ then $x=1$ and $g(1)=1$. If $p=q$ then $x=1$ and $g(x)$ is unique. If $p \neq q$ then we can assume (according to (1)) that $p>q$. From (2) we get $g\left(\frac{p}{q}\right)=\left(1+\frac{q}{p-q}\right) g\left(\frac{p-q}{q}\right)$. The induction assumption and $\max (p, q)>\max (p-q, q) \geq 1$ now give that $g\left(\frac{p}{q}\right)$ is unique. + +Define the function $g$ by $g\left(\frac{p}{q}\right)=p q$ where $p$ and $q$ are chosen such that $\operatorname{gcd}(p, q)=1$. It is easily seen that $g$ fulfils (1), (2) and $g(1)=1$. All functions fulfilling (1) and (2) are therefore $f\left(\frac{p}{q}\right)=a p q$, where $\operatorname{gcd}(p, q)=1$ and $a \in \mathbb{Q}_{+}$. + +2. Prove that any real solution of + +$$ +x^{3}+p x+q=0 +$$ + +satisfies the inequality $4 q x \leq p^{2}$. + +Solution: Let $x_{0}$ be a root of the qubic, then $x^{3}+p x+q=\left(x-x_{0}\right)\left(x^{2}+a x+b\right)=$ $x^{3}+\left(a-x_{0}\right) x^{2}+\left(b-a x_{0}\right) x-b x_{0}$. So $a=x_{0}, p=b-a x_{0}=b-x_{0}^{2},-q=b x_{0}$. Hence $p^{2}=b^{2}-2 b x_{0}^{2}+x_{0}^{4}$. Also $4 x_{0} q=-4 x_{0}^{2} b$. So $p^{2}-4 x_{0} q=b^{2}+2 b x_{0}^{2}+x_{0}^{4}=\left(b+x_{0}^{2}\right)^{2} \geq 0$. + +Solution 2: As the equation $x_{0} x^{2}+p x+q=0$ has a root $\left(x=x_{0}\right)$, we must have $D \geq 0 \Leftrightarrow p^{2}-4 q x_{0} \geq 0$. (Also the equation $x^{2}+p x+q x_{0}=0$ having the root $x=x_{0}^{2}$ can be considered.) + +3. Let $x, y$ and $z$ be positive real numbers such that $x y z=1$. Prove that + +$$ +(1+x)(1+y)(1+z) \geq 2\left(1+\sqrt[3]{\frac{y}{x}}+\sqrt[3]{\frac{z}{y}}+\sqrt[3]{\frac{x}{z}}\right) +$$ + +Solution: Put $a=b x, b=c y$ and $c=a z$. The given inequality then takes the form + +$$ +\begin{aligned} +\left(1+\frac{a}{b}\right)\left(1+\frac{b}{c}\right)\left(1+\frac{c}{a}\right) & \geq 2\left(1+\sqrt[3]{\frac{b^{2}}{a c}}+\sqrt[3]{\frac{c^{2}}{a b}}+\sqrt[3]{\frac{a^{2}}{b c}}\right) \\ +& =2\left(1+\frac{a+b+c}{3 \sqrt[3]{a b c}}\right) . +\end{aligned} +$$ + +By the AM-GM inequality we have + +$$ +\begin{aligned} +\left(1+\frac{a}{b}\right)\left(1+\frac{b}{c}\right)\left(1+\frac{c}{a}\right) & =\frac{a+b+c}{a}+\frac{a+b+c}{b}+\frac{a+b+c}{c}-1 \\ +& \geq 3\left(\frac{a+b+c}{\sqrt[3]{a b c}}\right)-1 \geq 2 \frac{a+b+c}{\sqrt[3]{a b c}}+3-1=2\left(1+\frac{a+b+c}{\sqrt[3]{a b c}}\right) . +\end{aligned} +$$ + +Solution 2: Expanding the left side we obtain + +$$ +x+y+z+\frac{1}{x}+\frac{1}{y}+\frac{1}{z} \geq 2\left(\sqrt[3]{\frac{y}{x}}+\sqrt[3]{\frac{z}{y}}+\sqrt[3]{\frac{x}{z}}\right) +$$ + +As $\sqrt[3]{\frac{y}{x}} \leq \frac{1}{3}\left(y+\frac{1}{x}+1\right)$ etc., it suffices to prove that + +$$ +x+y+z+\frac{1}{x}+\frac{1}{y}+\frac{1}{z} \geq \frac{2}{3}\left(x+y+z+\frac{1}{x}+\frac{1}{y}+\frac{1}{z}\right)+2 +$$ + +which follows from $a+\frac{1}{a} \geq 2$. + +4. Let $a, b, c$ be positive real numbers. Prove that + +$$ +\frac{2 a}{a^{2}+b c}+\frac{2 b}{b^{2}+c a}+\frac{2 c}{c^{2}+a b} \leq \frac{a}{b c}+\frac{b}{c a}+\frac{c}{a b} . +$$ + +Solution: First we prove that + +$$ +\frac{2 a}{a^{2}+b c} \leq \frac{1}{2}\left(\frac{1}{b}+\frac{1}{c}\right) +$$ + +which is equivalent to $0 \leq b(a-c)^{2}+c(a-b)^{2}$, and therefore holds true. Now we turn to the inequality + +$$ +\frac{1}{b}+\frac{1}{c} \leq \frac{1}{2}\left(\frac{2 a}{b c}+\frac{b}{c a}+\frac{c}{a b}\right), +$$ + +which by multiplying by $2 a b c$ is seen to be equivalent to $0 \leq(a-b)^{2}+(a-c)^{2}$. Hence we have proved that + +Analogously we have + +$$ +\frac{2 a}{a^{2}+b c} \leq \frac{1}{4}\left(\frac{2 a}{b c}+\frac{b}{c a}+\frac{c}{a b}\right) . +$$ + +$$ +\begin{aligned} +\frac{2 b}{b^{2}+c a} & \leq \frac{1}{4}\left(\frac{2 b}{c a}+\frac{c}{a b}+\frac{a}{b c}\right) \\ +\frac{2 c}{c^{2}+a b} & \leq \frac{1}{4}\left(\frac{2 c}{a b}+\frac{a}{b c}+\frac{b}{c a}\right) +\end{aligned} +$$ + +and it suffices to sum the above three inequalities. + +Solution 2: As $a^{2}+b c \geq 2 a \sqrt{b c}$ etc., it is sufficient to prove that + +$$ +\frac{1}{\sqrt{b c}}+\frac{1}{\sqrt{a c}}+\frac{1}{\sqrt{a b}} \leq \frac{a}{b c}+\frac{b}{c a}+\frac{c}{a b} +$$ + +which can be obtained by "inserting" $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}$ between the left side and the right side. + +5. A sequence $\left(a_{n}\right)$ is defined as follows: $a_{1}=\sqrt{2}, a_{2}=2$, and $a_{n+1}=a_{n} a_{n-1}^{2}$ for $n \geq 2$. Prove that for every $n \geq 1$ we have + +$$ +\left(1+a_{1}\right)\left(1+a_{2}\right) \cdots\left(1+a_{n}\right)<(2+\sqrt{2}) a_{1} a_{2} \cdots a_{n} . +$$ + +Solution: First we prove inductively that for $n \geq 1, a_{n}=2^{2^{n-2}}$. We have $a_{1}=2^{2^{-1}}$, $a_{2}=2^{2^{0}}$ and + +$$ +a_{n+1}=2^{2^{n-2}} \cdot\left(2^{2^{n-3}}\right)^{2}=2^{2^{n-2}} \cdot 2^{2^{n-2}}=2^{2^{n-1}} . +$$ + +Since $1+a_{1}=1+\sqrt{2}$, we must prove, that + +$$ +\left(1+a_{2}\right)\left(1+a_{3}\right) \cdots\left(1+a_{n}\right)<2 a_{2} a_{3} \cdots a_{n} . +$$ + +The right-hand side is equal to + +$$ +2^{1+2^{0}+2^{1}+\cdots+2^{n-2}}=2^{2^{n-1}} +$$ + +and the left-hand side + +$$ +\begin{aligned} +\left(1+2^{2^{0}}\right) & \left(1+2^{2^{1}}\right) \cdots\left(1+2^{2^{n-2}}\right) \\ +& =1+2^{2^{0}}+2^{2^{1}}+2^{2^{0}+2^{1}}+2^{2^{2}}+\cdots+2^{2^{0}+2^{1}+\cdots+2^{n-2}} \\ +& =1+2+2^{2}+2^{3}+\cdots+2^{2^{n-1}-1} \\ +& =2^{2^{n-1}}-1 . +\end{aligned} +$$ + +The proof is complete. + +6. Let $n \geq 2$ and $d \geq 1$ be integers with $d \mid n$, and let $x_{1}, x_{2}, \ldots, x_{n}$ be real numbers such that $x_{1}+x_{2}+\cdots+x_{n}=0$. Prove that there are at least $\left(\begin{array}{l}n-1 \\ d-1\end{array}\right)$ choices of $d$ indices $1 \leq i_{1}10000$, so $a \cdot b \notin X$. So $X$ may have 9901 elements. + +Suppose that $x_{1}1$ and consider the pairs + +$$ +\begin{gathered} +200-x_{1},\left(200-x_{1}\right) \cdot x_{1} \\ +200-x_{2},\left(200-x_{2}\right) \cdot x_{2} \\ +\vdots \\ +200-x_{k},\left(200-x_{k}\right) \cdot x_{k} +\end{gathered} +$$ + +Clearly $x_{1}2 b+p-2 k$ and $p$ is a prime, we conclude $2 b+p+2 k=p^{2}$ and $2 b+p-2 k=1$. By adding these equations we get $2 b+p=\frac{p^{2}+1}{2}$ and then $b=\left(\frac{p-1}{2}\right)^{2}$, so $a=b+p=\left(\frac{p+1}{2}\right)^{2}$. By checking we conclude that all the solutions are $(a, b)=\left(\left(\frac{p+1}{2}\right)^{2},\left(\frac{p-1}{2}\right)^{2}\right)$ with $p$ a prime greater than 2 . + +Solution 2: Let $p$ be a prime such that $a-b=p$ and let $a b=k^{2}$. We have $(b+p) b=k^{2}$, so $\operatorname{gcd}(b, b+p)=\operatorname{gcd}(b, p)$ is equal either to 1 or $p$. If $\operatorname{gcd}(b, b+p)=p$, let $b=b_{1} p$. Then $p^{2} b_{1}\left(b_{1}+1\right)=k^{2}, b_{1}\left(b_{1}+1\right)=m^{2}$, but this equation has no solutions. + +Hence $\operatorname{gcd}(b, b+p)=1$, and + +$$ +b=u^{2} \quad b+p=v^{2} +$$ + +so that $p=v^{2}-u^{2}=(v+u)(v-u)$. This in turn implies that $v-u=1$ and $v+u=p$, from which we finally obtain $a=\left(\frac{p+1}{2}\right)^{2}, b=\left(\frac{p-1}{2}\right)^{2}$, where $p$ must be an odd prime. + +17. All the positive divisors of a positive integer $n$ are stored into an array in increasing order. Mary has to write a program which decides for an arbitrarily chosen divisor $d>1$ whether it is a prime. Let $n$ have $k$ divisors not greater than $d$. Mary claims that it suffices to check divisibility of $d$ by the first $\lceil k / 2\rceil$ divisors of $n$ : If a divisor of $d$ greater than 1 is found among them, then $d$ is composite, otherwise d is prime. Is Mary right? + +Answer: Yes, Mary is right. + +Solution: Let $d>1$ be a divisor of $n$. Suppose Mary's program outputs "composite" for $d$. That means it has found a divisor of $d$ greater than 1 . Since $d>1$, the array contains at least 2 divisors of $d$, namely 1 and $d$. Thus Mary's program does not check divisibility of $d$ by $d$ (the first half gets complete before reaching $d$ ) which means that the divisor found lays strictly between 1 and $d$. Hence $d$ is composite indeed. + +Suppose now $d$ being composite. Let $p$ be its smallest prime divisor; then $\frac{d}{p} \geq p$ or, equivalently, $d \geq p^{2}$. As $p$ is a divisor of $n$, it occurs in the array. Let $a_{1}, \ldots, a_{k}$ all divisors of $n$ smaller than $p$. Then $p a_{1}, \ldots, p a_{k}$ are less than $p^{2}$ and hence less than $d$. + +As $a_{1}, \ldots, a_{k}$ are all relatively prime with $p$, all the numbers $p a_{1}, \ldots, p a_{k}$ divide $n$. The numbers $a_{1}, \ldots, a_{k}, p a_{1}, \ldots, p a_{k}$ are pairwise different by construction. Thus there are at least $2 k+1$ divisors of $n$ not greater than $d$. So Mary's program checks divisibility of $d$ by at least $k+1$ smallest divisors of $n$, among which it finds $p$, and outputs "composite". + +18. Every integer is coloured with exactly one of the colours BLUE, GREEN, RED, YELLOW. Can this be done in such a way that if $a, b, c, d$ are not all 0 and have the same colour, then $3 a-2 b \neq 2 c-3 d$ ? + +Answer: Yes. + +Solution: A colouring with the required property can be defined as follows. For a non-zero integer $k$ let $k^{*}$ be the integer uniquely defined by $k=5^{m} \cdot k^{*}$, where $m$ is a nonnegative integer and $5 \nmid k^{*}$. We also define $0^{*}=0$. Two non-zero integers $k_{1}, k_{2}$ receive the same colour if and only if $k_{1}^{*} \equiv k_{2}^{*}(\bmod 5)$; we assign 0 any colour. + +Assume $a, b, c, d$ has the same colour and that $3 a-2 b=2 c-3 d$, which we rewrite as $3 a-2 b-2 c+3 d=0$. Dividing both sides by the largest power of 5 which simultaneously divides $a, b, c, d$ (this makes sense since not all of $a, b, c, d$ are 0 ), we obtain + +$$ +3 \cdot 5^{A} \cdot a^{*}-2 \cdot 5^{B} \cdot b^{*}-2 \cdot 5^{C} \cdot c^{*}+3 \cdot 5^{D} \cdot d^{*}=0, +$$ + +where $A, B, C, D$ are nonnegative integers at least one of which is equal to 0 . The above equality implies + +$$ +3\left(5^{A} \cdot a^{*}+5^{B} \cdot b^{*}+5^{C} \cdot c^{*}+5^{D} \cdot d^{*}\right) \equiv 0 \quad(\bmod 5) . +$$ + +Assume $a, b, c, d$ are all non-zero. Then $a^{*} \equiv b^{*} \equiv c^{*} \equiv d^{*} \not \equiv 0(\bmod 5)$. This implies + +$$ +5^{A}+5^{B}+5^{C}+5^{D} \equiv 0 \quad(\bmod 5) +$$ + +which is impossible since at least one of the numbers $A, B, C, D$ is equal to 0 . If one or more of $a, b, c, d$ are 0 , we simply omit the corresponding terms from (1), and the same conclusion holds. + +19. Let $a$ and $b$ be positive integers. Prove that if $a^{3}+b^{3}$ is the square of an integer, then $a+b$ is not a product of two different prime numbers. + +Solution: Suppose $a+b=p q$, where $p \neq q$ are two prime numbers. We may assume that $p \neq 3$. Since + +$$ +a^{3}+b^{3}=(a+b)\left(a^{2}-a b+b^{2}\right) +$$ + +is a square, the number $a^{2}-a b+b^{2}=(a+b)^{2}-3 a b$ must be divisible by $p$ and $q$, whence $3 a b$ must be divisible by $p$ and $q$. But $p \neq 3$, so $p \mid a$ or $p \mid b$; but $p \mid a+b$, so $p \mid a$ and $p \mid b$. Write $a=p k, b=p \ell$ for some integers $k, \ell$. Notice that $q=3$, since otherwise, repeating the above argument, we would have $q|a, q| b$ and $a+b>p q)$. So we have + +$$ +3 p=a+b=p(k+\ell) +$$ + +and we conclude that $a=p, b=2 p$ or $a=2 p, b=p$. Then $a^{3}+b^{3}=9 p^{3}$ is obviously not a square, a contradiction. + +20. Let $n$ be a positive integer such that the sum of all the positive divisors of $n$ (except $n$ ) plus the number of these divisors is equal to $n$. Prove that $n=2 m^{2}$ for some integer $m$. + +Solution: Let $t_{1} Vilnius, November 7, 2004 + +## Problems and solutions + +1. Given a sequence $a_{1}, a_{2}, a_{3}, \ldots$ of non-negative real numbers satisfying the conditions + +(1) $a_{n}+a_{2 n} \geq 3 n$ + +(2) $a_{n+1}+n \leq 2 \sqrt{a_{n} \cdot(n+1)}$ + +for all indices $n=1,2 \ldots$ + +(a) Prove that the inequality $a_{n} \geq n$ holds for every $n \in \mathbb{N}$. + +(b) Give an example of such a sequence. + +Solution: (a) Note that the inequality + +$$ +\frac{a_{n+1}+n}{2} \geq \sqrt{a_{n+1} \cdot n} +$$ + +holds, which together with the second condition of the problem gives + +$$ +\sqrt{a_{n+1} \cdot n} \leq \sqrt{a_{n} \cdot(n+1)} +$$ + +This inequality simplifies to + +$$ +\frac{a_{n+1}}{a_{n}} \leq \frac{n+1}{n} +$$ + +Now, using the last inequality for the index $n$ replaced by $n, n+1, \ldots, 2 n-1$ and multiplying the results, we obtain + +$$ +\frac{a_{2 n}}{a_{n}} \leq \frac{2 n}{n}=2 +$$ + +or $2 a_{n} \geq a_{2 n}$. Taking into account the first condition of the problem, we have + +$$ +3 a_{n}=a_{n}+2 a_{n} \geq a_{n}+a_{2 n} \geq 3 n +$$ + +which implies $a_{n} \geq n$. (b) The sequence defined by $a_{n}=n+1$ satisfies all the conditions of the problem. + +2. Let $P(x)$ be a polynomial with non-negative coefficients. Prove that if $P\left(\frac{1}{x}\right) P(x) \geq 1$ for $x=1$, then the same inequality holds for each positive $x$. + +Solution: For $x>0$ we have $P(x)>0$ (because at least one coefficient is non-zero). From the given condition we have $(P(1))^{2} \geq 1$. Further, let's denote $P(x)=a_{n} x^{n}+a_{n-1} x^{n-1}+$ $\cdots+a_{0}$. Then + +$$ +\begin{aligned} +P(x) P\left(\frac{1}{x}\right) & =\left(a_{n} x^{n}+\cdots+a_{0}\right)\left(a_{n} x^{-n}+\cdots+a_{0}\right) \\ +& =\sum_{i=0}^{n} a_{i}^{2}+\sum_{i=1}^{n} \sum_{j=0}^{i-1}\left(a_{i-j} a_{j}\right)\left(x^{i}+x^{-i}\right) \\ +& \geq \sum_{i=0}^{n} a_{i}^{2}+2 \sum_{i>j} a_{i} a_{j} \\ +& =(P(1))^{2} \geq 1 . +\end{aligned} +$$ + +3. Let $p, q, r$ be positive real numbers and $n \in \mathbb{N}$. Show that if $p q r=1$, then + +$$ +\frac{1}{p^{n}+q^{n}+1}+\frac{1}{q^{n}+r^{n}+1}+\frac{1}{r^{n}+p^{n}+1} \leq 1 +$$ + +Solution: The key idea is to deal with the case $n=3$. Put $a=p^{n / 3}, b=q^{n / 3}$, and $c=r^{n / 3}$, so $a b c=(p q r)^{n / 3}=1$ and + +$$ +\frac{1}{p^{n}+q^{n}+1}+\frac{1}{q^{n}+r^{n}+1}+\frac{1}{r^{n}+p^{n}+1}=\frac{1}{a^{3}+b^{3}+1}+\frac{1}{b^{3}+c^{3}+1}+\frac{1}{c^{3}+a^{3}+1} . +$$ + +Now + +$$ +\frac{1}{a^{3}+b^{3}+1}=\frac{1}{(a+b)\left(a^{2}-a b+b^{2}\right)+1}=\frac{1}{(a+b)\left((a-b)^{2}+a b\right)+1} \leq \frac{1}{(a+b) a b+1} . +$$ + +Since $a b=c^{-1}$, + +$$ +\frac{1}{a^{3}+b^{3}+1} \leq \frac{1}{(a+b) a b+1}=\frac{c}{a+b+c} +$$ + +Similarly we obtain + +$$ +\frac{1}{b^{3}+c^{3}+1} \leq \frac{a}{a+b+c} \quad \text { and } \quad \frac{1}{c^{3}+a^{3}+1} \leq \frac{b}{a+b+c} +$$ + +Hence + +$$ +\frac{1}{a^{3}+b^{3}+1}+\frac{1}{b^{3}+c^{3}+1}+\frac{1}{c^{3}+a^{3}+1} \leq \frac{c}{a+b+c}+\frac{a}{a+b+c}+\frac{b}{a+b+c}=1, +$$ + +which was to be shown. + +4. Let $x_{1}, x_{2}, \ldots, x_{n}$ be real numbers with arithmetic mean $X$. Prove that there is a positive integer $K$ such that the arithmetic mean of each of the lists $\left\{x_{1}, x_{2}, \ldots, x_{K}\right\},\left\{x_{2}, x_{3}, \ldots, x_{K}\right\}$, $\ldots,\left\{x_{K-1}, x_{K}\right\},\left\{x_{K}\right\}$ is not greater than $X$. + +Solution: Suppose the conclusion is false. This means that for every $K \in\{1,2, \ldots, n\}$, there exists a $k \leq K$ such that the arithmetic mean of $x_{k}, x_{k+1}, \ldots, x_{K}$ exceeds $X$. We now define a decreasing sequence $b_{1} \geq a_{1}>a_{1}-1=b_{2} \geq a_{2}>\cdots$ as follows: Put $b_{1}=n$, and for each $i$, let $a_{i}$ be the largest largest $k \leq b_{i}$ such that the arithmetic mean of $x_{a_{i}}, \ldots, x_{b_{i}}$ exceeds $X$; then put $b_{i+1}=a_{i}-1$ and repeat. Clearly for some $m, a_{m}=1$. Now, by construction, each of the sets $\left\{x_{a_{m}}, \ldots, x_{b_{m}}\right\},\left\{x_{a_{m-1}}, \ldots, x_{b_{m-1}}\right\}, \ldots,\left\{x_{a_{1}}, \ldots, x_{b_{1}}\right\}$ has arithmetic mean strictly greater than $X$, but then the union $\left\{x_{1}, x_{2}, \ldots, x_{n}\right\}$ of these sets has arithmetic mean strictly greater than $X$; a contradiction. + +5. Determine the range of the function $f$ defined for integers $k$ by + +$$ +f(k)=(k)_{3}+(2 k)_{5}+(3 k)_{7}-6 k +$$ + +where $(k)_{2 n+1}$ denotes the multiple of $2 n+1$ closest to $k$. + +Solution: For odd $n$ we have + +$$ +(k)_{n}=k+\frac{n-1}{2}-\left[k+\frac{n-1}{2}\right]_{n^{\prime}} +$$ + +where $[m]_{n}$ denotes the principal remainder of $m$ modulo $n$. Hence we get + +$$ +f(k)=6-[k+1]_{3}-[2 k+2]_{5}-[3 k+3]_{7} +$$ + +The condition that the principal remainders take the values $a, b$ and $c$, respectively, may be written + +$$ +\begin{aligned} +k+1 \equiv a & (\bmod 3) \\ +2 k+2 \equiv b & (\bmod 5) \\ +3 k+3 & \equiv c \quad(\bmod 7) +\end{aligned} +$$ + +or + +$$ +\begin{aligned} +& k \equiv a-1 \quad(\bmod 3) \\ +& k \equiv-2 b-1 \quad(\bmod 5) \\ +& k \equiv-2 c-1 \quad(\bmod 7) +\end{aligned} +$$ + +By the Chinese Remainder Theorem, these congruences have a solution for any set of $a, b, c$. Hence $f$ takes all the integer values between $6-2-4-6=-6$ and $6-0-0-0=$ 6. (In fact, this proof also shows that $f$ is periodic with period $3 \cdot 5 \cdot 7=105$.) + +6. A positive integer is written on each of the six faces of a cube. For each vertex of the cube we compute the product of the numbers on the three adjacent faces. The sum of these products is 1001. What is the sum of the six numbers on the faces? + +Solution: Let the numbers on the faces be $a_{1}, a_{2}, b_{1}, b_{2}, c_{1}, c_{2}$, placed so that $a_{1}$ and $a_{2}$ are on opposite faces etc. Then the sum of the eight products is equal to + +$$ +\left(a_{1}+a_{2}\right)\left(b_{1}+b_{2}\right)\left(c_{1}+c_{2}\right)=1001=7 \cdot 11 \cdot 13 . +$$ + +Hence the sum of the numbers on the faces is $a_{1}+a_{2}+b_{1}+b_{2}+c_{1}+c_{2}=7+11+13=$ 31. + +7. Find all sets $X$ consisting of at least two positive integers such that for every pair $m, n \in X$, where $n>m$, there exists $k \in X$ such that $n=m k^{2}$. + +Answer: The sets $\left\{m, m^{3}\right\}$, where $m>1$. + +Solution: Let $X$ be a set satisfying the condition of the problem and let $n>m$ be the two smallest elements in the set $X$. There has to exist a $k \in X$ so that $n=m k^{2}$, but as $m \leq k \leq n$, either $k=n$ or $k=m$. The first case gives $m=n=1$, a contradiction; the second case implies $n=m^{3}$ with $m>1$. + +Suppose there exists a third smallest element $q \in X$. Then there also exists $k_{0} \in X$, such that $q=m k_{0}^{2}$. We have $q>k_{0} \geq m$, but $k_{0}=m$ would imply $q=n$, thus $k_{0}=n=m^{3}$ and $q=m^{7}$. Now for $q$ and $n$ there has to exist $k_{1} \in X$ such that $q=n k_{1}^{2}$, which gives $k_{1}=m^{2}$. Since $m^{2} \notin X$, we have a contradiction. + +Thus we see that the only possible sets are those of the form $\left\{m, m^{3}\right\}$ with $m>1$, and these are easily seen to satisfy the conditions of the problem. + +8. Let $f$ be a non-constant polynomial with integer coefficients. Prove that there is an integer $n$ such that $f(n)$ has at least 2004 distinct prime factors. + +Solution: Suppose the contrary. Choose an integer $n_{0}$ so that $f\left(n_{0}\right)$ has the highest number of prime factors. By translating the polynomial we may assume $n_{0}=0$. Setting $k=f(0)$, we have $f\left(w k^{2}\right) \equiv k\left(\bmod k^{2}\right)$, or $f\left(w k^{2}\right)=a k^{2}+k=(a k+1) k$. Since $\operatorname{gcd}(a k+1, k)=1$ and $k$ alone achieves the highest number of prime factors of $f$, we must have $a k+1= \pm 1$. This cannot happen for every $w$ since $f$ is non-constant, so we have a contradiction. + +9. $A$ set $S$ of $n-1$ natural numbers is given ( $n \geq 3$ ). There exists at least two elements in this set whose difference is not divisible by $n$. Prove that it is possible to choose a non-empty subset of $S$ so that the sum of its elements is divisible by $n$. + +Solution: Suppose to the contrary that there exists a set $X=\left\{a_{1}, a_{2}, \ldots, a_{n-1}\right\}$ violating the statement of the problem, and let $a_{n-2} \not \equiv a_{n-1}(\bmod n)$. Denote $S_{i}=a_{1}+a_{2}+$ $\cdots+a_{i}, i=1, \ldots, n-1$. The conditions of the problem imply that all the numbers $S_{i}$ must give different remainders when divided by $n$. Indeed, if for some $j3$. There are two possibilities: If $p_{3} \equiv 1$ $(\bmod 3)$ then necessarily $p_{4}=2 p_{3}-1\left(\right.$ otherwise $\left.p_{4} \equiv 0(\bmod 3)\right)$, so $p_{4} \equiv 1(\bmod 3)$. Analogously $p_{5}=2 p_{4}-1, p_{6}=2 p_{5}-1$ etc. By an easy induction we have + +$$ +p_{n+1}-1=2^{n-2}\left(p_{3}-1\right), \quad n=3,4,5, \ldots +$$ + +If we set $n=p_{3}+1$ we have $p_{p_{3}+2}-1=2^{p_{3}-1}\left(p_{3}-1\right)$, from which + +$$ +p_{p_{3}+2} \equiv 1+1 \cdot\left(p_{3}-1\right)=p_{3} \equiv 0 \quad\left(\bmod p_{3}\right) +$$ + +a contradiction. The case $p_{3} \equiv 2(\bmod 3)$ is treated analogously. + +11. An $m \times n$ table is given, in each cell of which a number +1 or -1 is written. It is known that initially exactly one -1 is in the table, all the other numbers being +1 . During a move, it is allowed to choose any cell containing -1 , replace this -1 by 0 , and simultaneously multiply all the numbers in the neighboring cells by -1 (we say that two cells are neighboring if they have a common side). Find all $(m, n)$ for which using such moves one can obtain the table containing zeroes only, regardless of the cell in which the initial -1 stands. + +Answer: Those $(m, n)$ for which at least one of $m, n$ is odd. + +Solution: Let us erase a unit segment which is the common side of any two cells in which two zeroes appear. If the final table consists of zeroes only, all the unit segments (except those which belong to the boundary of the table) are erased. We must erase a total of + +$$ +m(n-1)+n(m-1)=2 m n-m-n +$$ + +such unit segments. + +On the other hand, in order to obtain 0 in a cell with initial +1 one must first obtain -1 in this cell, that is, the sign of the number in this cell must change an odd number of times (namely, 1 or 3 ). Hence, any cell with -1 (except the initial one) has an odd number of neighboring zeroes. So, any time we replace -1 by 0 we erase an odd number of unit segments. That is, the total number of unit segments is congruent modulo 2 to the initial number of +1 's in the table. Therefore $2 m n-m-n \equiv m n-1$ $(\bmod 2)$, implying that $(m-1)(n-1) \equiv 0(\bmod 2)$, so at least one of $m, n$ is odd. + +It remains to show that if, for example, $n$ is odd, we can obtain a zero table. First, if -1 is in the $i^{\prime}$ th row, we may easily make the $i^{\prime}$ th row contain only zeroes, while its one or two neighboring rows contain only -1 's. Next, in any row containing only -1 's, we first change the -1 in the odd-numbered columns (that is, the columns $1,3, \ldots, n$ ) to zeroes, resulting in a row consisting of alternating 0 and -1 (since the -1 's in the +even-numbered columns have been changed two times), and we then easily obtain an entire row of zeroes. The effect of this on the next neighboring row is to create a new row of -1 's, while the original row is clearly unchanged. In this way we finally obtain a zero table. + +12. There are $2 n$ different numbers in a row. By one move we can interchange any two numbers or interchange any three numbers cyclically (choose $a, b, c$ and place a instead of $b, b$ instead of $c$ and $c$ instead of $a$ ). What is the minimal number of moves that is always sufficient to arrange the numbers in increasing order? + +Solution: If a number $y$ occupies the place where $x$ should be at the end, we draw an arrow $x \rightarrow y$. Clearly at the beginning all numbers are arranged in several cycles: Loops + +$\bullet \bullet$, binary cycles $\bullet \rightleftarrows \bullet$ and "long" cycles $\bullet_{\nwarrow}^{\nearrow} \succeq \bullet$ (at least three numbers). Our aim is to obtain $2 n$ loops. + +Clearly each binary cycle can be rearranged into two loops by one move. If there is a long cycle with a fragment $\cdots \rightarrow a \rightarrow b \rightarrow c \rightarrow \cdots$, interchange $a, b, c$ cyclically so that at least two loops, $a \oslash, b \oslash$, appear. By each of these moves, the number of loops increase by 2 , so at most $n$ moves are needed. + +On the other hand, by checking all possible ways the two or three numbers can be distributed among disjoint cycles, it is easy to see that each of the allowed moves increases the number of disjoint cycles by at most two. Hence if the initial situation is one single loop, at least $n$ moves are needed. + +13. The 25 member states of the European Union set up a committee with the following rules: (1) the committee should meet daily; (2) at each meeting, at least one member state should be represented; (3) at any two different meetings, a different set of member states should be represented; and (4) at the $n$ 'th meeting, for every $k0$, the second player splits the second pile as $4 p+2=(4 p+1)+1$, and wins because he wins in each of the situations $(4 s+1,4 p+1)$ and $4 q+3$. + +15. A circle is divided into 13 segments, numbered consecutively from 1 to 13. Five fleas called $A, B, C, D$ and $E$ are sitting in the segments 1,2,3,4 and 5. A flea is allowed to jump to an empty segment five positions away in either direction around the circle. Only one flea jumps at the same time, and two fleas cannot be in the same segment. After some jumps, the fleas are back in the segments 1,2,3,4,5, but possibly in some other order than they started. Which orders are possible? + +Solution: Write the numbers from 1 to 13 in the order $\mathbf{1}, 6,11, \mathbf{3}, 8,13,5,10,2,7,12,4$, 9. Then each time a flea jumps it moves between two adjacent numbers or between the first and the last number in this row. Since a flea can never move past another flea, the possible permutations are + +| 3 | 5 | 2 | 4 | | 1 | 2 | 3 | 4 | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| C | $\mathrm{E}$ | B | $\mathrm{D}$ | | A | B | C | D | +| A | C | $\mathrm{E}$ | B | | $\mathrm{D}$ | $\mathrm{E}$ | A | B | +| D | A | C | E | or equivalently | B | C | $\mathrm{D}$ | E | +| B | $\mathrm{D}$ | A | C | | $\mathrm{E}$ | A | B | C | +| C E | B | $\mathrm{D}$ | A | | C | $\mathrm{D}$ | $\mathrm{E}$ | A | + +that is, exactly the cyclic permutations of the original order. + +16. Through a point $P$ exterior to a given circle pass a secant and a tangent to the circle. The secant intersects the circle at $A$ and $B$, and the tangent touches the circle at $C$ on the same side of the diameter thorugh $P$ as $A$ and $B$. The projection of $C$ on the diameter is $Q$. Prove that $Q C$ bisects $\angle A Q B$. + +Solution: Denoting the centre of the circle by $O$, we have $O Q \cdot O P=O A^{2}=O B^{2}$. Hence $\triangle O A Q \sim \triangle O P A$ and $\triangle O B Q \sim \triangle O P B$. Since $\triangle A O B$ is isosceles, we have +$\angle O A P+\angle O B P=180^{\circ}$, and therefore + +$$ +\begin{aligned} +\angle A Q P+\angle B Q P & =\angle A O P+\angle O A Q+\angle B O P+\angle O B Q \\ +& =\angle A O P+\angle O P A+\angle B O P+\angle O P B \\ +& =180^{\circ}-\angle O A P+180^{\circ}-\angle O B P \\ +& =180^{\circ} . +\end{aligned} +$$ + +Thus $Q C$, being perpendicular to $Q P$, bisects $\angle A Q B$. + +17. Consider a rectangle with side lengths 3 and 4 , and pick an arbitrary inner point on each side. Let $x, y, z$ and $u$ denote the side lengths of the quadrilateral spanned by these points. Prove that $25 \leq x^{2}+y^{2}+z^{2}+u^{2} \leq 50$. + +Solution: Let $a, b, c$ and $d$ be the distances of the chosen points from the midpoints of the sides of the rectangle (with $a$ and $c$ on the sides of length 3). Then + +$$ +\begin{aligned} +x^{2}+y^{2}+z^{2}+u^{2}= & \left(\frac{3}{2}+a\right)^{2}+\left(\frac{3}{2}-a\right)^{2}+\left(\frac{3}{2}+c\right)^{2}+\left(\frac{3}{2}-c\right)^{2} \\ +& +(2+b)^{2}+(2-b)^{2}+(2+d)^{2}+(2-d)^{2} \\ += & 4 \cdot\left(\frac{3}{2}\right)^{2}+4 \cdot 2^{2}+2\left(a^{2}+b^{2}+c^{2}+d^{2}\right) \\ += & 25+2\left(a^{2}+b^{2}+c^{2}+d^{2}\right) . +\end{aligned} +$$ + +Since $0 \leq a^{2}, c^{2} \leq(3 / 2)^{2}, 0 \leq b^{2}, d^{2} \leq 2^{2}$, the desired inequalities follow. + +18. A ray emanating from the vertex $A$ of the triangle $A B C$ intersects the side $B C$ at $X$ and the circumcircle of $A B C$ at $Y$. Prove that $\frac{1}{A X}+\frac{1}{X Y} \geq \frac{4}{B C}$. + +Solution: From the GM-HM inequality we have + +$$ +\frac{1}{A X}+\frac{1}{X Y} \geq \frac{2}{\sqrt{A X \cdot X Y}} +$$ + +As $B C$ and $A Y$ are chords intersecting at $X$ we have $A X \cdot X Y=B X \cdot X C$. Therefore (1) transforms into + +$$ +\frac{1}{A X}+\frac{1}{X Y} \geq \frac{2}{\sqrt{B X \cdot X C}} +$$ + +We also have + +$$ +\sqrt{B X \cdot X C} \leq \frac{B X+X C}{2}=\frac{B C}{2} +$$ + +so from (2) the result follows. + +19. $D$ is the midpoint of the side $B C$ of the given triangle $A B C . M$ is a point on the side $B C$ such that $\angle B A M=\angle D A C$. $L$ is the second intersection point of the circumcircle of the triangle $C A M$ with the side $A B . K$ is the second intersection point of the circumcircle of the triangle $B A M$ with the side $A C$. Prove that $K L \| B C$. + +Solution: It is sufficient to prove that $C K: L B=A C: A B$. + +The triangles $A B C$ and $M K C$ are similar beacuse they have common angle $C$ and $\angle C M K=180^{\circ}-\angle B M K=\angle K A B$ (the latter equality is due to the observation that $\angle B M K$ and $\angle K A B$ are the opposite angles in the insecribed quadrilateral $A K M B$ ). + +By analogous reasoning the triangles $A B C$ and $M B L$ are similar. Therefore the triangles $M K C$ and $M B L$ are also similar and we have + +$$ +\frac{C K}{L B}=\frac{K M}{B M}=\frac{\frac{A M \sin K A M}{\sin A K M}}{\frac{A M \sin M A B}{\sin M B A}}=\frac{\sin K A M}{\sin M A B}=\frac{\sin D A B}{\sin D A C}=\frac{\frac{B D \sin B D A}{A B}}{\frac{C D \sin C D A}{A C}}=\frac{A C}{A B} . +$$ + +The second equality is due to the sinus theorem for triangles $A K M$ and $A B M$; the third is due to the equality $\angle A K M=180^{\circ}-\angle M B A$ in the inscribed quadrilateral $A K M B$; the fourth is due to the definition of the point $M$; and the fifth is due to the sinus theorem for triangles $A C D$ and $A B D$. + +20. Three circular arcs $w_{1}, w_{2}, w_{3}$ with common endpoints $A$ and $B$ are on the same side of the line $A B ; w_{2}$ lies between $w_{1}$ and $w_{3}$. Two rays emanating from $B$ intersect these arcs at $M_{1}, M_{2}, M_{3}$ and $K_{1}, K_{2}, K_{3}$, respectively. Prove that $\frac{M_{1} M_{2}}{M_{2} M_{3}}=\frac{K_{1} K_{2}}{K_{2} K_{3}}$. + +Solution: From inscribed angles we have $\angle A K_{1} B=\angle A M_{1} B$ and $\angle A K_{2} B=\angle A M_{2} B$. From this it follows that $\triangle A K_{1} K_{2} \sim \triangle A M_{1} M_{2}$, so + +$$ +\frac{K_{1} K_{2}}{M_{1} M_{2}}=\frac{A K_{2}}{A M_{2}} +$$ + +Similarly $\triangle A K_{2} K_{3} \sim \triangle A M_{2} M_{3}$, so + +$$ +\frac{K_{2} K_{3}}{M_{2} M_{3}}=\frac{A K_{2}}{A M_{2}} +$$ + +From these equations we get $\frac{K_{1} K_{2}}{M_{1} M_{2}}=\frac{K_{2} K_{3}}{M_{2} M_{3}}$, from which the desired property follows. + +![](https://cdn.mathpix.com/cropped/2024_04_17_ea51434c43498befedfcg-8.jpg?height=523&width=460&top_left_y=1155&top_left_x=798) + diff --git a/BalticWay/md/en-bw05sol.md b/BalticWay/md/en-bw05sol.md new file mode 100644 index 0000000000000000000000000000000000000000..60d4baf29e64844d644ef71775d279fda177b338 --- /dev/null +++ b/BalticWay/md/en-bw05sol.md @@ -0,0 +1,422 @@ +# Baltic Way 2005 + +Stockholm, November 5, 2005 + +## Problems and solutions + +1. Let $a_{0}$ be a positive integer. Define the sequence $a_{n}, n \geq 0$, as follows: If + +$$ +a_{n}=\sum_{i=0}^{j} c_{i} 10^{i} +$$ + +where $c_{i}$ are integers with $0 \leq c_{i} \leq 9$, then + +$$ +a_{n+1}=c_{0}^{2005}+c_{1}^{2005}+\cdots+c_{j}^{2005} . +$$ + +Is it possible to choose $a_{0}$ so that all the terms in the sequence are distinct? + +Answer: No, the sequence must contain two equal terms. + +Solution: It is clear that there exists a smallest positive integer $k$ such that + +$$ +10^{k}>(k+1) \cdot 9^{2005} . +$$ + +We will show that there exists a positive integer $N$ such that $a_{n}$ consists of less than $k+1$ decimal digits for all $n \geq N$. Let $a_{i}$ be a positive integer which consists of exactly $j+1$ digits, that is, + +$$ +10^{j} \leq a_{i}<10^{j+1} . +$$ + +We need to prove two statements: + +- $a_{i+1}$ has less than $k+1$ digits if $ja_{i+1}$ if $j \geq k$. + +To prove the first statement, notice that + +$$ +a_{i+1} \leq(j+1) \cdot 9^{2005}<(k+1) \cdot 9^{2005}<10^{k} +$$ + +and hence $a_{i+1}$ consists of less than $k+1$ digits. To prove the second statement, notice that $a_{i}$ consists of $j+1$ digits, none of which exceeds 9 . Hence $a_{i+1} \leq(j+1) \cdot 9^{2005}$ and because $j \geq k$, we get $a_{i} \geq 10^{j}>(j+1) \cdot 9^{2005} \geq a_{i+1}$, which proves the second statement. It is now easy to derive the result from this statement. Assume that $a_{0}$ consists of $k+1$ or more digits (otherwise we are done, because then it follows inductively that all terms of the sequence consist of less than $k+1$ digits, by the first statement). Then the sequence starts with a strictly decreasing segment $a_{0}>a_{1}>a_{2}>\cdots$ by the second statement, so for some index $N$ the number $a_{N}$ has less than $k+1$ digits. Then, by the first statement, each number $a_{n}$ with $n \geq N$ consists of at most $k$ digits. By the Pigeonhole Principle, there are two different indices $n, m \geq N$ such that $a_{n}=a_{m}$. + +2. Let $\alpha, \beta$ and $\gamma$ be three angles with $0 \leq \alpha, \beta, \gamma<90^{\circ}$ and $\sin \alpha+\sin \beta+\sin \gamma=1$. Show that + +$$ +\tan ^{2} \alpha+\tan ^{2} \beta+\tan ^{2} \gamma \geq \frac{3}{8} +$$ + +Solution: Since $\tan ^{2} x=1 / \cos ^{2} x-1$, the inequality to be proved is equivalent to + +$$ +\frac{1}{\cos ^{2} \alpha}+\frac{1}{\cos ^{2} \beta}+\frac{1}{\cos ^{2} \gamma} \geq \frac{27}{8} +$$ + +The AM-HM inequality implies + +$$ +\begin{aligned} +\frac{3}{\frac{1}{\cos ^{2} \alpha}+\frac{1}{\cos ^{2} \beta}+\frac{1}{\cos ^{2} \gamma}} & \leq \frac{\cos ^{2} \alpha+\cos ^{2} \beta+\cos ^{2} \gamma}{3} \\ +& =\frac{3-\left(\sin ^{2} \alpha+\sin ^{2} \beta+\sin ^{2} \gamma\right)}{3} \\ +& \leq 1-\left(\frac{\sin \alpha+\sin \beta+\sin \gamma}{3}\right)^{2} \\ +& =\frac{8}{9} +\end{aligned} +$$ + +and the result follows. + +3. Consider the sequence $a_{k}$ defined by $a_{1}=1, a_{2}=\frac{1}{2}$, + +$$ +a_{k+2}=a_{k}+\frac{1}{2} a_{k+1}+\frac{1}{4 a_{k} a_{k+1}} \quad \text { for } k \geq 1 +$$ + +Prove that + +$$ +\frac{1}{a_{1} a_{3}}+\frac{1}{a_{2} a_{4}}+\frac{1}{a_{3} a_{5}}+\cdots+\frac{1}{a_{98} a_{100}}<4 +$$ + +Solution: Note that + +$$ +\frac{1}{a_{k} a_{k+2}}<\frac{2}{a_{k} a_{k+1}}-\frac{2}{a_{k+1} a_{k+2}} +$$ + +because this inequality is equivalent to the inequality + +$$ +a_{k+2}>a_{k}+\frac{1}{2} a_{k+1} +$$ + +which is evident for the given sequence. Now we have + +$$ +\begin{aligned} +\frac{1}{a_{1} a_{3}}+\frac{1}{a_{2} a_{4}} & +\frac{1}{a_{3} a_{5}}+\cdots+\frac{1}{a_{98} a_{100}} \\ +& <\frac{2}{a_{1} a_{2}}-\frac{2}{a_{2} a_{3}}+\frac{2}{a_{2} a_{3}}-\frac{2}{a_{3} a_{4}}+\cdots \\ +& <\frac{2}{a_{1} a_{2}}=4 +\end{aligned} +$$ + +4. Find three different polynomials $P(x)$ with real coefficients such that $P\left(x^{2}+1\right)=P(x)^{2}+1$ for all real $x$. + +Answer: For example, $P(x)=x, P(x)=x^{2}+1$ and $P(x)=x^{4}+2 x^{2}+2$. + +Solution: Let $Q(x)=x^{2}+1$. Then the equation that $P$ must satisfy can be written $P(Q(x))=Q(P(x))$, and it is clear that this will be satisfied for $P(x)=x, P(x)=Q(x)$ and $P(x)=Q(Q(x))$. + +Solution 2: For all reals $x$ we have $P(x)^{2}+1=P\left(x^{2}+1\right)=P(-x)^{2}+1$ and consequently, $(P(x)+P(-x))(P(x)-P(-x))=0$. Now one of the three cases holds: + +(a) If both $P(x)+P(-x)$ and $P(x)-P(-x)$ are not identically 0 , then they are nonconstant polynomials and have a finite numbers of roots, so this case cannot hold. +(b) If $P(x)+P(-x)$ is identically 0 then obviously, $P(0)=0$. Consider the infinite sequence of integers $a_{0}=0$ and $a_{n+1}=a_{n}^{2}+1$. By induction it is easy to see that $P\left(a_{n}\right)=a_{n}$ for all non-negative integers $n$. Also, $Q(x)=x$ has that property, so $P(x)-Q(x)$ is a polynomial with infinitely many roots, whence $P(x)=x$. + +(c) If $P(x)-P(-x)$ is identically 0 then + +$$ +P(x)=x^{2 n}+b_{n-1} x^{2 n-2}+\cdots+b_{1} x^{2}+b_{0} +$$ + +for some integer $n$ since $P(x)$ is even and it is easy to see that the coefficient of $x^{2 n}$ must be 1 . Putting $n=1$ and $n=2$ yield the solutions $P(x)=x^{2}+1$ and $P(x)=x^{4}+2 x^{2}+2$. + +Remark: For $n=3$ there is no solution, whereas for $n=4$ there is the unique solution $P(x)=x^{8}+6 x^{6}+8 x^{4}+8 x^{2}+5$. + +5. Let $a, b, c$ be positive real numbers with $a b c=1$. Prove that + +$$ +\frac{a}{a^{2}+2}+\frac{b}{b^{2}+2}+\frac{c}{c^{2}+2} \leq 1 +$$ + +Solution: For any positive real $x$ we have $x^{2}+1 \geq 2 x$. Hence + +$$ +\begin{aligned} +\frac{a}{a^{2}+2}+\frac{b}{b^{2}+2}+\frac{c}{c^{2}+2} & \leq \frac{a}{2 a+1}+\frac{b}{2 b+1}+\frac{c}{2 c+1} \\ +& =\frac{1}{2+1 / a}+\frac{1}{2+1 / b}+\frac{1}{2+1 / c}=: R . +\end{aligned} +$$ + +$R \leq 1$ is equivalent to + +$$ +\left(2+\frac{1}{b}\right)\left(2+\frac{1}{c}\right)+\left(2+\frac{1}{a}\right)\left(2+\frac{1}{c}\right)+\left(2+\frac{1}{a}\right)\left(2+\frac{1}{b}\right) \leq\left(2+\frac{1}{a}\right)\left(2+\frac{1}{b}\right)\left(2+\frac{1}{c}\right) +$$ + +and to $4 \leq \frac{1}{a b}+\frac{1}{a c}+\frac{1}{b c}+\frac{1}{a b c}$. By $a b c=1$ and by the AM-GM inequality + +$$ +\frac{1}{a b}+\frac{1}{a c}+\frac{1}{b c} \geq 3 \sqrt[3]{\left(\frac{1}{a b c}\right)^{2}}=3 +$$ + +the last inequality follows. Equality appears exactly when $a=b=c=1$. + +6. Let $K$ and $N$ be positive integers with $1 \leq K \leq N$. A deck of $N$ different playing cards is shuffled by repeating the operation of reversing the order of the $K$ topmost cards and moving these to the bottom of the deck. Prove that the deck will be back in its initial order after a number of operations not greater than $4 \cdot N^{2} / K^{2}$. + +Solution: Let $N=q \cdot K+r, 0 \leq r2$. In each cell there is written either 0 or 1 . All rows in the array are different from each other. For each pair of rows $\left(x_{1}, x_{2}, \ldots, x_{6}\right)$ and $\left(y_{1}, y_{2}, \ldots, y_{6}\right)$, the row $\left(x_{1} y_{1}, x_{2} y_{2}, \ldots, x_{6} y_{6}\right)$ can also be found in the array. Prove that there is a column in which at least half of the entries are zeroes. + +Solution: Clearly there must be rows with some zeroes. Consider the case when there is a row with just one zero; we can assume it is $(0,1,1,1,1,1)$. Then for each row $\left(1, x_{2}, x_{3}, x_{4}, x_{5}, x_{6}\right)$ there is also a row $\left(0, x_{2}, x_{3}, x_{4}, x_{5}, x_{6}\right)$; the conclusion follows. Consider the case when there is a row with just two zeroes; we can assume it is $(0,0,1,1,1,1)$. Let $n_{i j}$ be the number of rows with first two elements $i, j$. As in the first case $n_{00} \geq n_{11}$. Let $n_{01} \geq n_{10}$; the other subcase is analogous. Now there are $n_{00}+n_{01}$ zeroes in the first column and $n_{10}+n_{11}$ ones in the first column; the conclusion follows. Consider now the case when each row contains at least three zeroes (except $(1,1,1,1,1,1$ ), if such a row exists). Let us prove that it is impossible that each such row contains exactly three zeroes. Assume the opposite. As $n>2$ there are at least two rows with zeroes; they are different, so their product contains at least four zeroes, a contradiction. So there are more then $3(n-1)$ zeroes in the array; so in some column there are more than $(n-1) / 2$ zeroes; so there are at least $n / 2$ zeroes. + +8. Consider a grid of $25 \times 25$ unit squares. Draw with a red pen contours of squares of any size on the grid. What is the minimal number of squares we must draw in order to colour all the lines of the grid? + +Answer: 48 squares. + +Solution: Consider a diagonal of the square grid. For any grid vertex $A$ on this diagonal denote by $C$ the farthest endpoint of this diagonal. Let the square with the diagonal $A C$ be red. Thus, we have defined the set of 48 red squares (24 for each diagonal). It is clear that if we draw all these squares, all the lines in the grid will turn red. + +In order to show that 48 is the minimum, consider all grid segments of length 1 that have exactly one endpoint on the border of the grid. Every horizontal and every vertical line that cuts the grid into two parts determines two such segments. So we have $4 \cdot 24=96$ segments. It is evident that every red square can contain at most two of these segments. + +9. A rectangle is divided into $200 \times 3$ unit squares. Prove that the number of ways of splitting this rectangle into rectangles of size $1 \times 2$ is divisible by 3 . + +Solution: Let us denote the number of ways to split some figure into dominos by a small picture of this figure with a sign \#. For example, $\# \boxplus=2$. + +Let $N_{n}=\#$ ( $n$ rows) and $\gamma_{n}=\#$ ( $n-2$ full rows and one row with two cells). + +We are going to find a recurrence relation for the numbers $N_{n}$. + +Observe that + +![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-05.jpg?height=274&width=809&top_left_y=717&top_left_x=612) + +We can generalize our observations by writing the equalities + +$$ +\begin{aligned} +N_{n} & =2 \gamma_{n}+N_{n-2}, \\ +2 \gamma_{n-2} & =N_{n-2}-N_{n-4}, \\ +2 \gamma_{n} & =2 \gamma_{n-2}+2 N_{n-2} . +\end{aligned} +$$ + +If we sum up these equalities we obtain the desired recurrence + +$$ +N_{n}=4 N_{n-2}-N_{n-4} +$$ + +It is easy to find that $N_{2}=3, N_{4}=11$. Now by the recurrence relation it is trivial to check that $N_{6 k+2} \equiv 0(\bmod 3)$. + +10. Let $m=30030=2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13$ and let $M$ be the set of its positive divisors which have exactly two prime factors. Determine the minimal integer $n$ with the following property: for any choice of numbers from $M$, there exist three numbers $a, b, c$ among them satisfying $a \cdot b \cdot c=m$. + +Answer: $n=11$. + +Solution: Taking the 10 divisors without the prime 13 shows that $n \geq 11$. Consider the following partition of the 15 divisors into five groups of three each with the property that the product of the numbers in every group equals $m$. + +$$ +\begin{array}{ll} +\{2 \cdot 3,5 \cdot 13,7 \cdot 11\}, & \{2 \cdot 5,3 \cdot 7,11 \cdot 13\}, \\ +\{2 \cdot 11,3 \cdot 5,7 \cdot 13\}, & \{2 \cdot 13,3 \cdot 11,5 \cdot 7\} . +\end{array} +$$ + +If $n=11$, there is a group from which we take all three numbers, that is, their product equals $m$. + +11. Let the points $D$ and $E$ lie on the sides $B C$ and $A C$, respectively, of the triangle $A B C$, satisfying $B D=A E$. The line joining the circumcentres of the triangles $A D C$ and $B E C$ meets the lines $A C$ and $B C$ at $K$ and $L$, respectively. Prove that $K C=L C$. + +Solution: Assume that the circumcircles of triangles $A D C$ and $B E C$ meet at $C$ and $P$. The problem is to show that the line $K L$ makes equal angles with the lines $A C$ and $B C$. Since the line joining the circumcentres of triangles $A D C$ and $B E C$ is perpendicular to the line $C P$, it suffices to show that $C P$ is the angle-bisector of $\angle A C B$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-06.jpg?height=465&width=554&top_left_y=287&top_left_x=751) + +Since the points $A, P, D, C$ are concyclic, we obtain $\angle E A P=\angle B D P$. Analogously, we have $\angle A E P=\angle D B P$. These two equalities together with $A E=B D$ imply that triangles $A P E$ and $D P B$ are congruent. This means that the distance from $P$ to $A C$ is equal to the distance from $P$ to $B C$, and thus $C P$ is the angle-bisector of $\angle A C B$, as desired. + +12. Let $A B C D$ be a convex quadrilateral such that $B C=A D$. Let $M$ and $N$ be the midpoints of $A B$ and $C D$, respectively. The lines $A D$ and $B C$ meet the line $M N$ at $P$ and $Q$, respectively. Prove that $C Q=D P$. + +Solution: Let $A^{\prime}, B^{\prime}, C^{\prime}, D^{\prime}$ be the feet of the perpendiculars from $A, B, C, D$, respectively, onto the line $M N$. Then + +$$ +A A^{\prime}=B B^{\prime} \quad \text { and } \quad C C^{\prime}=D D^{\prime} \text {. } +$$ + +Denote by $X, Y$ the feet of the perpendiculars from $C, D$ onto the lines $B B^{\prime}, A A^{\prime}$, respectively. We infer from the above equalities that $A Y=B X$. Since also $B C=A D$, the right-angled triangles $B X C$ and $A Y D$ are congruent. This shows that + +$$ +\angle C^{\prime} C Q=\angle B^{\prime} B Q=\angle A^{\prime} A P=\angle D^{\prime} D P . +$$ + +Therefore, since $C C^{\prime}=D D^{\prime}$, the triangles $C C^{\prime} Q$ and $D D^{\prime} P$ are congruent. Thus $C Q=$ $D P$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-06.jpg?height=525&width=594&top_left_y=1648&top_left_x=728) + +13. What is the smallest number of circles of radius $\sqrt{2}$ that are needed to cover a rectangle + +(a) of size $6 \times 3$ ? + +(b) of size $5 \times 3$ ? + +Answer: (a) Six circles, (b) five circles. + +Solution: (a) Consider the four corners and the two midpoints of the sides of length 6 . The distance between any two of these six points is 3 or more, so one circle cannot cover two of these points, and at least six circles are needed. + +On the other hand one circle will cover a $2 \times 2$ square, and it is easy to see that six such squares can cover the rectangle. + +(b) Consider the four corners and the centre of the rectangle. The minimum distance between any two of these points is the distance between the centre and one of the corners, which is $\sqrt{34} / 2$. This is greater than the diameter of the circle $(\sqrt{34 / 4}>\sqrt{32 / 4})$, so one circle cannot cover two of these points, and at least five circles are needed. + +![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-07.jpg?height=225&width=300&top_left_y=430&top_left_x=1478) + +Partition the rectangle into three rectangles of size $5 / 3 \times 2$ and two rectangles of size $5 / 2 \times 1$ as shown on the right. It is easy to check that each has a diagonal of length less than $2 \sqrt{2}$, so five circles can cover the five small rectangles and hence the $5 \times 3$ rectangle. + +14. Let the medians of the triangle $A B C$ meet at $M$. Let $D$ and $E$ be different points on the line $B C$ such that $D C=C E=A B$, and let $P$ and $Q$ be points on the segments $B D$ and $B E$, respectively, such that $2 B P=P D$ and $2 B Q=Q E$. Determine $\angle P M Q$. + +Answer: $\angle P M Q=90^{\circ}$. + +Solution: Draw the parallelogram $A B C A^{\prime}$, with $A A^{\prime} \| B C$. Then $M$ lies on $B A^{\prime}$, and $B M=\frac{1}{3} B A^{\prime}$. So $M$ is on the homothetic image (centre $B$, dilation $1 / 3$ ) of the circle with centre $C$ and radius $A B$, which meets $B C$ at $D$ and $E$. The image meets $B C$ at $P$ and $Q$. So $\angle P M Q=90^{\circ}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-07.jpg?height=297&width=820&top_left_y=1185&top_left_x=618) + +15. Let the lines $e$ and $f$ be perpendicular and intersect each other at $O$. Let $A$ and $B$ lie on $e$ and $C$ and $D$ lie on $f$, such that all the five points $A, B, C, D$ and $O$ are distinct. Let the lines $b$ and $d$ pass through $B$ and $D$ respectively, perpendicularly to $A C$; let the lines $a$ and $c$ pass through $A$ and $C$ respectively, perpendicularly to $B D$. Let $a$ and $b$ intersect $a t X$ and $c$ and $d$ intersect at $Y$. Prove that $X Y$ passes through $O$. + +Solution: Let $A_{1}$ be the intersection of $a$ with $B D, B_{1}$ the intersection of $b$ with $A C, C_{1}$ the intersection of $c$ with $B D$ and $D_{1}$ the intersection of $d$ with $A C$. It follows easily by the given right angles that the following three sets each are concyclic: + +- $A, A_{1}, D, D_{1}, O$ lie on a circle $w_{1}$ with diameter $A D$. +- $B, B_{1}, C, C 1, O$ lie on a circle $w_{2}$ with diameter $B C$. +- $C, C_{1}, D, D_{1}$ lie on a circle $w_{3}$ with diameter $D C$. + +We see that $O$ lies on the radical axis of $w_{1}$ and $w_{2}$. Also, $Y$ lies on the radical axis of $w_{1}$ and $w_{3}$, and on the radical axis of $w_{2}$ and $w_{3}$, so $Y$ is the radical centre of $w_{1}, w_{2}$ and $w_{3}$, so it lies on the radical axis of $w_{1}$ and $w_{2}$. Analogously we prove that $X$ lies on the radical axis of $w_{1}$ and $w_{2}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_bd0ab80c8c81a55b87c5g-08.jpg?height=837&width=1054&top_left_y=278&top_left_x=498) + +16. Let $p$ be a prime number and let $n$ be a positive integer. Let $q$ be a positive divisor of $(n+1)^{p}-n^{p}$. Show that $q-1$ is divisible by $p$. + +Solution: It is sufficient to show the statement for $q$ prime. We need to prove that + +$$ +(n+1)^{p} \equiv n^{p} \quad(\bmod q) \Longrightarrow q \equiv 1 \quad(\bmod p) . +$$ + +It is obvious that $\operatorname{gcd}(n, q)=\operatorname{gcd}(n+1, q)=1$ (as $n$ and $n+1$ cannot be divisible by $q$ simultaneously). Hence there exists a positive integer $m$ such that $m n \equiv 1(\bmod q)$. In fact, $m$ is just the multiplicative inverse of $n(\bmod q)$. Take $s=m(n+1)$. It is easy to see that + +$$ +s^{p} \equiv 1 \quad(\bmod q) +$$ + +Let $t$ be the smallest positive integer which satisfies $s^{t} \equiv 1(\bmod q)(t$ is the order of $s(\bmod q)$ ). One can easily prove that $t$ divides $p$. Indeed, write $p=a t+b$ where $0 \leq b1$. Find all integers a such that $2 x_{3 n}-1$ is a perfect square for all $n \geq 1$. + +Answer: $a=\frac{(2 m-1)^{2}+1}{2}$ where $m$ is an arbitrary positive integer. + +Solution: Let $y_{n}=2 x_{n}-1$. Then + +$$ +\begin{aligned} +y_{n} & =2\left(2 x_{n-1} x_{n-2}-x_{n-1}-x_{n-2}+1\right)-1 \\ +& =4 x_{n-1} x_{n-2}-2 x_{n-1}-2 x_{n-2}+1 \\ +& =\left(2 x_{n-1}-1\right)\left(2 x_{n-2}-1\right)=y_{n-1} y_{n-2} +\end{aligned} +$$ + +when $n>1$. Notice that $y_{n+3}=y_{n+2} y_{n+1}=y_{n+1}^{2} y_{n}$. We see that $y_{n+3}$ is a perfect square if and only if $y_{n}$ is a perfect square. Hence $y_{3 n}$ is a perfect square for all $n \geq 1$ exactly when $y_{0}$ is a perfect square. Since $y_{0}=2 a-1$, the result is obtained when $a=\frac{(2 m-1)^{2}+1}{2}$ for all positive integers $m$. + +18. Let $x$ and $y$ be positive integers and assume that $z=4 x y /(x+y)$ is an odd integer. Prove that at least one divisor of $z$ can be expressed in the form $4 n-1$ where $n$ is a positive integer. + +Solution: Let $x=2^{s} x_{1}$ and $y=2^{t} y_{1}$ where $x_{1}$ and $y_{1}$ are odd integers. Without loss of generality we can assume that $s \geq t$. We have + +$$ +z=\frac{2^{s+t+2} x_{1} y_{1}}{2^{t}\left(2^{s-t} x_{1}+y_{1}\right)}=\frac{2^{s+2} x_{1} y_{1}}{2^{s-t} x_{1}+y_{1}} +$$ + +If $s \neq t$, then the denominator is odd and therefore $z$ is even. So we have $s=t$ and $z=2^{s+2} x_{1} y_{1} /\left(x_{1}+y_{1}\right)$. Let $x_{1}=d x_{2}, y_{1}=d y_{2}$ with $\operatorname{gcd}\left(x_{2}, y_{2}\right)=1$. So $z=$ $2^{s+2} d x_{2} y_{2} /\left(x_{2}+y_{2}\right)$. As $z$ is odd, it must be that $x_{2}+y_{2}$ is divisible by $2^{s+2} \geq 4$, so $x_{2}+y_{2}$ is divisible by 4 . As $x_{2}$ and $y_{2}$ are odd integers, one of them, say $x_{2}$ is congruent to 3 modulo 4. But $\operatorname{gcd}\left(x_{2}, x_{2}+y_{2}\right)=1$, so $x_{2}$ is a divisor of $z$. + +19. Is it possible to find 2005 different positive square numbers such that their sum is also a square number? + +Answer: Yes, it is possible. + +Solution: Start with a simple Pythagorian identity such as $3^{2}+4^{2}=5^{2}$. Multiply it by $5^{2}$ + +$$ +3^{2} \cdot 5^{2}+4^{2} \cdot 5^{2}=5^{2} \cdot 5^{2} +$$ + +and insert the identity for the first + +$$ +3^{2} \cdot\left(3^{2}+4^{2}\right)+4^{2} \cdot 5^{2}=5^{2} \cdot 5^{2} +$$ + +which gives + +$$ +3^{2} \cdot 3^{2}+3^{2} \cdot 4^{2}+4^{2} \cdot 5^{2}=5^{2} \cdot 5^{2} . +$$ + +Multiply again by $5^{2}$ + +$$ +3^{2} \cdot 3^{2} \cdot 5^{2}+3^{2} \cdot 4^{2} \cdot 5^{2}+4^{2} \cdot 5^{2} \cdot 5^{2}=5^{2} \cdot 5^{2} \cdot 5^{2} +$$ + +and split the first term + +$$ +3^{2} \cdot 3^{2} \cdot\left(3^{2}+4^{2}\right)+3^{2} \cdot 4^{2} \cdot 5^{2}+4^{2} \cdot 5^{2} \cdot 5^{2}=5^{2} \cdot 5^{2} \cdot 5^{2} +$$ + +that is + +$$ +3^{2} \cdot 3^{2} \cdot 3^{2}+3^{2} \cdot 3^{2} \cdot 4^{2}+3^{2} \cdot 4^{2} \cdot 5^{2}+4^{2} \cdot 5^{2} \cdot 5^{2}=5^{2} \cdot 5^{2} \cdot 5^{2} . +$$ + +This (multiplying by $5^{2}$ and splitting the first term) can be repeated as often as needed, each time increasing the number of terms by one. + +Clearly, each term is a square number and the terms are strictly increasing from left to right. + +20. Find all positive integers $n=p_{1} p_{2} \cdots p_{k}$ which divide $\left(p_{1}+1\right)\left(p_{2}+1\right) \cdots\left(p_{k}+1\right)$, where $p_{1} p_{2} \cdots p_{k}$ is the factorization of $n$ into prime factors (not necessarily distinct). + +Answer: All numbers $2^{r} 3^{s}$ where $r$ and $s$ are non-negative integers and $s \leq r \leq 2 s$. + +Solution: Let $m=\left(p_{1}+1\right)\left(p_{2}+1\right) \cdots\left(p_{k}+1\right)$. We may assume that $p_{k}$ is the largest prime factor. If $p_{k}>3$ then $p_{k}$ cannot divide $m$, because if $p_{k}$ divides $m$ it is a prime factor of $p_{i}+1$ for some $i$, but if $p_{i}=2$ then $p_{i}+1 Turku, November 3, 2006 + +## Problems and solutions + +1. For a sequence $a_{1}, a_{2}, a_{3}, \ldots$ of real numbers it is known that + +$$ +a_{n}=a_{n-1}+a_{n+2} \quad \text { for } n=2,3,4, \ldots +$$ + +What is the largest number of its consecutive elements that can all be positive? + +Answer: 5. + +Solution: The initial segment of the sequence could be $1 ; 2 ; 3 ; 1 ; 1 ;-2 ; 0$. Clearly it is enough to consider only initial segments. For each sequence the first 6 elements are $a_{1} ; a_{2}$; $a_{3} ; a_{2}-a_{1} ; a_{3}-a_{2} ; a_{2}-a_{1}-a_{3}$. As we see, $a_{1}+a_{5}+a_{6}=a_{1}+\left(a_{3}-a_{2}\right)+\left(a_{2}-a_{1}-a_{3}\right)=$ 0 . So all the elements $a_{1}, a_{5}, a_{6}$ can not be positive simultaneously. + +2. Suppose that the real numbers $a_{i} \in[-2,17], i=1,2, \ldots, 59$, satisfy $a_{1}+a_{2}+\cdots+a_{59}=0$. Prove that + +$$ +a_{1}^{2}+a_{2}^{2}+\cdots+a_{59}^{2} \leq 2006 . +$$ + +Solution: For convenience denote $m=-2$ and $M=17$. Then + +$$ +\left(a_{i}-\frac{m+M}{2}\right)^{2} \leq\left(\frac{M-m}{2}\right)^{2}, +$$ + +because $m \leq a_{i} \leq M$. So we have + +$$ +\begin{aligned} +\sum_{i=1}^{59}\left(a_{i}-\frac{m+M}{2}\right)^{2} & =\sum_{i} a_{i}^{2}+59 \cdot\left(\frac{m+M}{2}\right)^{2}-(m+M) \sum_{i} a_{i} \\ +& \leq 59 \cdot\left(\frac{M-m}{2}\right)^{2}, +\end{aligned} +$$ + +and thus + +$$ +\sum_{i} a_{i}^{2} \leq 59 \cdot\left(\left(\frac{M-m}{2}\right)^{2}-\left(\frac{m+M}{2}\right)^{2}\right)=-59 \cdot m \cdot M=2006 . +$$ + +3. Prove that for every polynomial $P(x)$ with real coefficients there exist a positive integer $m$ and polynomials $P_{1}(x), P_{2}(x), \ldots, P_{m}(x)$ with real coefficients such that + +$$ +P(x)=\left(P_{1}(x)\right)^{3}+\left(P_{2}(x)\right)^{3}+\cdots+\left(P_{m}(x)\right)^{3} . +$$ + +Solution: We will prove by induction on the degree of $P(x)$ that all polynomials can be represented as a sum of cubes. This is clear for constant polynomials. Now we proceed to the inductive step. It is sufficient to show that if $P(x)$ is a polynomial of degree $n$, then there exist polynomials $Q_{1}(x), Q_{2}(x), \ldots, Q_{r}(x)$ such that the polynomial + +$$ +P(x)-\left(Q_{1}(x)\right)^{3}-\left(Q_{2}(x)\right)^{3}-\cdots-\left(Q_{r}(x)\right)^{3} +$$ + +has degree at most $n-1$. Assume that the coefficient of $x^{n}$ in $P(x)$ is equal to $c$. We consider three cases: If $n=3 k$, we put $r=1, Q_{1}(x)=\sqrt[3]{c} x^{k}$; if $n=3 k+1$ we put $r=3$, + +$$ +Q_{1}(x)=\sqrt[3]{\frac{c}{6}} x^{k}(x-1), \quad Q_{2}(x)=\sqrt[3]{\frac{c}{6}} x^{k}(x+1), \quad Q_{3}(x)=-\sqrt[3]{\frac{c}{3}} x^{k+1} +$$ + +and if $n=3 k+2$ we put $r=2$ and + +$$ +Q_{1}(x)=\sqrt[3]{\frac{c}{3}} x^{k}(x+1), \quad Q_{2}(x)=-\sqrt[3]{\frac{c}{3}} x^{k+1} +$$ + +This completes the induction. + +4. Let $a, b, c, d, e, f$ be non-negative real numbers satisfying $a+b+c+d+e+f=6$. Find the maximal possible value of + +$$ +a b c+b c d+c d e+d e f+e f a+f a b +$$ + +and determine all 6-tuples $(a, b, c, d, e, f)$ for which this maximal value is achieved. + +Answer: 8 . + +Solution: If we set $a=b=c=2, d=e=f=0$, then the given expression is equal to 8 . We will show that this is the maximal value. Applying the inequality between arithmetic and geometric mean we obtain + +$$ +\begin{aligned} +8 & =\left(\frac{(a+d)+(b+e)+(c+f)}{3}\right)^{3} \geq(a+d)(b+e)(c+f) \\ +& =(a b c+b c d+c d e+d e f+e f a+f a b)+(a c e+b d f), +\end{aligned} +$$ + +so we see that $a b c+b c d+c d e+d e f+e f a+f a b \leq 8$ and the maximal value 8 is achieved when $a+d=b+e=c+f$ (and then the common value is 2 because $a+b+c+d+$ $e+f=6)$ and $a c e=b d f=0$, which can be written as $(a, b, c, d, e, f)=(a, b, c, 2-a, 2-$ $b, 2-c)$ with $a c(2-b)=b(2-a)(2-c)=0$. From this it follows that $(a, b, c)$ must have one of the forms $(0,0, t),(0, t, 2),(t, 2,2),(2,2, t),(2, t, 0)$ or $(t, 0,0)$. Therefore the maximum is achieved for the 6 -tuples $(a, b, c, d, e, f)=(0,0, t, 2,2,2-t)$, where $0 \leq t \leq 2$, and its cyclic permutations. + +5. An occasionally unreliable professor has devoted his last book to a certain binary operation $*$. When this operation is applied to any two integers, the result is again an integer. The operation is known to satisfy the following axioms: + +(a) $x *(x * y)=y$ for all $x, y \in \mathbb{Z}$; + +(b) $(x * y) * y=x$ for all $x, y \in \mathbb{Z}$. + +The professor claims in his book that + +(C1) the operation $*$ is commutative: $x * y=y * x$ for all $x, y \in \mathbb{Z}$. + +(C2) the operation $*$ is associative: $(x * y) * z=x *(y * z)$ for all $x, y, z \in \mathbb{Z}$. + +Which of these claims follow from the stated axioms? + +Answer: (C1) is true; (C2) is false. + +Solution: Write $(x, y, z)$ for $x * y=z$. So the axioms can be formulated as + +$$ +\begin{aligned} +& (x, y, z) \Longrightarrow(x, z, y) \\ +& (x, y, z) \Longrightarrow(z, y, x) . +\end{aligned} +$$ + +(C1) is proved by the sequence $(x, y, z) \xrightarrow{(2)}(z, y, x) \xrightarrow{(1)}(z, x, y) \xrightarrow{(2)}(y, x, z)$. + +A counterexample for (C2) is the operation $x * y=-(x+y)$. + +6. Determine the maximal size of a set of positive integers with the following properties: + +(1) The integers consist of digits from the set $\{1,2,3,4,5,6\}$. + +(2) No digit occurs more than once in the same integer. + +(3) The digits in each integer are in increasing order. + +(4) Any two integers have at least one digit in common (possibly at different positions). + +(5) There is no digit which appears in all the integers. + +Answer: 32. + +Solution: Associate with any $a_{i}$ the set $M_{i}$ of its digits. By (??), (??) and (??) the numbers are uniquely determined by their associated subsets of $\{1,2, \ldots, 6\}$. By (??) the sets are intersecting. Partition the 64 subsets of $\{1,2, \ldots, 6\}$ into 32 pairs of complementary sets $(X,\{1,2, \ldots, 6\}-X)$. Obviously, at most one of the two sets in such a pair can be a $M_{i}$, since the two sets are non-intersecting. Hence, $n \leq 32$. Consider the 22 subsets with at least four elements and the 10 subsets with three elements containing 1 . Hence, $n=32$. 7. A photographer took some pictures at a party with 10 people. Each of the 45 possible pairs of people appears together on exactly one photo, and each photo depicts two or three people. What is the smallest possible number of photos taken? + +Answer: 19. + +Solution: Let $x$ be the number of triplet photos (depicting three people, that is, three pairs) and let $y$ be the number of pair photos (depicting two people, that is, one pair). Then $3 x+y=45$. + +Each person appears with nine other people, and since 9 is odd, each person appears on at least one pair photo. Thus $y \geq 5$, so that $x \leq 13$. The total number of photos is $x+y=45-2 x \geq 45-2 \cdot 13=19$. + +On the other hand, 19 photos will suffice. We number the persons $0,1, \ldots, 9$, and will proceed to specify 13 triplet photos. We start with making triplets without common pairs of the persons $1-8$ : + +$$ +123,345,567,781 +$$ + +Think of the persons 1-8 as arranged in order around a circle. Then the persons in each triplet above are separated by at most one person. Next we make triplets containing 0 , avoiding previously mentioned pairs by combining 0 with two people among the persons $1-8$ separated by two persons: + +$$ +014,085,027,036 +$$ + +Then we make triplets containing 9, again avoiding previously mentioned pairs by combining 9 with the other four possibilities of two people among 1-8 being separated by two persons: + +$$ +916,925,938,947 +$$ + +Finally, we make our last triplet, again by combining people from 1-8: 246 . Here 2 and 4 , and 4 and 6 , are separated by one person, but those pairs were not accounted for in the first list, whereas 2 and 6 are separated by three persons, and have not been paired before. We now have 13 photos of 39 pairs. The remaining 6 pairs appear on 6 pair photos. + +Remark: This problem is equivalent to asking how many complete 3-graphs can be packed (without common edges) into a complete 10-graph. + +8. The director has found out that six conspiracies have been set up in his department, each of them involving exactly three persons. Prove that the director can split the department in two laboratories so that none of the conspirative groups is entirely in the same laboratory. + +Solution: Let the department consist of $n$ persons. Clearly $n>4$ (because $\left(\begin{array}{l}4 \\ 3\end{array}\right)<6$ ). If $n=5$, take three persons who do not make a conspiracy and put them in one laboratory, the other two in another. If $n=6$, note that $\left(\begin{array}{l}6 \\ 3\end{array}\right)=20$, so we can find a three-person set such that neither it nor its complement is a conspiracy; this set will form one laboratory. If $n \geq 7$, use induction. We have $\left(\begin{array}{l}n \\ 2\end{array}\right) \geq\left(\begin{array}{l}7 \\ 2\end{array}\right)=21>6 \cdot 3$, so there are two persons $A$ and $B$ who are not together in any conspiracy. Replace $A$ and $B$ by a new person $A B$ and use the inductive hypothesis; then replace $A B$ by initial persons $A$ and $B$. + +9. To every vertex of a regular pentagon a real number is assigned. We may perform the following operation repeatedly: we choose two adjacent vertices of the pentagon and replace each of the two numbers assigned to these vertices by their arithmetic mean. Is it always possible to obtain the position in which all five numbers are zeroes, given that in the initial position the sum of all five numbers is equal to zero? + +Answer: No. + +Solution: We will show that starting from the numbers $-\frac{1}{5},-\frac{1}{5},-\frac{1}{5},-\frac{1}{5}, \frac{4}{5}$ we cannot get five zeroes. By adding $\frac{1}{5}$ to all vertices we see that our task is equivalent to showing that beginning from numbers $0,0,0,0,1$ and performing the same operations we can never get five numbers $\frac{1}{5}$. This we prove by noticing that in the initial position all the numbers are "binary rational" - that is, of the form $\frac{k}{2^{m}}$, where $k$ is an integer and $m$ is a non-negative integer - and an arithmetic mean of two binary rationals is also such a number, while the number $\frac{1}{5}$ is not of such form. + +10. 162 pluses and 144 minuses are placed in a $30 \times 30$ table in such a way that each row and each column contains at most 17 signs. (No cell contains more than one sign.) For every plus we count the number of minuses in its row and for every minus we count the number of pluses in its column. Find the maximum of the sum of these numbers. + +Answer: $1296=72 \cdot 18$. + +Solution: In the statement of the problem there are two kinds of numbers: "horizontal" (that has been counted for pluses) and "vertical" (for minuses). We will show that the sum of numbers of each type reaches its maximum on the same configuration. + +We restrict our attention to the horizontal numbers only. Consider an arbitrary row. Let it contains $p$ pluses and $m$ minuses, $m+p \leq 17$. Then the sum that has been counted for pluses in this row is equal to $m p$. Let us redistribute this sum between all signs in the row. More precisely, let us write the number $m p /(m+p)$ in every nonempty cell in the row. Now the whole "horizontal" sum equals to the sum of all 306 written numbers. + +Now let us find the maximal possible contribution of each sign in this sum. That is, we ask about maximum of the expression $f(m, p)=m p /(m+p)$ where $m+p \leq 17$. Remark that $f(m, p)$ is an increasing function of $m$. Therefore if $m+p<17$ then increasing of $m$ will also increase the value of $f(m, p)$. Now if $m+p=17$ then $f(m, p)=m(17-m) / 17$ and, obviously, it has maximum $72 / 17$ when $m=8$ or $m=9$. + +So all the 306 summands in the horizontal sum will be maximal if we find a configuration in which every non-empty row contains 9 pluses and 8 minuses. The similar statement holds for the vertical sum. In order to obtain the desired configuration take a square $18 \times 18$ and draw pluses on 9 generalized diagonals and minuses on 8 other generalized diagonals (the 18th generalized diagonal remains empty). + +11. The altitudes of a triangle are 12,15 and 20. What is the area of the triangle? + +Answer: 150. + +Solution: Denote the sides of the triangle by $a, b$ and $c$ and its altitudes by $h_{a}, h_{b}$ and $h_{c}$. Then we know that $h_{a}=12, h_{b}=15$ and $h_{c}=20$. By the well known relation $a: b=h_{b}: h_{a}$ it follows $b=\frac{h_{a}}{h_{b}} a=\frac{12}{15} a=\frac{4}{5} a$. Analogously, $c=\frac{h_{a}}{h_{c}} a=\frac{12}{20} a=\frac{3}{5} a$. Thus half of the triangle's circumference is $s=\frac{1}{2}(a+b+c)=\frac{1}{2}\left(a+\frac{4}{5} a+\frac{3}{5} a\right)=\frac{6}{5} a$. For the area $\Delta$ of the triangle we have $\Delta=\frac{1}{2} a h_{a}=\frac{1}{2} a 12=6 a$, and also by the well known Heron formula $\Delta=\sqrt{s(s-a)(s-b)(s-c)}=\sqrt{\frac{6}{5} a \cdot \frac{1}{5} a \cdot \frac{2}{5} a \cdot \frac{3}{5} a}=\sqrt{\frac{6^{2}}{5^{4}} a^{4}}=\frac{6}{25} a^{2}$. Hence, $6 a=\frac{6}{25} a^{2}$, and we get $a=25(b=20, c=15)$ and consequently $\Delta=150$. + +12. Let $A B C$ be a triangle, let $B_{1}$ be the midpoint of the side $A B$ and $C_{1}$ the midpoint of the side $A C$. Let $P$ be the point of intersection, other than $A$, of the circumscribed circles around the triangles $A B C_{1}$ and $A B_{1} C$. Let $P_{1}$ be the point of intersection, other than $A$, of the line $A P$ with the circumscribed circle around the triangle $A B_{1} C_{1}$. Prove that $2 A P=3 A P_{1}$. + +Solution: Since $\angle P B B_{1}=\angle P B A=180^{\circ}-\angle P C_{1} A=\angle P C_{1} C$ and $\angle P C C_{1}=\angle P C A=$ $180^{\circ}-\angle P B_{1} A=\angle P B_{1} B$ it follows that $\triangle P B B_{1}$ is similar to $\triangle P C_{1} C$. Let $B_{2}$ and $C_{2}$ be the midpoints of $B B_{1}$ and $C C_{1}$ respectively. It follows that $\angle B P B_{2}=\angle C_{1} P C_{2}$ and hence $\angle B_{2} P C_{2}=\angle B P C_{1}=180^{\circ}-\angle B A C$, which implies that $A B_{2} P C_{2}$ lie on a circle. By similarity it is now clear that $A P / A P_{1}=A B_{2} / A B_{1}=A C_{2} / A C_{1}=3 / 2$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_15c1d4fd3b0f5cc27e92g-5.jpg?height=521&width=740&top_left_y=1096&top_left_x=655) + +13. In a triangle $A B C$, points $D, E$ lie on sides $A B, A C$ respectively. The lines $B E$ and $C D$ intersect at $F$. Prove that if + +$$ +B C^{2}=B D \cdot B A+C E \cdot C A, +$$ + +then the points $A, D, F, E$ lie on a circle. + +Solution: Let $G$ be a point on the segment $B C$ determined by the condition $B G \cdot B C=$ $B D \cdot B A$. (Such a point exists because $B D \cdot B A1$ we have $n^{2} \mid 3^{n}+1$. Let $p$ be the smallest prime divisor of $n$. We have shown that $p>2$. It is also clear that $p \neq 3$, since $3^{n}+1$ is never divisible by 3. Therefore $p \geq 5$. We have $p \mid 3^{n}+1$, so also $p \mid 3^{2 n}-1$. Let $k$ be the smallest positive integer such that $p \mid 3^{k}-1$. Then we have $k \mid 2 n$, but also $k \mid p-1$ by Fermat's theorem. The numbers $3^{1}-1,3^{2}-1$ do not have prime divisors other than 2 , so $p \geq 5$ implies $k \geq 3$. This means that $\operatorname{gcd}(2 n, p-1) \geq k \geq 3$, and therefore $\operatorname{gcd}(n, p-1)>1$, which contradicts the fact that $p$ is the smallest prime divisor of $n$. This completes the proof. + +18. For a positive integer $n$ let $a_{n}$ denote the last digit of $n^{\left(n^{n}\right)}$. Prove that the sequence $\left(a_{n}\right)$ is periodic and determine the length of the minimal period. + +Solution: Let $b_{n}$ and $c_{n}$ denote the last digit of $n$ and $n^{n}$, respectively. Obviously, if $b_{n}=0,1,5,6$, then $c_{n}=0,1,5,6$ and $a_{n}=0,1,5,6$, respectively. + +If $b_{n}=9$, then $n^{n} \equiv 1(\bmod 2)$ and consequently $a_{n}=9$. If $b_{n}=4$, then $n^{n} \equiv 0$ $(\bmod 2)$ and consequently $a_{n}=6$. + +If $b_{n}=2,3,7$, or 8 , then the last digits of $n^{m}$ run through the periods: $2-4-8-6$, $3-9-7-1,7-9-3-1$ or $8-4-2-6$, respectively. If $b_{n}=2$ or $b_{n}=8$, then $n^{n} \equiv 0$ $(\bmod 4)$ and $a_{n}=6$. + +In the remaining cases $b_{n}=3$ or $b_{n}=7$, if $n \equiv \pm 1(\bmod 4)$, then so is $n^{n}$. + +If $b_{n}=3$, then $n \equiv 3(\bmod 20)$ or $n \equiv 13(\bmod 20)$ and $n^{n} \equiv 7(\bmod 20)$ or $n^{n} \equiv 13$ $(\bmod 20)$, so $a_{n}=7$ or $a_{n}=3$, respectively. + +If $b_{n}=7$, then $n \equiv 7(\bmod 20)$ or $n \equiv 17(\bmod 20)$ and $n^{n} \equiv 3(\bmod 20)$ or $n^{n} \equiv 17$ $(\bmod 20)$, so $a_{n}=3$ or $a_{n}=7$, respectively. + +Finally, we conclude that the sequence $\left(a_{n}\right)$ has the following period of length 20: + +$$ +1-6-7-6-5-6-3-6-9-0-1-6-3-6-5-6-7-6-9-0 +$$ + +19. Does there exist a sequence $a_{1}, a_{2}, a_{3}, \ldots$ of positive integers such that the sum of every $n$ consecutive elements is divisible by $n^{2}$ for every positive integer $n$ ? + +Answer: Yes. One such sequence begins 1, 3, 5, 55, 561, 851, 63253, 110055,... + +Solution: We will show that whenever we have positive integers $a_{1}, \ldots, a_{k}$ such that $n^{2} \mid a_{i+1}+\cdots+a_{i+n}$ for every $n \leq k$ and $i \leq k-n$, then it is possible to choose $a_{k+1}$ such that $n^{2} \mid a_{i+1}+\cdots+a_{i+n}$ for every $n \leq k+1$ and $i \leq k+1-n$. This directly implies the positive answer to the problem because we can start constructing the sequence from any single positive integer. + +To obtain the necessary property, it is sufficient for $a_{k+1}$ to satisfy + +$$ +a_{k+1} \equiv-\left(a_{k-n+2}+\cdots+a_{k}\right) \quad\left(\bmod n^{2}\right) +$$ + +for every $n \leq k+1$. This is a system of $k+1$ congruences. + +Note first that, for any prime $p$ and positive integer $l$ such that $p^{l} \leq k+1$, if the congruence with module $p^{2 l}$ is satisfied then also the congruence with module $p^{2(l-1)}$ is satisfied. To see this, group the last $p^{l}$ elements of $a_{1}, \ldots, a_{k+1}$ into $p$ groups of $p^{l-1}$ consecutive elements. By choice of $a_{1}, \ldots, a_{k}$, the sums computed for the first $p-1$ groups are all divisible by $p^{2(l-1)}$. By assumption, the sum of the elements in all $p$ groups is divisible by $p^{2 l}$. Hence the sum of the remaining $p^{l-1}$ elements, that is $a_{k-p^{l-1}+2}+\cdots+a_{k+1}$, is divisible by $p^{2(l-1)}$. + +Secondly, note that, for any relatively prime positive integers $c, d$ such that $c d \leq k+1$, if the congruences both with module $c^{2}$ and module $d^{2}$ hold then also the congruence with module $(c d)^{2}$ holds. To see this, group the last $c d$ elements of $a_{1}, \ldots, a_{k+1}$ into $d$ groups of $c$ consecutive elements, as well as into $c$ groups of $d$ consecutive elements. Using the choice of $a_{1}, \ldots, a_{k}$ and the assumption together, we get that the sum of the last $c d$ elements of $a_{1}, \ldots, a_{k+1}$ is divisible by both $c^{2}$ and $d^{2}$. Hence this sum is divisible by $(c d)^{2}$. + +The two observations let us reject all congruences except for the ones with module being the square of a prime power $p^{l}$ such that $p^{l+1}>k+1$. The resulting system has pairwise relatively prime modules and hence possesses a solution by the Chinese Remainder Theorem. + +20. A 12-digit positive integer consisting only of digits 1,5 and 9 is divisible by 37. Prove that the sum of its digits is not equal to 76. + +Solution: Let $N$ be the initial number. Assume that its digit sum is equal to 76 . + +The key observation is that $3 \cdot 37=111$, and therefore $27 \cdot 37=999$. Thus we have a divisibility test similar to the one for divisibility by 9: for $x=a_{n} 10^{3 n}+a_{n-1} 10^{3(n-1)}+$ $\cdots+a_{1} 10^{3}+a_{0}$, we have $x \equiv a_{n}+a_{n-1}+\cdots+a_{0}(\bmod 37)$. In other words, if we take the digits of $x$ in groups of three and sum these groups, we obtain a number congruent to $x$ modulo 37 . + +The observation also implies that $A=11111111111$ is divisible by 37 . Therefore the number $N-A$ is divisible by 37 , and since it consists of the digits 0,4 and 8 , it is divisible by 4 . The sum of the digits of $N-A$ equals $76-12=64$. Therefore the number $\frac{1}{4}(N-A)$ contains only the digits $0,1,2$; it is divisible by 37 ; and its digits sum to 16 . Applying our divisibility test to this number, we sum four three-digit groups consisting of the digits $0,1,2$ only. No digits will be carried, and each digit of the sum $S$ is at most 8 . Also $S$ is divisible by 37 , and its digits sum up to 16 . Since $S \equiv 16 \equiv 1(\bmod 3)$ and $37 \equiv 1(\bmod 3)$, we have $S / 37 \equiv 1(\bmod 3)$. Therefore $S=37(3 k+1)$, that is, $S$ is one of $037,148,259,370,481,592,703,814,925$; but each of these either contains the digit 9 or does not have a digit sum of 16 . + diff --git a/BalticWay/md/en-bw07sol.md b/BalticWay/md/en-bw07sol.md new file mode 100644 index 0000000000000000000000000000000000000000..9c5ada79043764047e86f3d5ade5612f91da17ae --- /dev/null +++ b/BalticWay/md/en-bw07sol.md @@ -0,0 +1,269 @@ +# Suggested solutions + +1. We first prove the lemma that if $x_{1}>\cdots>x_{2 n}$ then the grouping + +$$ +\left\{\left\{x_{1}, x_{2}\right\}, \ldots,\left\{x_{2 n-1}, x_{2 n}\right\}\right\} +$$ + +gives the largest sum of products of pairs of these numbers. + +Let $a$ be the largest and $b$ the second largest among the numbers $x_{i}$. Consider a grouping of these numbers into pairs such that $a$ is paired with some $c$, and $b$ is paired with some $d$, where $c \neq b$. Then $a \neq d$ (otherwise $a$ would be together with $b$ ). Furthermore, $b>c$ since otherwise the choice of $b$ implies $a=c$ or $b=c$ which are both excluded. Now + +$$ +\begin{aligned} +a b+c d & =a c+a(b-c)+b d-(b-c) d \\ +& =a c+b d+(a-d)(b-c)>a c+b d +\end{aligned} +$$ + +that is, replacing the pairs $\{a, c\}$ and $\{b, d\}$ by the pairs $\{a, b\}$ and $\{c, d\}$ makes the sum larger. If the two largest numbers are paired already, we can do the same to the remaining numbers. So whenever the grouping is different from (1), the sum of the products of pairs can be made larger. + +Now it suffices to prove that $a_{n}=\frac{1}{1} \cdot \frac{1}{2}+\cdots+\frac{1}{2 n-1} \cdot \frac{1}{2 n}<1$. We have + +$$ +\begin{aligned} +a_{n} & =\frac{1}{1 \cdot 2}+\frac{1}{3 \cdot 4}+\cdots+\frac{1}{(2 n-1) \cdot(2 n)} \\ +& =\frac{2-1}{1 \cdot 2}+\frac{4-3}{3 \cdot 4}+\cdots+\frac{2 n-(2 n-1)}{(2 n-1) \cdot(2 n)} \\ +& =\left(\frac{1}{1}-\frac{1}{2}\right)+\left(\frac{1}{3}-\frac{1}{4}\right)+\cdots+\left(\frac{1}{2 n-1}-\frac{1}{2 n}\right) \\ +& \leq\left(\frac{1}{1}-\frac{1}{2}\right)+\left(\frac{1}{2}-\frac{1}{3}\right)+\left(\frac{1}{3}-\frac{1}{4}\right)+\cdots+\left(\frac{1}{2 n-1}+\frac{1}{2 n}\right) \\ +& =1-\frac{1}{2 n} \\ +& <1 . +\end{aligned} +$$ + +2. Assume that such an exact sequence exists. Then by induction we must have $a_{2 k}^{2}=a_{2 k-2}^{2}+a_{4 k-2} a_{2}=$ $a_{2 k-2}^{2}=0$. + +Next we prove by induction that $a_{2 n+1}=(-1)^{n}$. We have $a_{3}=a_{2}^{2}-a_{1}^{2}=-1$ and + +$$ +\begin{aligned} +& a_{4 k+1}=a_{2 k+1}^{2}-a_{2 k}^{2}=1, \\ +& a_{4 k+3}=a_{2 k+2}^{2}-a_{2 k+1}^{2}=-1, +\end{aligned} +$$ + +when $k \geq 1$. This shows that if such a sequence exists, necessarily $a_{2007}=-1$. + +It remains to show that the sequence defined by $a_{n}=0$ for $n$ even, $a_{n}=1$ when $n \equiv 1(\bmod 4)$ and $a_{n}=-1$ when $n \equiv 3(\bmod 4)$ is exact: + +If $n$ and $m$ have the same parity, then $n-m$ and $n+m$ are both even, and then clearly $a_{n}^{2}-a_{m}^{2}=0=$ $a_{n-m} a_{n+m}$. + +If $n$ is odd and $m$ is even, $n-m \equiv n+m(\bmod 4)$, so $a_{n}^{2}-a_{m}^{2}=1=a_{n-m} a_{n+m}$, since both factors are either -1 or +1 . + +Finally, if $n$ is even and $m$ is odd, $n-m \not \equiv n+m(\bmod 4)$, so $a_{n}^{2}-a_{m}^{2}=-1=a_{n-m} a_{n+m}$, since exactly one factor is -1 and one factor is +1 . + +3. Consider the polynomial $P(x)=G(x)-F(x)$. It has degree at most $2 n+1$. By the condition (1) we have $P(x) \geq 0$ for all real $x$. By the condition (2) the numbers $x_{1}, x_{2}, \ldots, x_{n}$ are roots of $P$. Since $P$ is non-negative, each of these roots must have even multiplicity, and therefore $P$ must be divisible by $\left(x-x_{i}\right)^{2}$ for $i=1,2, \ldots, n$. In other words, + +$$ +P(x)=Q(x)\left(x-x_{1}\right)^{2}\left(x-x_{2}\right)^{2} \cdots\left(x-x_{n}\right)^{2} +$$ + +for some polynomial $Q$. Calculating degrees we see that $\operatorname{deg} Q=\operatorname{deg} P-2 n \leq 1$. On the other hand, we have $Q(x) \geq 0$ for all real $x$. This can be possible only if $Q$ is constant. Hence + +$$ +G(x)-F(x)=a\left(x-x_{1}\right)^{2}\left(x-x_{2}\right)^{2} \cdots\left(x-x_{n}\right)^{2} +$$ + +for some real constant $a \geq 0$. Similarly we prove that + +$$ +H(x)-F(x)=b\left(x-x_{1}\right)^{2}\left(x-x_{2}\right)^{2} \cdots\left(x-x_{n}\right)^{2} +$$ + +for some $b \geq 0$. Now we compute that + +$$ +F(x)+H(x)-2 G(x)=(b-2 a)\left(x-x_{1}\right)^{2}\left(x-x_{2}\right)^{2} \cdots\left(x-x_{n}\right)^{2} . +$$ + +By the assumption (3) the above number is equal to 0 for some value of $x=x_{0}$ different from $x_{1}, x_{2}, \ldots$, $x_{n}$. Looking at the right-hand side we see that this forces $b-2 a=0$, so the expression becomes identically zero. In other words, we have $F(x)+H(x)-2 G(x)=0$ for all real $x$, which is what we wanted. + +4. Rewrite the two factors on the left-hand side: + +$$ +\begin{aligned} +2 S+n & =\left(a_{1}+a_{2}+\cdots+a_{n}\right)+\left(a_{2}+a_{3}+\cdots a_{1}\right)+1+\cdots+1 \\ +2 S+a_{1} a_{2}+a_{2} a_{3}+\cdots+a_{n} a_{1} & =\left(a_{2}+a_{3}+\cdots+a_{1}\right)+\left(a_{1}+a_{2}+\cdots a_{n}\right)+a_{1} a_{2}+a_{2} a_{3}+\cdots+a_{n} a_{1} +\end{aligned} +$$ + +Applying the Cauchy-Schwarz inequality to the $3 n$-vectors + +$$ +\left(\sqrt{a_{1}}, \ldots, \sqrt{a_{n}}, \sqrt{a_{2}}, \ldots, \sqrt{a_{1}}, 1, \ldots, 1\right) \quad \text { and } \quad\left(\sqrt{a_{2}}, \ldots, \sqrt{a_{1}}, \sqrt{a_{1}}, \ldots \sqrt{a_{n}}, \sqrt{a_{1} a_{2}}, \ldots, \sqrt{a_{n} a_{1}}\right) +$$ + +we obtain + +$$ +(2 S+n)\left(2 S+a_{1} a_{2}+a_{2} a_{3}+\cdots a_{n} a_{1}\right) \geq\left(3 \sum_{i=1}^{n} \sqrt{a_{i} a_{i+1}}\right)^{2} +$$ + +with $a_{n+1}=a_{1}$. + +5. Set $y=1$ in the first equation. This gives $f(x)=f(x) f(-1)-f(x)+f(1)$, that is, $f(x)(2-f(-1))=f(1)$. Since $f$ is not constant, we must have $f(-1)=2$ and $f(1)=0$. Substituting $-x$ instead of $x$ and $y=-1$ in the first equation gives $f(x)=f(-x) f(1)-f(-x)+f(-1)=-f(-x)+2$. If we let $g(x)=1-f(x)$, this means that $g$ is an odd function. + +Rewriting the first equation in terms of $g$ gives + +$$ +\begin{aligned} +g(x y) & =1-f(x y)=1-((1-g(x))(1-g(-y))-(1-g(x))+(1-g(y))) \\ +& =-g(x) g(-y)+g(-y)+g(y)=g(x) g(y) +\end{aligned} +$$ + +Now the second equation gives (since $g(1)=-g(-1)=1$ ) + +$$ +1-g(1-g(x))=\frac{1}{1-g(1 / x)}=\frac{1}{1-1 / g(x)}=\frac{g(x)}{g(x)-1} +$$ + +that is, + +$$ +g(1-g(x))=\frac{1}{1-g(x)} +$$ + +Since $f$ takes all values except $1, g$ takes all values except 0 . By setting $y=1-g(x)$ it follows that $g(y)=1 / y$ for all $y \neq 0$, that is, $f(x)=1-g(x)=1-1 / x$. + +It is easily verified that this function satisfies the conditions of the problem. + +6. First note that, whenever the numbers are not ordered ascendingly, there exists a pair $(i, j)$ (not necessarily in the list) such that $1 \leq i\ell$ then $a b(a-b)$ is divisible by at least $p^{k+2 \ell}$. The three summands in the first number is divisible by $p^{3 k}, p^{3 \ell}$ and $p^{k+\ell}$. Since $3 \ell$ and $k+\ell$ are less than $k+2 \ell$, the divisibility of the given numbers is possible if and only if $k+\ell=3 \ell$ (in this case the sum $b^{3}+a b$ could be divisible by a power of $p$ greater than $\left.p^{k+\ell}\right)$. Therefore, we have $k=2 \ell$, and hence the maximal power of $p$ that divides $a b$ is $p^{3 \ell}$. + diff --git a/BalticWay/md/en-bw08sol.md b/BalticWay/md/en-bw08sol.md new file mode 100644 index 0000000000000000000000000000000000000000..186099370c089fc914a7b9e6e738372fc02659a4 --- /dev/null +++ b/BalticWay/md/en-bw08sol.md @@ -0,0 +1,431 @@ +# Baltic Way 2008 + +Gdańsk, November 8, 2008 + +## Problems and solutions + +Problem 1. Determine all polynomials $p(x)$ with real coefficients such that + +$$ +p\left((x+1)^{3}\right)=(p(x)+1)^{3} +$$ + +and + +$$ +p(0)=0 +$$ + +Answer: $p(x)=x$. + +Solution: Consider the sequence defined by + +$$ +\left\{\begin{array}{l} +a_{0}=0 \\ +a_{n+1}=\left(a_{n}+1\right)^{3} +\end{array}\right. +$$ + +It follows inductively that $p\left(a_{n}\right)=a_{n}$. Since the polynomials $p$ and $x$ agree on infinitely many points, they must be equal, so $p(x)=x$. + +Problem 2. Prove that if the real numbers $a, b$ and $c$ satisfy $a^{2}+b^{2}+c^{2}=3$ then + +$$ +\frac{a^{2}}{2+b+c^{2}}+\frac{b^{2}}{2+c+a^{2}}+\frac{c^{2}}{2+a+b^{2}} \geq \frac{(a+b+c)^{2}}{12} . +$$ + +When does equality hold? + +Solution: Let $2+b+c^{2}=u, 2+c+a^{2}=v, 2+a+b^{2}=w$. We note that it follows from $a^{2}+b^{2}+c^{2}=3$ that $a, b, c \geq-\sqrt{3}>-2$. Therefore, $u, v$ and $w$ are positive. From the Cauchy-Schwartz inequality we get then + +$$ +\begin{aligned} +(a+b+c)^{2} & =\left(\frac{a}{\sqrt{u}} \sqrt{u}+\frac{b}{\sqrt{v}} \sqrt{v}+\frac{c}{\sqrt{w}} \sqrt{w}\right)^{2} \\ +& \leq\left(\frac{a^{2}}{u}+\frac{b^{2}}{v}+\frac{c^{2}}{w}\right)(u+v+w) . +\end{aligned} +$$ + +Here, + +$$ +u+v+w=6+a+b+c+a^{2}+b^{2}+c^{2}=9+a+b+c . +$$ + +Invoking once more the Cauchy-Schwartz inequality, we get + +$$ +(a+b+c)^{2}=(a \cdot 1+b \cdot 1+c \cdot 1)^{2} \leq\left(a^{2}+b^{2}+c^{2}\right)(1+1+1)=9, +$$ + +whence $a+b+c \leq 3$ and $u+v+w \leq 12$. The proposed inequality follows. + +In the second application above of the Cauchy-Schwartz inequality, equality requires $a=b=c$. If this is satified, $u+v+w=12$, which is equivalent to $a+b+c=3$, requires $a=b=c=1$. It is seen by a direct check that equality holds in the proposed inequality in this case. + +Problem 3. Does there exist an angle $\alpha \in(0, \pi / 2)$ such that $\sin \alpha, \cos \alpha, \tan \alpha$ and $\cot \alpha$, taken in some order, are consecutive terms of an arithmetic progression? + +Answer: No. + +Solution: Suppose that there is an $x$ such that $0\sin x$, we can reduce by $\cos x-\sin x$ and get + +$$ +1=\frac{\cos x+\sin x}{\cos x \sin x}=\frac{1}{\sin x}+\frac{1}{\cos x} . +$$ + +But $0<\sin x<1$ and $0<\cos x<1$, hence $\frac{1}{\sin x}$ and $\frac{1}{\cos x}$ are greater than 1 and their sum cannot equal 1 , a contradiction. + +If $x>\frac{\pi}{4}$ then $0<\frac{\pi}{2}-x<\frac{\pi}{4}$. As the sine, cosine, tangent and cotangent of $\frac{\pi}{2}-x$ are equal to the sine, cosine, tangent and cotangent of $x$ in some order, the contradiction carries over to this case, too. + +Solution 2: The case $x \leq \frac{\pi}{4}$ can also be handled as follows. Consider two cases according to the order of the intermediate two terms. + +If the order is $\sin x<\tan x<\cos x<\cot x$ then using AM-GM gives + +$$ +\cos x=\frac{\tan x+\cot x}{2}>\sqrt{\tan x \cdot \cot x}=\sqrt{1}=1 +$$ + +which is impossible. + +Suppose the other case, $\sin x<\cos x<\tan x<\cot x$. From equalities + +$$ +\frac{\sin x+\tan x}{2}=\cos x \quad \text { and } \quad \frac{\cos x+\cot x}{2}=\tan x +$$ + +one gets + +$$ +\begin{aligned} +& \tan x(\cos x+1)=2 \cos x \\ +& \cot x(\sin x+1)=2 \tan x, +\end{aligned} +$$ + +respectively. By multiplying the corresponding sides, one obtains $(\cos x+1)(\sin x+1)=4 \sin x$, leading to $\cos x \sin x+\cos x+1=3 \sin x$. On the other hand, using $\cos x>\sin x$ and AM-GM gives + +$$ +\cos x \sin x+\cos x+1>\sin ^{2} x+\sin x+1 \geq 2 \sin x+\sin x=3 \sin x +$$ + +a contradiction. + +Problem 4. The polynomial $P$ has integer coefficients and $P(x)=5$ for five different integers $x$. Show that there is no integer $x$ such that $-6 \leq P(x) \leq 4$ or $6 \leq P(x) \leq 16$. + +Solution: Assume $P\left(x_{k}\right)=5$ for different integers $x_{1}, x_{2}, \ldots, x_{5}$. Then + +$$ +P(x)-5=\prod_{k=1}^{5}\left(x-x_{k}\right) Q(x) +$$ + +where $Q$ is a polynomial with integral coefficients. Assume $n$ satisfies the condition in the problem. Then $|n-5| \leq 11$. If $P\left(x_{0}\right)=n$ for some integer $x_{0}$, then $n-5$ is a product of six non-zero integers, five of which are different. The smallest possible absolute value of a product of five different non-zero integers is $1^{2} \cdot 2^{2} \cdot 3=12$. + +Problem 5. Suppose that Romeo and Juliet each have a regular tetrahedron to the vertices of which some positive real numbers are assigned. They associate each edge of their tetrahedra with the product of the two numbers assigned to its end points. Then they write on each face of their tetrahedra the sum of the three numbers associated to its three edges. The four numbers written on the faces of Romeo's tetrahedron turn out to coincide with the four numbers written on Juliet's tetrahedron. Does it follow that the four numbers assigned to the vertices of Romeo's tetrahedron are identical to the four numbers assigned to the vertices of Juliet's tetrahedron? + +Answer: Yes. + +Solution: Let us prove that this conclusion can in fact be drawn. For this purpose we denote the numbers assigned to the vertices of Romeo's tetrahedron by $r_{1}, r_{2}, r_{3}, r_{4}$ and the numbers assigned to the vertices of Juliette's tetrahedron by $j_{1}, j_{2}, j_{3}, j_{4}$ in such a way that + +$$ +\begin{aligned} +& r_{2} r_{3}+r_{3} r_{4}+r_{4} r_{2}=j_{2} j_{3}+j_{3} j_{4}+j_{4} j_{2} \\ +& r_{1} r_{3}+r_{3} r_{4}+r_{4} r_{1}=j_{1} j_{3}+j_{3} j_{4}+j_{4} j_{1} \\ +& r_{1} r_{2}+r_{2} r_{4}+r_{4} r_{1}=j_{1} j_{2}+j_{2} j_{4}+j_{4} j_{1} \\ +& r_{1} r_{2}+r_{2} r_{3}+r_{3} r_{1}=j_{1} j_{2}+j_{2} j_{3}+j_{3} j_{1} +\end{aligned} +$$ + +We intend to show that $r_{1}=j_{1}, r_{2}=j_{2}, r_{3}=j_{3}$ and $r_{4}=j_{4}$, which clearly suffices to establish our claim. Now let + +$$ +R=\left\{i \mid r_{i}>j_{i}\right\} +$$ + +denote the set indices where Romeo's corresponding number is larger and define similarly + +$$ +J=\left\{i \mid r_{i}2$, then w.l.o.g. $\{1,2,3\} \subseteq R$, which easily contradicted (4). Therefore $|R| \leq 2$, so let us suppose for the moment that $|R|=2$. Then w.l.o.g. $R=\{1,2\}$, i.e. $r_{1}>j_{1}, r_{2}>j_{2}, r_{3} \leq j_{3}, r_{4} \leq j_{4}$. It follows that $r_{1} r_{2}-r_{3} r_{4}>j_{1} j_{2}-j_{3} j_{4}$, but (1) + (2) - (3) - (4) actually tells us that both sides of this strict inequality are equal. This contradiction yields $|R| \leq 1$ and replacing the roles Romeo and Juliet played in the argument just performed we similarly infer $|J| \leq 1$. For these reasons at least two of the four desired equalities hold, say $r_{1}=1_{1}$ and $r_{2}=j_{2}$. Now using (3) and (4) we easily get $r_{3}=j_{3}$ and $r_{4}=j_{4}$ as well. + +Problem 6. Find all finite sets of positive integers with at least two elements such that for any two numbers $a, b(a>b)$ belonging to the set, the number $\frac{b^{2}}{a-b}$ belongs to the set, too. + +Answer: $X=\{a, 2 a\}$, where $a$ is an arbitrary nonnegative integer. + +Solution: Let $X$ be a set we seek for, and $a$ be its minimal element. For each other element $b$ we have $\frac{a^{2}}{b-a} \geq a$, hence $b \leq 2 a$. Therefore all the elements of $X$ belong to the interval $[a, 2 a]$. So the quotient of any two elements of $X$ is at most 2 . + +Now consider two biggest elements $d$ and $c, c1040$ and $12 \cdot 79<1001$. +- $13 \cdot k \in A$ for $k \geq 80$. As $13 \cdot k \geq 13 \cdot 80=1040$, we are done. + +Now take $A=\{1001,1008,1012,1035,1040\}$. The prime factorizations are $1001=7 \cdot 11 \cdot 13,1008=7 \cdot 2^{4} \cdot 3^{2}$, $1012=2^{2} \cdot 11 \cdot 23,1035=5 \cdot 3^{2} \cdot 23,1040=2^{4} \cdot 5 \cdot 13$. The sum of exponents of each prime occurring in these representations is even. Thus the product of elements of $A$ is a perfect square. + +Problem 9. Suppose that the positive integers $a$ and $b$ satisfy the equation + +$$ +a^{b}-b^{a}=1008 . +$$ + +Prove that $a$ and $b$ are congruent modulo 1008. + +Solution: Observe that $1008=2^{4} \cdot 3^{2} \cdot 7$. First we show that $a$ and $b$ cannot both be even. For suppose the largest of them were equal to $2 x$ and the smallest of them equal to $2 y$, where $x \geq y \geq 1$. Then + +$$ +\pm 1008=(2 x)^{2 y}-(2 y)^{2 x} +$$ + +so that $2^{2 y}$ divides 1008 . It follows that $y \leq 2$. If $y=2$, then $\pm 1008=(2 x)^{4}-4^{2 x}$, and + +$$ +\pm 63=x^{4}-4^{2 x-2}=\left(x^{2}+4^{x-1}\right)\left(x^{2}-4^{x-1}\right) \text {. } +$$ + +But $x^{2}-4^{x-1}$ is easily seen never to divide 63; already at $x=4$ it is too large. Suppose that $y=1$. Then $\pm 1008=(2 x)^{2}-2^{2 x}$, and + +$$ +\pm 252=x^{2}-2^{2 x-2}=\left(x+2^{x-1}\right)\left(x-2^{x-1}\right) . +$$ + +This equation has no solutions. Clearly $x$ must be even. $x=2,4,6,8$ do not work, and when $x \geq 10$, then $x+2^{x-1}>252$. + +We see that $a$ and $b$ cannot both be even, so they must both be odd. They cannot both be divisible by 3 , for then $1008=a^{b}-b^{a}$ would be divisible by 27 ; therefore neither of them is. Likewise, none of them is divisible by 7 . + +Everything will now follow from repeated use of the following fact, where $\varphi$ denotes Euler's totient function: + +If $n \mid 1008, a$ and $b$ are relatively prime to both $n$ and $\varphi(n)$, and $a \equiv b \bmod \varphi(n)$, then also $a \equiv b \bmod n$. + +To prove the fact, use Euler's Totient Theorem: $a^{\varphi(n)} \equiv b^{\varphi(n)} \equiv 1 \bmod n$. From $a \equiv b \equiv d \bmod \varphi(n)$, we get + +$$ +0 \equiv 1008=a^{b}-b^{a} \equiv a^{d}-b^{d} \bmod n, +$$ + +and since $d$ is invertible modulo $\varphi(n)$, we may deduce that $a \equiv b \bmod n$. + +Now begin with $a \equiv b \equiv 1 \bmod 2$. From $\varphi(4)=2, \varphi(8)=4$ and $\varphi(16)=8$, we get congruence of $a$ and $b$ modulo 4, 8 and 16 in turn. We established that $a$ and $b$ are not divisible by 3 . Since $\varphi(3)=2$, we get $a \equiv b$ $\bmod 3$, then from $\varphi(9)=6$, deduce $a \equiv b \bmod 9$. Finally, since $a$ and $b$ are not divisible by 7 , and $\varphi(7)=6$, infer $a \equiv b \bmod 7$. + +Consequently, $a \equiv b \bmod 1008$. We remark that the equation possesses at least one solution, namely $1009^{1}-1^{1009}=1008$. It is unknown whether there exist others. + +Problem 10. For a positive integer $n$, let $S(n)$ denote the sum of its digits. Find the largest possible value of the expression $\frac{S(n)}{S(16 n)}$. + +## Answer: 13 + +Solution: It is obvious that $S(a b) \leq S(a) S(b)$ for all positive integers $a$ and $b$. From here we get + +$$ +S(n)=S(n \cdot 10000)=S(16 n \cdot 625) \leq S(16 n) \cdot 13 \text {; } +$$ + +so we get $\frac{S(n)}{S(16 n)} \leq 13$. + +For $n=625$ we have an equality. So the largest value is 13 . + +Problem 11. Consider a subset $A$ of 84 elements of the set $\{1,2, \ldots, 169\}$ such that no two elements in the set add up to 169 . Show that $A$ contains a perfect square. + +Solution: If $169 \in A$, we are done. If not, then + +$$ +A \subset \bigcup_{k=1}^{84}\{k, 169-k\} +$$ + +Since the sum of the numbers in each of the sets in the union is 169, each set contains at most one element of $A$; on the other hand, as $A$ has 84 elements, each set in the union contains exactly one element of $A$. So there is an $a \in A$ such that $a \in\{25,144\}$. $a$ is a perfect square. + +Problem 12. In a school class with $3 n$ children, any two children make a common present to exactly one other child. Prove that for all odd $n$ it is possible that the following holds: + +For any three children $A, B$ and $C$ in the class, if $A$ and $B$ make a present to $C$ then $A$ and $C$ make a present to $B$. + +Solution: Assume there exists a set $\mathscr{S}$ of sets of three children such that any set of two children is a subset of exactly one member of $\mathscr{S}$, and assume that the children $A$ and $B$ make a common present to $C$ if and only if $\{A, B, C\} \in \mathscr{S}$. Then it is true that any two children $A$ and $B$ make a common present to exactly one other child $C$, namely the unique child such that $\{A, B, C\} \in \mathscr{S}$. Because $\{A, B, C\}=\{A, C, B\}$ it is also true that if $A$ and $B$ make a present to $C$ then $A$ and $C$ make a present to $B$. We shall construct such a set $\mathscr{S}$. + +Let $A_{1}, \ldots, A_{n}, B_{1}, \ldots B_{n}, C_{1}, \ldots, C_{n}$ be the children, and let the following sets belong to $\mathscr{S}$. (1) $\left\{A_{i}, B_{i}, C_{i}\right\}$ for $1 \leq i \leq n$. (2) $\left\{A_{i}, A_{j}, B_{k}\right\},\left\{B_{i}, B_{j}, C_{k}\right\}$ and $\left\{C_{i}, C_{j}, A_{k}\right\}$ for $1 \leq i2008$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-07.jpg?height=559&width=569&top_left_y=2059&top_left_x=755) + +The square $76 \times 76$ is not enough. If it was, consider the "circumferences" of the 1004 dominoes of size $2 \times 3$, see figure; they should fit inside $77 \times 77$ square without overlapping. But $6 \cdot 1004=6024>5929=77 \cdot 77$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-08.jpg?height=185&width=263&top_left_y=393&top_left_x=905) + +Problem 16. Let $A B C D$ be a parallelogram. The circle with diameter $A C$ intersects the line $B D$ at points $P$ and $Q$. The perpendicular to the line $A C$ passing through the point $C$ intersects the lines $A B$ and $A D$ at points $X$ and $Y$, respectively. Prove that the points $P, Q, X$ and $Y$ lie on the same circle. + +Solution: If the lines $B D$ and $X Y$ are parallel the statement is trivial. Let $M$ be the intersection point of $B D$ and $X Y$. + +By Intercept Theorem $M B / M D=M C / M Y$ and $M B / M D=M X / M C$, hence $M C^{2}=M X \cdot M Y$. By the circle property $M C^{2}=M P \cdot M Q$ (line $M C$ is tangent and line $M P$ is secant to the circle). Therefore we have $M X \cdot M Y=M P \cdot M Q$ and the quadrilateral $P Q Y X$ is inscribed. + +Problem 17. Assume that $a, b, c$ and $d$ are the sides of a quadrilateral inscribed in a given circle. Prove that the product $(a b+c d)(a c+b d)(a d+b c)$ acquires its maximum when the quadrilateral is a square. + +Solution: Let $A B C D$ be the quadrilateral, and let $A B=a, B C=b, C D=c, A D=d, A C=e, B D=f$. Ptolemy's Theorem gives $a c+b d=e f$. Since the area of triangle $A B C$ is $a b e / 4 R$, where $R$ is the circumradius, and similarly the area of triangle $A C D$, the product $(a b+c d) e$ equals $4 R$ times the area of quadrilateral $A B C D$. Similarly, this is also the value of the product $f(a d+b c)$, so $(a b+c d)(a c+b d)(a d+b c)$ is maximal when the quadrilateral has maximal area. Since the area of the quadrilateral is equal to $\frac{1}{2} e f \sin u$, where $u$ is one of the angles between the diagonals $A C$ and $B D$, it is maximal when all the factors of the product $d e \sin u$ are maximal. The diagonals $d$ and $e$ are maximal when they are diagonals of the circle, and $\sin u$ is maximal when $u=90^{\circ}$. Thus, $(a b+c d)(a c+b d)(a d+b c)$ is maximal when $A B C D$ is a square. + +Problem 18. Let $A B$ be a diameter of a circle $S$, and let $L$ be the tangent at $A$. Furthermore, let $c$ be a fixed, positive real, and consider all pairs of points $X$ and $Y$ lying on $L$, on opposite sides of $A$, such that $|A X| \cdot|A Y|=c$. The lines $B X$ and $B Y$ intersect $S$ at points $P$ and $Q$, respectively. Show that all the lines $P Q$ pass through a common point. + +Solution: Let $S$ be the unit circle in the $x y$-plane with origin $O$, put $A=(1,0), B=(-1,0)$, take $L$ as the line $x=1$, and suppose $X=(1,2 p)$ and $Y=(1,-2 q)$, where $p$ and $q$ are positive real numbers with $p q=\frac{c}{4}$. If $\alpha=\angle A B P$ and $\beta=\angle A B Q$, then $\tan \alpha=p$ and $\tan \beta=q$. + +Let $P Q$ intersect the $x$-axis in the point $R$. By the Inscribed Angle Theorem, $\angle R O P=2 \alpha$ and $\angle R O Q=2 \beta$. The triangle $O P Q$ is isosceles, from which $\angle O P Q=\angle O Q P=90^{\circ}-\alpha-\beta$, and $\angle O R P=90^{\circ}-\alpha+\beta$. The Law of Sines gives + +$$ +\frac{O R}{\sin \angle O P R}=\frac{O P}{\sin \angle O R P} +$$ + +which implies + +$$ +\begin{aligned} +O R & =\frac{\sin \angle O P R}{\sin \angle O R P}=\frac{\sin \left(90^{\circ}-\alpha-\beta\right)}{\sin \left(90^{\circ}-\alpha+\beta\right)}=\frac{\cos (\alpha+\beta)}{\cos (\alpha-\beta)} \\ +& =\frac{\cos \alpha \cos \beta-\sin \alpha \sin \beta}{\cos \alpha \cos \beta+\sin \alpha \sin \beta}=\frac{1-\tan \alpha \tan \beta}{1+\tan \alpha \tan \beta} \\ +& =\frac{1-p q}{1+p q}=\frac{1-\frac{c}{4}}{1+\frac{c}{4}}=\frac{4-c}{4+c} . +\end{aligned} +$$ + +Hence the point $R$ lies on all lines $P Q$. + +Solution 2: Perform an inversion in the point $B$. Since angles are preserved under inversion, the problem transforms into the following: Let $S$ be a line, let the circle $L$ be tangent to it at point $A$, with $\infty$ as the diametrically opposite point. Consider all points $X$ and $Y$ lying on $L$, on opposite sides of $A$, such that if $\alpha=\angle A B X$ and $\beta=\angle A B Y$, then $\tan \alpha \tan \beta=\frac{c}{4}$. The lines $X \infty$ and $Y \infty$ will intersect $S$ in points $P$ and $Q$, respectively. Show that all the circles $P Q \infty$ will pass through a common point. + +To prove this, draw the line through $A$ and $\infty$, and define $R$ as the point lying on this line, opposite to $\infty$, and at distance $\frac{c r}{2}$ from $A$, where $r$ is the radius of $L$. Since + +$$ +\tan \alpha=\frac{|A P|}{2 r}, \quad \tan \beta=\frac{|A Q|}{2 r}, +$$ + +we have + +$$ +\frac{c}{4}=\tan \alpha \tan \beta=\frac{|A P||A Q|}{4 r^{2}} +$$ + +so that $|A P|=\frac{c r^{2}}{|A Q|}$, whence + +$$ +\tan \angle \infty R P=\frac{|A P|}{|A R|}=\frac{\frac{c r^{2}}{|A Q|}}{\frac{c r}{2}}=\frac{2 r}{|A Q|}=\tan \angle \infty Q P +$$ + +Consequently, $\infty, P, Q$, and $R$ are concyclic. + +Problem 19. In a circle of diameter 1, some chords are drawn. The sum of their lengths is greater than 19. Prove that there is a diameter intersecting at least 7 chords. + +Solution: For each hord consider the smallest arc subtended by it and the symmetric image of this arc accordingly to the center. The sum of lengths of all these arcs is more than $19 \cdot 2=38$. As $\frac{38}{\pi \cdot 1}>12$, there is a point on the circumference belonging to $>\frac{12}{2}$ original arcs, so it belongs to $\geq 7$ original arcs. We can take a diameter containing this point. + +Problem 20. Let $M$ be a point on $B C$ and $N$ be a point on $A B$ such that $A M$ and $C N$ are angle bisectors of the triangle $A B C$. Given that + +$$ +\frac{\angle B N M}{\angle M N C}=\frac{\angle B M N}{\angle N M A} +$$ + +prove that the triangle $A B C$ is isosceles. + +![](https://cdn.mathpix.com/cropped/2024_04_17_64f81c74a8132dd111d8g-09.jpg?height=471&width=645&top_left_y=2146&top_left_x=708) + +Solution: Let $O$ and $I$ be the incentres of $A B C$ and $N B M$, respectively; denote angles as in the figure. We get + +$$ +\alpha+\beta=\varepsilon+\varphi, \quad \gamma+\delta=2 \alpha+2 \beta, \quad \gamma=k \cdot \varepsilon, \quad \delta=k \cdot \varphi +$$ + +From here we get $k=2$. Therefore $\triangle N I M=\triangle N O M$, so $I O \perp N M$. In the triangle $N B M$ the bisector coincides with the altitude, so $B N=B M$. So we get + +$$ +\frac{A B \cdot B C}{A C+B C}=\frac{B C \cdot A B}{A B+A C} +$$ + +and $A B=B C$. + diff --git a/BalticWay/md/en-bw09eng.md b/BalticWay/md/en-bw09eng.md new file mode 100644 index 0000000000000000000000000000000000000000..c72c906e871097e980a69edc04e096a0ee9164a0 --- /dev/null +++ b/BalticWay/md/en-bw09eng.md @@ -0,0 +1,85 @@ +Time allowed: $4 \frac{1}{2}$ hours. +Questions may be asked during the first 30 minutes. + +Problem 1. A polynomial $p(x)$ of degree $n \geq 2$ has exactly $n$ real roots, counted with multiplicity. We know that the coefficient of $x^{n}$ is 1 , all the roots are less than or equal to 1 , and $p(2)=3^{n}$. What values can $p(1)$ take? +Problem 2. Let $a_{1}, a_{2}, \ldots, a_{100}$ be nonnegative integers satisfying the inequality + +$$ +\begin{aligned} +a_{1} \cdot\left(a_{1}-1\right) \cdot \ldots \cdot\left(a_{1}-20\right)+a_{2} & \cdot\left(a_{2}-1\right) \cdot \ldots \cdot\left(a_{2}-20\right)+ \\ +& \ldots+a_{100} \cdot\left(a_{100}-1\right) \cdot \ldots \cdot\left(a_{100}-20\right) \leq 100 \cdot 99 \cdot 98 \cdot \ldots \cdot 79 +\end{aligned} +$$ + +Prove that $a_{1}+a_{2}+\ldots+a_{100} \leq 9900$. +Problem 3. Let $n$ be a given positive integer. Show that we can choose numbers $c_{k} \in\{-1,1\}$ $(1 \leq k \leq n)$ such that + +$$ +0 \leq \sum_{k=1}^{n} c_{k} \cdot k^{2} \leq 4 +$$ + +Problem 4. Determine all integers $n>1$ for which the inequality + +$$ +x_{1}^{2}+x_{2}^{2}+\ldots+x_{n}^{2} \geq\left(x_{1}+x_{2}+\ldots+x_{n-1}\right) x_{n} +$$ + +holds for all real $x_{1}, x_{2}, \ldots, x_{n}$. +Problem 5. Let $f_{0}=f_{1}=1$ and $f_{i+2}=f_{i+1}+f_{i}(i \geq 0)$. Find all real solutions of the equation + +$$ +x^{2010}=f_{2009} \cdot x+f_{2008} +$$ + +Problem 6. Let $a$ and $b$ be integers such that the equation $x^{3}-a x^{2}-b=0$ has three integer roots. Prove that $b=d k^{2}$, where $d$ and $k$ are integers and $d$ divides $a$. +Problem 7. Suppose that for a prime number $p$ and integers $a, b, c$ the following holds: + +$$ +6|p+1, \quad p| a+b+c, \quad p \mid a^{4}+b^{4}+c^{4} +$$ + +Prove that $p \mid a, b, c$. +Problem 8. Determine all positive integers $n$ for which there exists a partition of the set + +$$ +\{n, n+1, n+2, \ldots, n+8\} +$$ + +into two subsets such that the product of all elements of the first subset is equal to the product of all elements of the second subset. +Problem 9. Determine all positive integers $n$ for which $2^{n+1}-n^{2}$ is a prime number. +Problem 10. Let $d(k)$ denote the number of positive divisors of a positive integer $k$. Prove that there exist infinitely many positive integers $M$ that cannot be written as + +$$ +M=\left(\frac{2 \sqrt{n}}{d(n)}\right)^{2} +$$ + +for any positive integer $n$. + +Problem 11. Let $M$ be the midpoint of the side $A C$ of a triangle $A B C$, and let $K$ be a point on the ray $B A$ beyond $A$. The line $K M$ intersects the side $B C$ at the point $L . P$ is the point on the segment $B M$ such that $P M$ is the bisector of the angle $L P K$. The line $\ell$ passes through $A$ and is parallel to $B M$. Prove that the projection of the point $M$ onto the line $\ell$ belongs to the line $P K$. +Problem 12. In a quadrilateral $A B C D$ we have $A B \| C D$ and $A B=2 C D$. A line $\ell$ is perpendicular to $C D$ and contains the point $C$. The circle with centre $D$ and radius $D A$ intersects the line $\ell$ at points $P$ and $Q$. Prove that $A P \perp B Q$. +Problem 13. The point $H$ is the orthocentre of a triangle $A B C$, and the segments $A D, B E$, $C F$ are its altitudes. The points $I_{1}, I_{2}, I_{3}$ are the incentres of the triangles $E H F, F H D, D H E$, respectively. Prove that the lines $A I_{1}, B I_{2}, C I_{3}$ intersect at a single point. + +Problem 14. For which $n \geq 2$ is it possible to find $n$ pairwise non-similar triangles $A_{1}, A_{2}, \ldots, A_{n}$ such that each of them can be divided into $n$ pairwise non-similar triangles, each of them similar to one of $A_{1}, A_{2}, \ldots, A_{n}$ ? + +Problem 15. A unit square is cut into $m$ quadrilaterals $Q_{1}, \ldots, Q_{m}$. For each $i=1, \ldots, m$ let $S_{i}$ be the sum of the squares of the four sides of $Q_{i}$. Prove that + +$$ +S_{1}+\ldots+S_{m} \geq 4 +$$ + +Problem 16. A $n$-trønder walk is a walk starting at $(0,0)$, ending at $(2 n, 0)$ with no self intersection and not leaving the first quadrant, where every step is one of the vectors $(1,1),(1,-1)$ or $(-1,1)$. +![](https://cdn.mathpix.com/cropped/2024_11_22_16411a0434670ddacd23g-2.jpg?height=152&width=711&top_left_y=1272&top_left_x=1076) +(The figure shows the possible 2-trønder walks.) + +Find the number of $n$-trønder walks. +Problem 17. Find the largest integer $n$ for which there exist $n$ different integers such that none of them are divisible by either of 7,11 , and 13 , but the sum of any two of them is divisible by at least one of 7,11 , and 13. + +Problem 18. Let $n>2$ be an integer. In a country there are $n$ cities and every two of them are connected by a direct road. Each road is assigned an integer from the set $\{1,2, \ldots, m\}$ (different roads may be assigned the same number). The priority of a city is the sum of the numbers assigned to roads which lead to it. Find the smallest $m$ for which it is possible that all cities have a different priority. + +Problem 19. In a party of eight persons, each pair of persons either know each other or do not know each other. Each person knows exactly three of the others. Determine whether the following two conditions can be satisfied simultaneously: + +- for any three persons, at least two do not know each other; +- for any four persons there are at least two who know each other. + +Problem 20. In the future city Baltic Way there are sixteen hospitals. Every night exactly four of them must be on duty for emergencies. Is it possible to arrange the schedule in such a way that after twenty nights every pair of hospitals have been on common duty exactly once? + diff --git a/BalticWay/md/en-bw10sol.md b/BalticWay/md/en-bw10sol.md new file mode 100644 index 0000000000000000000000000000000000000000..1d346bf5ff51c2e51303adca93e126b0e4b5a2f4 --- /dev/null +++ b/BalticWay/md/en-bw10sol.md @@ -0,0 +1,460 @@ +# BALTIC WAY 2010 - SOLUTIONS + +REYKJAVIK, NOVEMBER 6TH 2010 + +Time allowed: $4 \frac{1}{2}$ hours. + +Questions may be asked during the first 30 minutes. + +The only tools allowed are a ruler and a compass. + +Each problem is worth 5 points. + +Problem 1. Find all quadruples of real numbers $(a, b, c, d)$ satisfying the system of equations + +$$ +\left\{\begin{array}{l} +(b+c+d)^{2010}=3 a \\ +(a+c+d)^{2010}=3 b \\ +(a+b+d)^{2010}=3 c \\ +(a+b+c)^{2010}=3 d +\end{array}\right. +$$ + +Solution. There are two solutions: $(0,0,0,0)$ and $\left(\frac{1}{3}, \frac{1}{3}, \frac{1}{3}, \frac{1}{3}\right)$. + +If $(a, b, c, d)$ satisfies the equations, then we may as well assume $a \leq b \leq c \leq d$. These are non-negative because an even power of a real number is always non-negative. It follows that + +$$ +b+c+d \geq a+c+d \geq a+b+d \geq a+b+c +$$ + +and since $x \mapsto x^{2010}$ is increasing for $x \geq 0$ we have that + +$$ +3 a=(b+c+d)^{2010} \geq(a+c+d)^{2010} \geq(a+b+d)^{2010} \geq(a+b+c)^{2010}=3 d +$$ + +We conclude that $a=b=c=d$ and all the equations take the form $(3 a)^{2010}=3 a$, so $a=0$ or $3 a=1$. Finally, it is clear that $a=b=c=d=0$ and $a=b=c=d=\frac{1}{3}$ solve the system. + +Problem 2. Let $x$ be a real number such that $01, x_{2}>1,\left|x_{1}-x_{2}\right|<1$ and moreover $x_{1} \leq x_{2}$. Then + +$$ +\frac{x_{1}}{x_{2}}+\frac{x_{2}}{x_{1}} \leq 1+\frac{x_{2}}{x_{1}}<1+\frac{x_{1}+1}{x_{1}}=2+\frac{1}{x_{1}}<2+1=2 \cdot 2-1 . +$$ + +Now we proceed to the inductive step, and assume that the numbers $x_{1}, x_{2}, \ldots, x_{n}, x_{n+1}>1$ are given such that $\left|x_{i}-x_{i+1}\right|<1$ for $i=1,2, \ldots, n-1, n$. Let + +$$ +S=\frac{x_{1}}{x_{2}}+\frac{x_{2}}{x_{3}}+\ldots+\frac{x_{n-1}}{x_{n}}+\frac{x_{n}}{x_{1}}, \quad S^{\prime}=\frac{x_{1}}{x_{2}}+\frac{x_{2}}{x_{3}}+\ldots+\frac{x_{n-1}}{x_{n}}+\frac{x_{n}}{x_{n+1}}+\frac{x_{n+1}}{x_{1}} +$$ + +The inductive assumption is that $S<2 n-1$ and the goal is that $S^{\prime}<2 n+1$. From the above relations involving $S$ and $S^{\prime}$ we see that it suffices to prove the inequality + +$$ +\frac{x_{n}}{x_{n+1}}+\frac{x_{n+1}-x_{n}}{x_{1}} \leq 2 +$$ + +We consider two cases. If $x_{n} \leq x_{n+1}$, then using the conditions $x_{1}>1$ and $x_{n+1}-x_{n}<1$ we obtain + +$$ +\frac{x_{n}}{x_{n+1}}+\frac{x_{n+1}-x_{n}}{x_{1}} \leq 1+\frac{x_{n+1}-x_{n}}{x_{1}}<1+\frac{1}{x_{1}}<2, +$$ + +and if $x_{n}>x_{n+1}$, then using the conditions $x_{n}1$ we get + +$$ +\frac{x_{n}}{x_{n+1}}+\frac{x_{n+1}-x_{n}}{x_{1}}<\frac{x_{n}}{x_{n+1}}<\frac{x_{n+1}+1}{x_{n+1}}=1+\frac{1}{x_{n+1}}<1+1=2 . +$$ + +The induction is now complete. + +Problem 4. Find all polynomials $P(x)$ with real coefficients such that + +$$ +(x-2010) P(x+67)=x P(x) +$$ + +for every integer $x$. + +Solution. Taking $x=0$ in the given equality leads to $-2010 P(67)=0$, implying $P(67)=0$. Whenever $i$ is an integer such that $1 \leq i<30$ and $P(i \cdot 67)=0$, taking $x=i \cdot 67$ leads to $(i \cdot 67-2010) P((i+1) \cdot 67)=0$; as $i \cdot 67<2010$ for $i<30$, this implies $P((i+1) \cdot 67)=0$. Thus, by induction, $P(i \cdot 67)=0$ for all $i=1,2, \ldots, 30$. Hence + +$$ +P(x) \equiv(x-67)(x-2 \cdot 67) \ldots(x-30 \cdot 67) Q(x) +$$ + +where $Q(x)$ is another polynomial. + +Substituting this expression for $P$ in the original equality, one obtains + +$$ +(x-2010) \cdot x(x-67) \ldots(x-29 \cdot 67) Q(x+67)=x(x-67)(x-2 \cdot 67) \ldots(x-30 \cdot 67) Q(x) +$$ + +which is equivalent to + +$$ +x(x-67)(x-2 \cdot 67) \ldots(x-30 \cdot 67)(Q(x+67)-Q(x))=0 . +$$ + +By conditions of the problem, this holds for every integer $x$. Hence there are infinitely many roots of polynomial $Q(x+67)-Q(x)$, implying that $Q(x+67)-Q(x) \equiv 0$. Let $c=Q(0)$; then $Q(i \cdot 67)=c$ for every integer $i$ by easy induction. Thus polynomial $Q(x)-c$ has infinitely many roots whence $Q(x) \equiv c$. + +Consequently, $P(x)=c(x-67)(x-2 \cdot 67) \ldots(x-30 \cdot 67)$ for some real number $c$. As equation (1) shows, all such polynomials fit. + +Problem 5. Let $\mathbb{R}$ denote the set of real numbers. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that + +$$ +f\left(x^{2}\right)+f(x y)=f(x) f(y)+y f(x)+x f(x+y) +$$ + +for all $x, y \in \mathbb{R}$. + +Solution. Setting $x=0$ in the equation we get $f(0) f(y)=(2-y) f(0)$. If $f(0) \neq 0$, then $f(y)=2-y$ and it is easy to verify that this is a solution to the equation. + +Now assume $f(0)=0$. Setting $y=0$ in the equation we get $f\left(x^{2}\right)=x f(x)$. Interchanging $x$ and $y$ and subtracting from the original equation we get + +$$ +x f(x)-y f(y)=y f(x)-x f(y)+(x-y) f(x+y) +$$ + +or equivalently + +$$ +(x-y)(f(x)+f(y))=(x-y) f(x+y) \text {. } +$$ + +For $x \neq y$ we therefore have $f(x+y)=f(x)+f(y)$. Since $f(0)=0$ this clearly also holds for $x=0$, and for $x=y \neq 0$ we have + +$$ +f(2 x)=f\left(\frac{x}{3}\right)+f\left(\frac{5 x}{3}\right)=f\left(\frac{x}{3}\right)+f\left(\frac{2 x}{3}\right)+f(x)=f(x)+f(x) . +$$ + +Setting $x=y$ in the original equation, using $f\left(x^{2}\right)=x f(x)$ and $f(2 x)=2 f(x)$ we get + +$$ +0=f(x)^{2}+x f(x)=f(x)(f(x)+x) . +$$ + +So for each $x$, either $f(x)=0$ or $f(x)=-x$. But then + +$$ +f(x)+f(y)=f(x+y)= \begin{cases}0 & \text { or } \\ -(x+y)\end{cases} +$$ + +and we conclude that $f(x)=-x$ if and only if $f(y)=-y$ when $x, y \neq 0$. We therefore have either $f(x)=-x$ for all $x$ or $f(x)=0$ for all $x$. It is easy to verify that both are solutions to the original equation. + +Problem 6. An $n \times n$ board is coloured in $n$ colours such that the main diagonal (from top-left to bottom-right) is coloured in the first colour; the two adjacent diagonals are coloured in the second colour; the two next diagonals (one from above and one from below) are coloured in the third colour, etc.; the two corners (top-right and bottom-left) are coloured in the $n$-th colour. It happens that it is possible to place on the board $n$ rooks, no two attacking each other and such that no two rooks stand on cells of the same colour. Prove that $n \equiv 0(\bmod 4)$ or $n \equiv 1$ $(\bmod 4)$. + +Solution. Use the usual coordinate system for which the cells of the main diagonal have coordinates $(k, k)$, where $k=1, \ldots, n$. Let $(k, f(k))$ be the coordinates of the $k$-th rook. Then by color restrictions for rooks we have + +$$ +\sum_{k=1}^{n}(f(k)-k)^{2}=\sum_{i=0}^{n-1} i^{2}=\frac{n(n-1)(2 n-1)}{6} . +$$ + +Since the rooks are non-attacking we have + +$$ +\sum_{k=1}^{n}(f(k))^{2}=\sum_{i=1}^{n} i^{2}=\frac{n(n+1)(2 n+1)}{6} . +$$ + +By subtracting these equalities we obtain + +$$ +\sum_{k=1}^{n} k f(k)=\frac{n\left(2 n^{2}+9 n+1\right)}{12} +$$ + +Now it is trivial to check that the last number is integer if and only if $n \equiv 0$ or $1(\bmod 4)$. + +Problem 7. There are some cities in a country; one of them is the capital. For any two cities $A$ and $B$ there is a direct flight from $A$ to $B$ and a direct flight from $B$ to $A$, both having the same price. Suppose that all round trips with exactly one landing in every city have the same total cost. Prove that all round trips that miss the capital and with exactly one landing in every remaining city cost the same. + +Solution. Let $C$ be the capital and $C_{1}, C_{2}, \ldots, C_{n}$ be the remaining cities. Denote by $d(x, y)$ the price of the connection between the cities $x$ and $y$, and let $\sigma$ be the total price of a round trip going exactly once through each city. + +Now consider a round trip missing the capital and visiting every other city exactly once; let $s$ be the total price of that trip. Suppose $C_{i}$ and $C_{j}$ are two consecutive cities on the route. Replacing the flight $C_{i} \rightarrow C_{j}$ by two flights: from $C_{i}$ to the capital and from the capital to $C_{j}$, we get a round trip through all cities, with total price $\sigma$. It follows that $\sigma=s+d\left(C, C_{i}\right)+d\left(C, C_{j}\right)-$ $d\left(C_{i}, C_{j}\right)$, so it remains to show that the quantity $\alpha(i, j)=d\left(C, C_{i}\right)+d\left(C, C_{j}\right)-d\left(C_{i}, C_{j}\right)$ is the same for all 2-element subsets $\{i, j\} \subset\{1,2, \ldots, n\}$. + +For this purpose, note that $\alpha(i, j)=\alpha(i, k)$ whenever $i, j, k$ are three distinct indices; indeed, this equality is equivalent to $d\left(C_{j}, C\right)+d\left(C, C_{i}\right)+d\left(C_{i}, C_{k}\right)=d\left(C_{j}, C_{i}\right)+d\left(C_{i}, C\right)+d\left(C, C_{k}\right)$, which is true by considering any trip from $C_{k}$ to $C_{j}$ going through all cities except $C$ and $C_{i}$ exactly once and completing this trip to a round trip in two ways: $C_{j} \rightarrow C \rightarrow C_{i} \rightarrow C_{k}$ and $C_{j} \rightarrow C_{i} \rightarrow C \rightarrow C_{k}$. Therefore the values of $\alpha$ coincide on any pair of 2-element sets sharing a common element. But then clearly $\alpha(i, j)=\alpha\left(i, j^{\prime}\right)=\alpha\left(i^{\prime}, j^{\prime}\right)$ for all indices $i, j, i^{\prime}, j^{\prime}$ with $i \neq j, i^{\prime} \neq j^{\prime}$, and the solution is complete. + +Problem 8. In a club with 30 members, every member initially had a hat. One day each member sent his hat to a different member (a member could have received more than one hat). Prove that there exists a group of 10 members such that no one in the group has received a hat from another one in the group. + +Solution. Let $S$ be the given group of 30 people. Consider all subsets $A \subset S$ such that no member of $A$ received a hat from a member of $A$. Among such subsets, let $T$ be a subset of maximal cardinality. The assertion of the problem is that $|T| \geq 10$. + +Let $U \subset S$ consist of all people that have received a hat from a person belonging to $T$. Now consider any member $x \in S \backslash(T \cup U)$. Since $x \notin U$, no member of $T$ sent his hat to $x$. It follows that no member of $T$ sent a hat to a person from $T \cup\{x\}$. But the maximality of $T$ implies that some person from $T \cup\{x\}$ sent his hat to a person from the same subset. This means that $x$ sent his hat to a person from $T$. Consequently, all members of the subset $S \backslash(T \cup U)$ sent their hats to people in $T$. In particular, $S \backslash(T \cup U)$ has the property described in the beginning. The maximality of $T$ gives $|S \backslash(T \cup U)| \leq|T|$. Finally, we obviously have $|U| \leq|T|$, so + +$$ +|T| \geq|S \backslash(T \cup U)|=|S|-|T|-|U| \geq|S|-2|T|, +$$ + +or $|T| \geq \frac{1}{3}|S|=10$, as desired. + +Problem 9. There is a pile of 1000 matches. Two players each take turns and can take 1 to 5 matches. It is also allowed at most 10 times during the whole game to take 6 matches, for example 7 exceptional moves can be done by the first player and 3 moves by the second and then no more exceptional moves are allowed. Whoever takes the last match wins. Determine which player has a winning strategy. + +Solution. The second player wins. + +Let $r$ be the number of the remaining exceptional moves in the current position (at the beginning of the game $r=10$ and $r$ decreases during the game). The winning strategy of the +second player is the following. After his move the number of matches in the pile must have the form $6 n+r$, where $n>r$, or $7 n$, where $n \leq r$ (observe that $6 n+r=7 n$ for $n=r$ ). + +At the beginning of the game the initial number of matches $1000=6 \cdot 165+10$ agrees with this strategy. + +What happens during two consecutive moves? + +Consider the case $n>r$ first. If the first player takes $k=1,2, \ldots 5$ matches (and hence $r$ is not changing during his move) then the second player takes $6-k$ matches. So players take 6 matches together and the pile contains now $6(n-1)+r$ matches. + +If the first player takes 6 matches, then $r$ decreases by 1 . The second player takes 1 match. After his turn the pile contains $6(n-1)+(r-1)$ matches as he wish. + +Now consider the case $n \leq r$. In this situation we have much enough exceptional moves, and we may assume that now each move the players can take up to 6 matches. Then if the first player takes $k$ matches, the second player takes $7-k$ matches. + +Problem 10. Let $n$ be an integer with $n \geq 3$. Consider all dissections of a convex $n$-gon into triangles by $n-3$ non-intersecting diagonals, and all colourings of the triangles with black and white so that triangles with a common side are always of a different colour. Find the least possible number of black triangles. + +Solution 1. The answer is $\left\lfloor\frac{n-1}{3}\right\rfloor$. + +Let $f(n)$ denote the minimum number of black triangles in an $n$-gon. It is clear that $f(3)=0$ and that $f(n)$ is at least 1 for $n=4,5,6$. It is easy to see that for $n=4,5,6$ there is a coloring with only one black triangle, so $f(n)=1$ for $n=4,5,6$. + +First we prove by induction that $f(n) \leq\left\lfloor\frac{n-1}{3}\right\rfloor$. The case for $n=3,4,5$ has already been established. Given an $(n+3)$-gon, draw a diagonal that splits it into an $n$-gon and a 5 -gon. Color the $n$-gon with at most $\left\lfloor\frac{n-1}{3}\right\rfloor$ black triangles. We can then color the 5 -gon compatibly with only one black triangle so $f(n+3) \leq\left\lfloor\frac{n-1}{3}\right\rfloor+1=\left\lfloor\frac{n+3-1}{3}\right\rfloor$. + +Now we prove by induction that $f(n) \geq\left\lfloor\frac{n-1}{3}\right\rfloor$. The case for $n=3,4,5$ has already been established. Given an $(n+3)$-gon, we color it with $f(n+3)$ black triangles and pick one of the black triangles. It separates theree polygons from the $(n+3)$-gon, say an $(a+1)$-gon, $(b+1)$-gon and a $(c+1)$-gon such that $n+3=a+b+c$. We write $r_{m}$ for the remainder of the integer $m$ when divided by 3 . Then + +$$ +\begin{aligned} +f(n+3) & \geq f(a+1)+f(b+1)+f(c+1)+1 \\ +& \geq\left\lfloor\frac{a}{3}\right\rfloor+\left\lfloor\frac{b}{3}\right\rfloor+\left\lfloor\frac{c}{3}\right\rfloor+1 \\ +& =\frac{a-r_{a}}{3}+\frac{b-r_{b}}{3}+\frac{c-r_{c}}{3}+1 \\ +& =\frac{n+3-1-r_{n}}{3}+\frac{4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right)}{3} \\ +& =\left\lfloor\frac{n+3-1}{3}\right\rfloor+\frac{4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right)}{3} . +\end{aligned} +$$ + +Since $0 \leq r_{n}, r_{a}, r_{b}, r_{c} \leq 2$, we have that $4+r_{n}-\left(r_{a}+r_{b}+r_{c}\right) \geq 4+0-6=-2$. But since this number is divisible by 3 , it is in fact $\geq 0$. This completes the induction. + +Solution 2. Call two triangles neighbours if they have a common side. Let the dissections of convex $n$-gons together with appropriate colourings be called $n$-colourings. + +Observe that all triangles of an arbitrary $n$-colouring can be listed, starting with an arbitrary triangle and always continuing the list by a triangle that is a neighbour to some triangle already +in the list. Indeed, suppose that some triangle $\Delta$ is missing from the list. Choose a point $A$ inside a triangle in the list, as well as a point $D$ inside $\Delta$. By convexity, the line segment $A D$ is entirely inside the polygon. As the vertices of the triangles are vertices of the polygon, $A D$ crosses the sides of the triangles only outside their vertices. Hence any consecutive triangles that $A D$ passes through are neighbours. The first triangle that ray $A D$ visits and that is not in the list is one that the list can be continued with. + +Consider such a list of all triangles that starts with a white triangle. Each triangle has at most three neighbours and each black triangle has at least one neighbour occurring in the list before it. Thus at most two neighbours of any black triangle are following it in the list. Each white triangle except for the first one is a neighbour of some triangle preceding it in the list, and according to the construction, that triangle is black. Hence among all triangles except for the first one, there are at most twice as many white triangles as there are black triangles. Altogether, this means $w \leq 2 b+1$ where $b$ and $w$ are the numbers of black and white triangles in the construction, respectively. Observe that this formula holds also if there are no white triangles. + +Hence there are at most $3 b+1$ triangles altogether, i.e., $n-2 \leq 3 b+1$. In integers, this implies $b \geq\left\lceil\frac{n}{3}\right\rceil-1$ which is equivalent to $b \geq\left\lfloor\frac{n-1}{3}\right\rfloor$. + +This number of black triangles can be achieved as follows. Number all vertices of the polygon by 0 through $n-1$. + +If $n=3 k, k \in \mathbb{N}^{+}$, then draw diagonals $(0,3 i-1),(3 i-1,3 i+1),(3 i+1,0)$ for all $i=1, \ldots, k-1$. Colour black every triangle whose vertices are $0,3 i-1$ and $3 i+1$ for some $i=1, \ldots, k-1$. + +If $n=3 k-1$ or $n=3 k-2$ then take a described $3 k$-colouring and cut out 1 or 2 white triangles, respectively (e.g., triangles with vertices $0,1,2$ and $0, n-1, n-2$ ). + +Problem 11. Let $A B C D$ be a square and let $S$ be the point of intersection of its diagonals $A C$ and $B D$. Two circles $k, k^{\prime}$ go through $A, C$ and $B, D$; respectively. Furthermore, $k$ and $k^{\prime}$ intersect in exactly two different points $P$ and $Q$. Prove that $S$ lies on $P Q$. + +Solution. It is clear that $P Q$ is the radical axis of $k$ and $k^{\prime}$. The power of $S$ with respect to $k$ is $-|A S| \cdot|C S|$ and the power of $S$ with respect to $k^{\prime}$ is $-|B S| \cdot|D S|$. Because $A B C D$ is a square, these two numbers are clearly the same. Thus, $S$ has the same power with respect to $k$ and $k^{\prime}$ and lies on the radical axis $P Q$ of $k$ and $k^{\prime}$. + +Problem 12. Let $A B C D$ be a convex quadrilateral with precisely one pair of parallel sides. + +a) Show that the lengths of its sides $A B, B C, C D, D A$ (in this order) do not form an arithmetic progression. + +b) Show that there is such a quadrilateral for which the lengths of its sides $A B, B C, C D$, $D A$ form an arithmetic progression after the order of the lengths is changed. + +Solution. Assume that the lengths of the sides form an arithmetic progression with the first term $a$ and the difference $d$. Suppose that sides $A B$ and $C D$ are parallel, $|A B|>|C D|$ and let $E$ be a point on $A B$ such that $|B E|=|C D|$. Then $|D E|=|C B|$ as opposite sides of a parallelogram, so $|A D|$ and $|D E|$ are two non-consequent terms of the arithmetic progression and $|A D|-|D E|= \pm 2 d$. Further, $|A E|=|A B|-|D C|=2 d$. We get a contradiction to the triangle inequality $|A E|>|| A D|-| D E \mid$. + +We take a triangle with sides $3,3,2$ and add a parallelogram with sides 1 and 2 on the side of length 2 to obtain a trapezoid. Then the lengths of the sides are 1, 2, 4, 3 . + +Problem 13. In an acute triangle $A B C$, the segment $C D$ is an altitude and $H$ is the orthocentre. Given that the circumcentre of the triangle lies on the line containing the bisector of the angle $D H B$, determine all possible values of $\angle C A B$. + +Solution. The value is $\angle C A B=60^{\circ}$. + +Denote by $\ell$ the line containing the angle bisector of $D H B$, and let $E$ be the point where the ray $C D \rightarrow$ intersects the circumcircle of the triangle $A B C$ again. The rays $H D \rightarrow$ and $H B \rightarrow$ are symmetric with respect to $\ell$ by the definition of $\ell$. On the other hand, if the circumcenter of $A B C$ lies on $\ell$, then the circumcircle is symmetric with respect to $\ell$. It follows that the intersections of the rays $H D^{\rightarrow}$ and $H B^{\rightarrow}$ with the circle, which are $E$ and $B$, are symmetric with respect to $\ell$. Moreover, since $H \in \ell$, we conclude that $H E=H B$. + +However, as $E$ lies on the circumcircle of $A B C$, we have + +$$ +\angle A B E=\angle A C E=90^{\circ}-\angle C A B=\angle H B A . +$$ + +This proves that the points $H$ and $E$ are symmetric with respect to the line $A B$. Thus $H B=E B$ and the triangle $B H E$ is equilateral. Finally, $\angle C A B=\angle C E B=60^{\circ}$. + +Obviously the value $\angle C A B=60^{\circ}$ is attained for an equilateral triangle $A B C$. + +Problem 14. Assume that all angles of a triangle $A B C$ are acute. Let $D$ and $E$ be points on the sides $A C$ and $B C$ of the triangle such that $A, B, D$, and $E$ lie on the same circle. Further suppose the circle through $D, E$, and $C$ intersects the side $A B$ in two points $X$ and $Y$. Show that the midpoint of $X Y$ is the foot of the altitude from $C$ to $A B$. + +Solution. We write the power of the point $A$ with respect to the circle $\gamma$ trough $D, E$, and $C$ : + +$$ +|A X||A Y|=|A D \| A C|=|A C|^{2}-|A C||C D| . +$$ + +Similarly, if we calculate the power of $B$ with respect to $\gamma$ we get + +$$ +|B X||B Y|=|B C|^{2}-|B C||C E| \text {. } +$$ + +We have also that $|A C||C D|=|B C||C E|$, the power of the point $C$ with respect to the circle through $A, B, D$, and $E$. Further if $M$ is the middle point of $X Y$ then + +$$ +|A X||A Y|=|A M|^{2}-|X M|^{2} \quad \text { and } \quad|B X||B Y|=|B M|^{2}-|X M|^{2} \text {. } +$$ + +Combining the four displayed identities we get + +$$ +|A M|^{2}-|B M|^{2}=|A C|^{2}-|B C|^{2} . +$$ + +By the theorem of Pythagoras the same holds for the point $H$ on $A B$ such that $C H$ is the altitude of the triangle $A B C$. Then since $H$ lies on the side $A B$ we get + +$|A B|(|A M|-|B M|)=|A M|^{2}-|B M|^{2}=|A C|^{2}-|B C|^{2}=|A H|^{2}-|B H|^{2}=|A B|(|A H|-|B H|)$. + +We conclude that $M=H$. + +Problem 15. The points $M$ and $N$ are chosen on the angle bisector $A L$ of a triangle $A B C$ such that $\angle A B M=\angle A C N=23^{\circ} . X$ is a point inside the triangle such that $B X=C X$ and $\angle B X C=2 \angle B M L$. Find $\angle M X N$. + +Solution. Answer: $\angle M X N=2 \angle A B M=46^{\circ}$. + +Let $\angle B A C=2 \alpha$. The triangles $A B M$ and $A C N$ are similar, therefore $\angle C N L=\angle B M L=$ $\alpha+23^{\circ}$. Let $K$ be the midpoint of the arc $B C$ of the circumcircle of the triangle $A B C$. Then $K$ belongs to the the line $A L$ and $\angle K B C=\alpha$. Both $X$ and $K$ belong to the perpendicular bisector of the segment $B C$, hence $\angle B X K=\frac{1}{2} \angle B X C=\angle B M L$, so the quadrilateral $B M X K$ is inscribed. Then + +$$ +\angle X M N=\angle X B K=\angle X B C+\angle K B C=\left(90^{\circ}-\angle B M L\right)+\alpha=90^{\circ}-(\angle B M L-\alpha)=67^{\circ} . +$$ + +Analogously we have $\angle C X K=\frac{1}{2} \angle B X C=\angle C N L$, therefore the quadrilateral $C X N K$ is inscribed also and $\angle X N M=\angle X C K=67^{\circ}$. Thus, the triangle $M X N$ is equilateral and +$\angle M X N=180^{\circ}-2 \cdot 67^{\circ}=46^{\circ}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4538b08bc60536405202g-08.jpg?height=537&width=580&top_left_y=511&top_left_x=744) + +Problem 16. For a positive integer $k$, let $d(k)$ denote the number of divisors of $k$ (e.g. $d(12)=6$ ) and let $s(k)$ denote the digit sum of $k$ (e.g. $s(12)=3$ ). A positive integer $n$ is said to be amusing if there exists a positive integer $k$ such that $d(k)=s(k)=n$. What is the smallest amusing odd integer greater than 1 ? + +Solution. The answer is 9 . For every $k$ we have $s(k) \equiv k(\bmod 9)$. Calculating remainders modulo 9 we have the following table + +| $m$ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| $m^{2}$ | 0 | 1 | 4 | 0 | 7 | 7 | 0 | 4 | 1 | +| $m^{6}$ | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | + +If $d(k)=3$, then $k=p^{2}$ with $p$ a prime, but $p^{2} \equiv 3(\bmod 9)$ is impossible. This shows that 3 is not an amusing number. If $d(k)=5$, then $k=p^{4}$ with $p$ a prime, but $p^{4} \equiv 5(\bmod 9)$ is impossible. This shows that 5 is not an amusing number. If $d(k)=7$, then $k=p^{6}$ with $p$ a prime, but $p^{6} \equiv 7(\bmod 9)$ is impossible. This shows that 7 is not an amusing number. To see that 9 is amusing, note that $d(36)=s(36)=9$. + +Problem 17. Find all positive integers $n$ such that the decimal representation of $n^{2}$ consists of odd digits only. + +Solution. The only such numbers are $n=1$ and $n=3$. + +If $n$ is even, then so is the last digit of $n^{2}$. If $n$ is odd and divisible by 5 , then $n=10 k+5$ for some integer $k \geq 0$ and the second-to-last digit of $n^{2}=(10 k+5)^{2}=100 k^{2}+100 k+25$ equals 2 . + +Thus we may restrict ourselves to numbers of the form $n=10 k \pm m$, where $m \in\{1,3\}$. Then + +$$ +n^{2}=(10 k \pm m)^{2}=100 k^{2} \pm 20 k m+m^{2}=20 k(5 k \pm m)+m^{2} +$$ + +and since $m^{2} \in\{1,9\}$, the second-to-last digit of $n^{2}$ is even unless the number $20 k(5 k-m)$ is equal to zero. We therefore have $n^{2}=m^{2}$ so $n=1$ or $n=3$. These numbers indeed satisfy the required condition. + +Problem 18. Let $p$ be a prime number. For each $k, 1 \leq k \leq p-1$, there exists a unique integer denoted by $k^{-1}$ such that $1 \leq k^{-1} \leq p-1$ and $k^{-1} \cdot k \equiv 1(\bmod p)$. Prove that the sequence + +$$ +1^{-1}, \quad 1^{-1}+2^{-1}, \quad 1^{-1}+2^{-1}+3^{-1}, \quad \ldots, \quad 1^{-1}+2^{-1}+\cdots+(p-1)^{-1} +$$ + +(addition modulo $p$ ) contains at most $(p+1) / 2$ distinct elements. + +Solution. Calculating modulo $p$ we have that $(p-k) k^{-1}=-1$ so $(p-k)^{-1}=-k^{-1}$. If $p$ is odd, we set $m=\frac{p-1}{2}$ and it follows that + +$$ +\sum_{k=1}^{p-1} k^{-1}=\sum_{k=1}^{m}\left(k^{-1}+(p-k)^{-1}\right)=0 +$$ + +For $\ell$ such that $m<\ell2010$ we see that $k \leq 14$. + +Now we note that $p^{2} \equiv 1 \bmod 8$ if $p$ is an odd prime. We also have that $2010 \equiv 2 \bmod 8$. If all the primes are odd, then writing the original equation modulo 8 we get + +$$ +k \cdot 1 \equiv 2 \bmod 8 +$$ + +so either $k=2$ or $k=10$. + +$k=2:$ As $2010 \equiv 0 \bmod 3$ and $x^{2} \equiv 0$ or $x^{2} \equiv 1 \bmod 3$ we conclude that $p_{1} \equiv p_{2} \equiv 0$ mod 3. But that is impossible. + +$k=10$ : The sum of first 10 odd prime squares is already greater than $2010(961+841+$ $529+\cdots>2010)$ so this is impossible. + +Now we consider the case when one of the primes is 2 . Then the original equation modulo 8 takes the form + +$$ +4+(k-1) \cdot 1 \equiv 2 \quad \bmod 8 +$$ + +so $k \equiv 7 \bmod 8$ and therefore $k=7$. + +For $k=7$ there are 4 possible solutions: + +$$ +\begin{aligned} +4+9+49+169+289+529+961 & =2010 \\ +4+9+25+121+361+529+961 & =2010 \\ +4+9+25+49+121+841+961 & =2010 \\ +4+9+49+121+169+289+1369 & =2010 +\end{aligned} +$$ + +Finding them should not be too hard. We are already asuming that 4 is included. Considerations modulo 3 show that 9 must also be included. The square 1681 together with the 6 smallest prime squares gives a sum already greater than 2010 , so only prime squares up to $37^{2}=1369$ can be considered. If 25 is included, then for the remaining 4 prime squares considerations modulo 10 one can see that 3 out of 4 prime squares from $\{121,361,841,961\}$ have to be used and two of four cases are successful. If 25 is not included, then for the remaining 5 places again from considerations modulo 10 one can see, that 4 of them will be from the set $\{49,169,289,529,1369\}$ and two out of five cases are successful. + +Problem 20. Determine all positive integers $n$ for which there exists an infinite subset $A$ of the set $\mathbb{N}$ of positive integers such that for all pairwise distinct $a_{1}, \ldots, a_{n} \in A$ the numbers $a_{1}+\cdots+a_{n}$ and $a_{1} \cdots a_{n}$ are coprime. + +Solution. For $n=1$ the statement is obviously false. We assert that it is true for all $n>1$. + +We first consider the sequence $x_{0}, x_{1}, \ldots$ of positive integers which is recursively defined by $x_{0}=n$ and $x_{k+1}=\left(x_{0}+\cdots+x_{k}\right) !+1$ for $k \geq 0$. We claim that the set $A:=\left\{x_{k} \mid k \geq 1\right\}$ satisfies the condition. + +Suppose the contrary that there exist $1 \leq i_{1}<\cdotsi_{j}$. This implies $p \mid x_{i_{1}}+\ldots x_{i_{j-1}}+n-j=: S$. Because of $S>0$ and $S \leq x_{0}+\cdots+x_{i_{j}-1}$ we have $p \mid\left(x_{0}+\cdots+x_{i_{j}-1}\right) !=x_{i_{j}}-1$ which contradicts $p \mid x_{i_{j}}$. + +Thus, for every pairwise distinct $a_{1}, \ldots, a_{n} \in A$ the numbers $a_{1}+\cdots+a_{n}$ and $a_{1} \cdots a_{n}$ are indeed coprime. + diff --git a/BalticWay/md/en-bw11sol.md b/BalticWay/md/en-bw11sol.md new file mode 100644 index 0000000000000000000000000000000000000000..804525bfbdd30cc9c66f65ba75b4991daf1f6d99 --- /dev/null +++ b/BalticWay/md/en-bw11sol.md @@ -0,0 +1,412 @@ +# Algebra + +## A-1 DEN + +The real numbers $x_{1}, \ldots, x_{2011}$ satisfy + +$$ +x_{1}+x_{2}=2 x_{1}^{\prime}, \quad x_{2}+x_{3}=2 x_{2}^{\prime}, \quad \ldots, \quad x_{2011}+x_{1}=2 x_{2011}^{\prime} +$$ + +where $x_{1}^{\prime}, x_{2}^{\prime}, \ldots, x_{2011}^{\prime}$ is a permutation of $x_{1}, x_{2}, \ldots, x_{2011}$. Prove that $x_{1}=x_{2}=\cdots=x_{2011}$. + +Solution 1 For convenience we call $x_{2011}$ also $x_{0}$. Let $k$ be the largest of the numbers $x_{1}, \ldots, x_{2011}$, and consider an equation $x_{n-1}+x_{n}=2 k$, where $1 \leq n \leq 2011$. Hence we get $2 \max \left(x_{n-1}, x_{n}\right) \geq x_{n-1}+x_{n}=2 k$, so either $x_{n-1}$ or $x_{n}$, say $x_{n-1}$, satisfies $x_{n-1} \geq k$. Since also $x_{n-1} \leq k$, we then have $x_{n-1}=k$, and then also $x_{n}=2 k-x_{n-1}=2 k-k=k$. That is, in such an equation both variables on the left equal $k$. Now let $\mathcal{E}$ be the set of such equations, and let $\mathcal{S}$ be the set of subscripts on the left of these equations. From $x_{n}=k \forall n \in \mathcal{S}$ we get $|\mathcal{S}| \leq|\mathcal{E}|$. On the other hand, since the total number of appearances of these subscripts is $2|\mathcal{E}|$ and each subscript appears on the left in no more than two equations, we have $2|\mathcal{E}| \leq 2|\mathcal{S}|$. Thus $2|\mathcal{E}|=2|\mathcal{S}|$, so for each $n \in \mathcal{S}$ the set $\mathcal{E}$ contains both equations with the subscript $n$ on the left. Now assume $1 \in \mathcal{S}$ without loss of generality. Then the equation $x_{1}+x_{2}=2 k$ belongs to $\mathcal{E}$, so $2 \in \mathcal{S}$. Continuing in this way we find that all subscripts belong to $\mathcal{S}$, so $x_{1}=x_{2}=\cdots=x_{2011}=k$. + +Solution 2 Again we call $x_{2011}$ also $x_{0}$. Taking the square on both sides of all the equations and adding the results, we get + +$$ +\sum_{n=1}^{2011}\left(x_{n-1}+x_{n}\right)^{2}=4 \sum_{n=1}^{2011} x_{n}^{\prime 2}=4 \sum_{n=1}^{2011} x_{n}^{2} +$$ + +which can be transformed with some algebra into + +$$ +\sum_{n=1}^{2011}\left(x_{n-1}-x_{n}\right)^{2}=0 +$$ + +Hence the assertion follows. + +## A-2 NOR + +Let $f: \mathbb{Z} \rightarrow \mathbb{Z}$ be a function such that, for all integers $x$ and $y$, the following holds: + +$$ +f(f(x)-y)=f(y)-f(f(x)) . +$$ + +Show that $f$ is bounded, i.e. that there is a constant $C$ such that + +$$ +-C2$. Is it always true that for some $n_{0}$ the sequence $a_{n_{0}}, a_{n_{0}+1}, a_{n_{0}+2}, \ldots$ is periodic? + +Since for $n>2$, we actually consider the sequence $\bmod 10$, and $\varphi(10)=4$, we have that the recursive formula itself has a period of 4 . Furthermore, the subsequent terms of the sequence are uniquely determined by two consecutive terms. Therefore if there exist integers $n_{0}>2$ and $k>0$ such that $a_{n_{0}}=a_{n_{0}+4 k}$ and $a_{n_{0}+1}=a_{n_{0}+4 k+1}$, then the sequence is periodic from $a_{n_{0}}$ on with period $4 k$. Consider the pairs $\left(a_{2+4 j}, a_{3+4 j}\right)$ for $0 \leq j \leq 100$. Since there are at most 100 possible different amongst these, there have to exist $0 \leq j_{1}1 \text {. } +$$ + +Determine the largest integer $k_{a}$ for which there exists a prime $p$ such that $p^{k_{a}}$ divides $x_{2011}-1$. + +Let $y_{n}=x_{n}-1$. Hence + +$y_{n}=x_{n}-1=2\left(y_{n-1}+1\right)-4\left(y_{n-2}+1\right)+3-1=2 y_{n-1}-4 y_{n-2}=2\left(2 y_{n-2}-4 y_{n-3}\right)-4 y_{n-2}=-8 y_{n-3}$ + +for all $n>2$. Hence + +$$ +x_{2011}-1=y_{2011}=-8 y_{2008}=\cdots=(-8)^{670} y_{1}=2^{2011} +$$ + +Hence $k=2011$. + +## N-2 DEN + +Determine all positive integers $d$ such that whenever $d$ divides a positive integer $n, d$ will also divide any integer obtained by rearranging the digits of $n$. + +Answer: $d=1, d=3$ or $d=9$. It is known that 1,3 and 9 have the given property. Assume that $d$ is a $k$ digit number such that whenever $d$ divides an integer $n, d$ will also divide any integer $m$ having the same digits as $n$. Then there exists a $k+2$ digit number $10 a_{1} a_{2} \ldots a_{k}$ which is divisible by $d$. Hence $a_{1} a_{2} \cdots a_{k} 10$ and $a_{1} a_{2} \cdots a_{k} 01$ are also divisible by $d$. Since $a_{1} a_{2} \cdots a_{k} 10-a_{1} a_{2} \cdots a_{k} 01=9, d$ divides 9 , and hence $d=1, d=3$ or $d=9$ as stated. + +## N-3 GER + +Determine all pairs $(p, q)$ of primes for which both $p^{2}+q^{3}$ and $q^{2}+p^{3}$ are perfect squares. + +Answer. There is only one such pair, namely $(p, q)=(3,3)$. + +Proof. Let the pair $(p, q)$ be as described in the statement of the problem. + +1.) First we show that $p \neq 2$. Otherwise, there would exist a prime $q$ for which $q^{2}+8$ and $q^{3}+4$ are perfect squares. Because of $q^{2}N$. Clearly, by assumption, there cannot meet two blocks with length $\geq 2$. It is also impossible that there meet two blocks of length 1 (remember that we deleted the first block). Thus all balanced or all unbalanced blocks have length 1. All other blocks have length 3, at least. + +Case 1: All unbalanced blocks have length 1. + +We take an unbalanced number $u>2 N^{\prime}+3$ with $u \equiv 1(\bmod 4)$ (for instance $u=p^{2}$ for an odd prime $p$ ). Since all balanced blocks have length $\geq 3, u-3, u-1$, and $u+1$ must be balanced. This implies that $(u-3) / 2$ is unbalanced, $(u-1) / 2$ is balanced, and $(u+1) / 2$ is again unbalanced. Thus $\{(u-1) / 2\}$ is an balanced block of length 1 - contradiction. + +Case 2: All balanced blocks have length 1. + +Now we take a balanced number $b>2 N^{\prime}+3$ with $b \equiv 1(\bmod 4)\left(\right.$ for instance $b=p^{2} q^{2}$ for distinct odd primes $p, q)$. By similar arguments, $(b-3) / 2$ is balanced, $(b-1) / 2$ is unbalanced, and $(b+1) / 2$ is again balanced. Now the balanced block $\{(b-1) / 2\}$ gives the desired contradiction. + diff --git a/BalticWay/md/en-bw12sol.md b/BalticWay/md/en-bw12sol.md new file mode 100644 index 0000000000000000000000000000000000000000..7b0acdd192b39bdd7ac30e0b17db3f422423cd78 --- /dev/null +++ b/BalticWay/md/en-bw12sol.md @@ -0,0 +1,689 @@ +# Problems and Solutions + +## Problem 1 -SPB- + +The numbers from 1 to 360 are partitioned into 9 subsets of consecutive integers and the sums of the numbers in each subset are arranged in the cells of a $3 \times 3$ square. Is it possible that the square turns out to be a magic square? + +Remark: A magic square is a square in which the sums of the numbers in each row, in each column and in both diagonals are all equal. + +Answer: Yes. + +Solution 1. If the numbers $a_{1}, a_{2}, \ldots, a_{9}$ form a $3 \times 3$ magic square, then the numbers $a_{1}+d, a_{2}+d, \ldots, a_{9}+d$ form a $3 \times 3$ magic square, too. Hence it is sufficient to divide all the numbers into parts with equal numbers of elements: i.e. from $40 k+1$ to $40(k+1), k=0,1, \ldots, 8$. Then we need to arrange the least numbers of these parts (i.e. the numbers $1,41,81, \ldots, 321$ ) in the form of a magic square (we omit here an example, it is similar to the magic square with numbers 1 , $2, \ldots, 9)$. After that all other numbers $1+s, 41+s, \ldots, 321+s$ will also form a magic square $(s=1, \ldots, 39)$, and so do the whole sums. + +Solution 2. Distribute the numbers into nine parts $40 k+1,40 k+2, \ldots, 40 k+40$, $k=0,2, \ldots, 8$. Note that the sums of these parts form an arithmetic progression: the sums are $(40 k+1+40 k+40) \cdot 20=1600 k+820, k=0,1, \ldots, 8$. It remains to construct a magic square of the numbers of the progression $820,2420, \ldots, 13620$ as follows. Start from an initial magic square with $0,1, \ldots, 8$ (or similar), multiply all members by 1600 (this is again a magic square) and add 820 to every member (again a magic square). + +## Problem 2 -FIN- + +Let $a, b, c$ be real numbers. Prove that + +$$ +a b+b c+c a+\max \{|a-b|,|b-c|,|c-a|\} \leq 1+\frac{1}{3}(a+b+c)^{2} . +$$ + +Solution 1. We may assume $a \leq b \leq c$, whence $\max \{|a-b|,|b-c|,|c-a|\}=c-a$. The initial inequality is equivalent to + +$$ +c-a \leq 1+\frac{1}{3}\left(a^{2}+b^{2}+c^{2}-a b-b c-a c\right) +$$ + +which in turn is equivalent to + +$$ +c-a \leq 1+\frac{1}{6}\left((a-c)^{2}+(b-c)^{2}+(a-b)^{2}\right) . +$$ + +Since $\sqrt{\frac{(c-b)^{2}+(b-a)^{2}}{2}} \geq \frac{c-a}{2}$, we have + +$$ +(a-c)^{2}+(b-c)^{2}+(a-b)^{2} \geq \frac{3}{2}(c-a)^{2} +$$ + +and hence + +$$ +1+\frac{1}{6}\left((a-c)^{2}+(b-c)^{2}+(a-b)^{2}\right) \geq 1+\frac{1}{4}(c-a)^{2} \geq c-a +$$ + +as desired. + +Solution 2. Assume $a \leq b \leq c$. By the well-known inequality $x y+y z+z x \leq$ $x^{2}+y^{2}+z^{2}$ (it can be shown by $2 x y \leq x^{2}+y^{2}$, etc., and adding all three such inequalities) we have + +$$ +\begin{gathered} +a b+b c+c a-a+c-1=(a+1) b+b(c-1)+(a+1)(c-1) \leq(a+1)^{2}+b^{2}+(c-1)^{2} \\ +\quad=a^{2}+b^{2}+c^{2}+2(a-c+1)=(a+b+c)^{2}-2(a b+b c+c a+c-a-1) +\end{gathered} +$$ + +or + +$$ +a b+b c+c a+c-a \leq 1+\frac{1}{3}(a+b+c)^{2} . +$$ + +Solution 3. Assume $a \leq b \leq c$ and take $c=a+x, b=a+y$, where $x \geq y \geq 0$. The inequality $3(a b+b c+c a+c-a-1) \leq(a+b+c)^{2}$ then reduces to + +$$ +x^{2}-x y+y^{2}+3 \geq 3 x \text {. } +$$ + +The latter inequality is equivalent to the inequality + +$$ +\left(\frac{x}{2}-y\right)^{2}+\frac{3}{4} x^{2}-3 x+3 \geq 0 +$$ + +which in turn is equivalent to the inequality + +$$ +\frac{4}{3}\left(\frac{x}{2}-y\right)^{2}+(x-2)^{2} \geq 0 +$$ + +Remark 1. The inequality $x^{2}-3 x-x y+y^{2}+3 \geq 0$ can also be proven by noticing that the discriminant of the LHS, $(y+3)^{2}-4\left(y^{2}+3\right)=-3(y-1)^{2}$, is non-positive. Since the quadratic polynomial in $x$ has positive leading coefficient, its all values are non-negative. + +Remark 2. Another way to prove the inequality $x^{2}-3 x-x y+y^{2}+3 \geq 0$ is, by AM-GM, the following: + +$$ +\begin{aligned} +& 3 x+x y=\sqrt{(\sqrt{2} x)^{2}\left(\frac{3}{\sqrt{2}}+\frac{y}{\sqrt{2}}\right)^{2}} \leq \frac{(\sqrt{2} x)^{2}+\left(\frac{3}{\sqrt{2}}+\frac{y}{\sqrt{2}}\right)^{2}}{2} \\ +&= x^{2}+\frac{9}{4}+\frac{3}{2} y+\frac{y^{2}}{4}=3+x^{2}+y^{2}-\frac{3}{4}(y-1)^{2} \leq 3+x^{2}+y^{2} . +\end{aligned} +$$ + +Solution 4. Assume $a \leq b \leq c$ and take $a=b-k, c=b+l$, where $k, l \geq 0$. The inequality $3(a b+b c+c a+c-a-1) \leq(a+b+c)^{2}$ then reduces to + +$$ +k^{2}+l^{2}+k l-3 l-3 k+3 \geq 0 . +$$ + +This is equivalent to + +$$ +(k-1)^{2}+(l-1)^{2}+(k-1)(l-1) \geq 0, +$$ + +which holds, since $x^{2}+y^{2}+x y \geq 0$ for all real numbers $x, y$. + +Remark. The inequality $k^{2}+l^{2}+k l-3 l-3 k+3 \geq 0$ can also be proven by separating perfect squares as + +$$ +\frac{1}{4}(k-l)^{2}+\frac{3}{4}(k+l)^{2}-3 \cdot(k+l)+3 \geq 0 +$$ + +which is in turn similar to + +$$ +(k-l)^{2}+3(k+l-2)^{2} \geq 0 . +$$ + +Solution 5. Assume $a \leq b \leq c$. Expand the inequality $3(a b+b c+c a+c-a-1) \leq$ $(a+b+c)^{2}$ fully to obtain $a^{2}+b^{2}+c^{2}-a b-a c-b c+3 a-3 c+3 \geq 0$. Now fix $\alpha \in \mathbb{R}$ and consider the set + +$$ +\gamma=\left\{(a, b, c): a^{2}+b^{2}+c^{2}-a b-a c-b c+3 a-3 c+3+\alpha=0\right\} . +$$ + +Note that $\gamma$ is a quadric. Its invariants are + +$\delta=\left|\begin{array}{ccc}1 & -\frac{1}{2} & -\frac{1}{2} \\ -\frac{1}{2} & 1 & -\frac{1}{2} \\ -\frac{1}{2} & -\frac{1}{2} & 1\end{array}\right|=0, \quad \Delta=\left|\begin{array}{cccc}1 & -\frac{1}{2} & -\frac{1}{2} & \frac{3}{2} \\ -\frac{1}{2} & 1 & -\frac{1}{2} & 0 \\ -\frac{1}{2} & -\frac{1}{2} & 1 & -\frac{3}{2} \\ \frac{3}{2} & 0 & -\frac{3}{2} & 3+\alpha\end{array}\right|=0, \quad S=3 \cdot\left|\begin{array}{cc}1 & -\frac{1}{2} \\ -\frac{1}{2} & 1\end{array}\right|=\frac{9}{4}$, + +and + +$$ +K=\left|\begin{array}{ccc} +1 & -\frac{1}{2} & \frac{3}{2} \\ +-\frac{1}{2} & 1 & 0 \\ +\frac{3}{2} & 0 & 3+\alpha +\end{array}\right|+\left|\begin{array}{ccc} +1 & -\frac{1}{2} & \frac{3}{2} \\ +-\frac{1}{2} & 1 & -\frac{3}{2} \\ +\frac{3}{2} & -\frac{3}{2} & 3+\alpha +\end{array}\right|+\left|\begin{array}{ccc} +1 & -\frac{1}{2} & 0 \\ +-\frac{1}{2} & 1 & -\frac{3}{2} \\ +0 & -\frac{3}{2} & 3+\alpha +\end{array}\right|=\frac{9 \alpha}{4} . +$$ + +In the case $\alpha>0$, it is known from the theory of quadrics that the surface $\gamma$ is an imaginary elliptic cylinder $(\delta=\Delta=0, S>0$, and $K>0)$ and therefore contains no real points. Hence the condition $a^{2}+b^{2}+c^{2}-a b-a c-b c+3 a-3 c+3+\alpha=0$ implies that $\alpha \leq 0$, therefore + +$$ +a^{2}+b^{2}+c^{2}-a b-a c-b c+3 a-3 c+3=-\alpha \geq 0 +$$ + +as desired. + +Solution 6. We start as in Solution 5: construct the quadric + +$$ +\gamma=\left\{(a, b, c): a^{2}+b^{2}+c^{2}-a b-a c-b c+3 a-3 c+3+\alpha=0\right\} . +$$ + +Now note that the substitution + +$$ +\left\{\begin{array}{l} +a=2 x-y+2 z \\ +b=2 y+2 z \\ +c=-2 x-y+2 z +\end{array}\right. +$$ + +gives (in the new coordinate system) + +$$ +\gamma=\left\{(x, y, z): 12 x^{2}+9 y^{2}+12 x+3+\alpha=0\right\} . +$$ + +(The columns of the coefficient matrix $C=\left(\begin{array}{ccc}2 & -1 & 2 \\ 0 & 2 & 2 \\ -2 & -1 & 2\end{array}\right)$ of the substitution are in fact the orthogonalized eigenvectors of $\left(\begin{array}{ccc}1 & -\frac{1}{2} & -\frac{1}{2} \\ -\frac{1}{2} & 1 & -\frac{1}{2} \\ -\frac{1}{2} & -\frac{1}{2} & 1\end{array}\right)$.) Since + +$$ +12 x^{2}+9 y^{2}+12 x+3+\alpha=3(2 x+1)^{2}+9 y^{2}+\alpha +$$ + +it is clear that in the case $\alpha>0$, the set $\gamma$ is void. + +Remark 1. Solutions 5 and 6 are presented here for instructive purposes only. + +Remark 2. Solutions 3, 4, and 6 suggest also general substitutions in the initial equation that directly leave the inequality in the form of sum of squares. Let these substitutions be mentioned here. + +- Solution 3 suggests $T=\frac{a-2 b+c}{2}, U=c-a-2$, and reduces the original inequality to $\frac{4}{3} T^{2}+U^{2} \geq 0$; +- solution 4 together with its remark suggests $T=2 b-a-c, U=c-a-2$, and reduces the original inequality to $T^{2}+3 U^{2} \geq 0$; +- solution 6 suggests $U=\frac{a-c}{2}+1, T=\frac{-a+2 b-c}{6}$, and reduces the original inequality to $3 U^{2}+9 T^{2} \geq 0$. + +Hence, up to scaling, all these three solutions are essentially the same. + +## Problem 3 DEN- + +a) Show that the equation + +$$ +\lfloor x\rfloor\left(x^{2}+1\right)=x^{3}, +$$ + +where $\lfloor x\rfloor$ denotes the largest integer not larger than $x$, has exactly one real solution in each interval between consecutive positive integers. + +b) Show that none of the positive real solutions of this equation is rational. + +Solution. a) Let $k=\lfloor x\rfloor$ and $y=x-k$. Then the equation becomes + +$$ +k\left((k+y)^{2}+1\right)=(k+y)^{3}, +$$ + +which reduces to + +$$ +y(k+y)^{2}=k \text {. } +$$ + +The function $f(y)=y(k+y)^{2}$ is strictly increasing in $[0,1]$ and continuous in the same interval. As $f(0)=0k$, there exists exactly one $y_{0} \in(0,1)$ such that $f\left(y_{0}\right)=k$. + +b) The equation (1) has no positive integral solutions. Assume that $x=k+y$ is rational and let $x=n / d$, where $n$ and $d$ are relatively prime positive integers. The given equation then becomes + +$$ +\frac{k\left(n^{2}+d^{2}\right)}{d^{2}}=\frac{n^{3}}{d^{3}} +$$ + +or + +$$ +d k\left(n^{2}+d^{2}\right)=n^{3} . +$$ + +Since $x$ is not an integer, $d$ has at least one prime divisor. It follows from the last equation that this prime divisor also divides $n$, a contradiction. + +Remark. In a), one can also consider the function $g(y)=y(k+y)^{2}-k$, perhaps expand it, and, using its derivative in $(0,1)$, prove that $g$ is strictly increasing in $[0,1]$. + +## Problem 4 POL- + +Prove that for infinitely many pairs $(a, b)$ of integers the equation + +$$ +x^{2012}=a x+b +$$ + +has among its solutions two distinct real numbers whose product is 1 . + +Solution 1. Observe first that for any integer $m>2$ the quadratic polynomial $x^{2}-m x+1$ has two distinct positive roots whose product equals 1 . + +Moreover, for any integer $m>2$ there exists a pair of integers $\left(a_{m}, b_{m}\right)$ such that the polynomial $x^{2012}-a_{m} x-b_{m}$ is divisible by the polynomial $x^{2}-m x+1$. Indeed, dividing the monomial $x^{2012}$ by the monic polynomial $x^{2}-m x+1$ we get a remainder $R_{m}(x)$ which is a polynomial with integer coefficients and degree at most 1. Thus $R_{m}(x)=a_{m} x+b_{m}$ for some integers $a_{m}$ and $b_{m}$, which clearly meet our demand. + +Now, for a fixed $m>2$, any root of the polynomial $x^{2}-m x+1$ is also a root of the polynomial $x^{2012}-a_{m} x-b_{m}$. Therefore the set of solutions of the equation $x^{2012}=a_{m} x+b_{m}$ contains the two distinct roots of the polynomial $x^{2}-m x+1$, whose product is equal to 1 . This means that the pair $(a, b)=\left(a_{m}, b_{m}\right)$ has the required property. + +It remains to show that when $m$ ranges over all integers greater than 2 , we get infinitely many distinct pairs $\left(a_{m}, b_{m}\right)$. To this end, note that for $m_{1} \neq m_{2}$ the roots of the polynomial $x^{2}-m_{1} x+1$ are distinct from the roots of the polynomial $x^{2}-m_{2} x+1$, since a common root of them would be a root of their difference $\left(m_{2}-m_{1}\right) x$, and so it would be equal to zero, which is not a root of any $x^{2}-m x+1$. As the polynomial $x^{2012}-a x-b$ has at most 2012 distinct roots, it is divisible by $x^{2}-m x+1$ for at most 1006 values of $m$. Hence the same pair $\left(a_{m}, b_{m}\right)$ can be obtained for at most 1006 values of $m$, which concludes the proof. + +Solution 2. Observe first that for any integer $c>2$ the equations $x=x-0$ and $x^{2}=c x-1$ have two common distinct positive solutions whose product equals 1 . Let those solutions be $x_{1}$ and $x_{2}$. + +Define a sequence $\left(f_{n}\right)$ by $f_{0}=0, f_{1}=1$, and $f_{n+2}=c f_{n+1}-f_{n}, n \geq 0$. Suppose that $x_{1}$ and $x_{2}$ are also common solutions of the equations $x^{n}=f_{n} x-f_{n-1}$ and $x^{n+1}=f_{n+1} x-f_{n}$, then the following equalities hold for $x=x_{1}$ and $x=x_{2}$ : + +$$ +\begin{aligned} +& x^{n+2}-f_{n+2} x+f_{n+1}=x^{n+2}-\left(c f_{n+1}-f_{n}\right) x+\left(c f_{n}-f_{n-1}\right) \\ += & x^{n+2}-c\left(f_{n+1} x-f_{n}\right)+\left(f_{n} x-f_{n-1}\right)=x^{n+2}-c x^{n+1}+x^{n}=x^{n}\left(x^{2}-c x+1\right)=0, +\end{aligned} +$$ + +which shows that $x_{1}$ and $x_{2}$ are solutions of $x^{n+2}=f_{n+2} x-f_{n+1}$ as well. + +Now note that for different integers $c$, all corresponding members of the sequences $\left(f_{n}\right)$ are different. At first note that these sequences $\left(f_{n}\right)$ are strictly increasing: by inductive argument we have + +$$ +f_{n+2}-f_{n+1}=(c-1) f_{n+1}-f_{n}>f_{n+1}-f_{n}>0 . +$$ + +This also shows that all members are positive. + +Now, let us have integers $c$ and $c^{\prime}$ with $c^{\prime} \geq c+1>3$ and let the corresponding sequences be $\left(f_{n}\right)$ and $\left(f_{n}^{\prime}\right)$. Then again by induction + +$f_{n+2}^{\prime} \geq(c+1) f_{n+1}^{\prime}-f_{n}^{\prime}=c f_{n+1}^{\prime}+\left(f_{n+1}^{\prime}-f_{n}^{\prime}\right)>c f_{n+1}^{\prime}>c f_{n+1}>c f_{n+1}-f_{n}=f_{n+2}$. + +We have shown that for all integers $c>2$, the respective pairs $\left(f_{2012},-f_{2011}\right)$ are different, as desired. + +Solution 3. Consider any even integer $2 c>2$. The roots of $x^{2}-2 c x+1$ are $c \pm \sqrt{c^{2}-1}$ and their product is 1 . Now consider the expansion + +$$ +\left(c+\sqrt{c^{2}-1}\right)^{2012}=\alpha+\beta \sqrt{c^{2}-1}=\beta\left(c+\sqrt{c^{2}-1}\right)+(\alpha-\beta c) +$$ + +where $\alpha$ and $\beta$ are some integers. Denote $a=\beta$ and $b=\alpha-\beta c$, then $c+\sqrt{c^{2}-1}$ is a solution of $x^{2012}=a x+b$. + +Simple calculation shows that + +$$ +\left(c-\sqrt{c^{2}-1}\right)^{2012}=\alpha-\beta \sqrt{c^{2}-1}=\beta\left(c-\sqrt{c^{2}-1}\right)+(\alpha-\beta c), +$$ + +yielding that also $c-\sqrt{c^{2}-1}$ is a solution of $x^{2012}=a x+b$. + +To complete the proof, it remains to point out that $a=\beta \geq 2012 \cdot c^{2011}$ which means that the number $a$ can be chosen arbitrarily large. + +Solution 4. Note that the function $f:(1, \infty) \rightarrow \mathbb{R}, f(x)=x+x^{-1}$, is strictly increasing (it can be easily shown by derivative) and achieves all values of $(2, \infty)$. Hence let us have an arbitrary integer $c>2$ where $c=\lambda+\lambda^{-1}$ for some real $\lambda>1$. + +Define + +$$ +a=\frac{\lambda^{2012}-\lambda^{-2012}}{\lambda-\lambda^{-1}}, \quad b=\frac{-\lambda^{2011}+\lambda^{-2011}}{\lambda-\lambda^{-1}} . +$$ + +Then it is easy to verify that $\lambda$ and $\lambda^{-1}$ are solutions of $x^{2012}=a x+b$. + +Note that $a$ and $b$ are integers. Indeed: for any positive integer $k$, we have + +$$ +\lambda^{k}-\left(\lambda^{-1}\right)^{k}=\left(\lambda-\lambda^{-1}\right) \cdot\left(\lambda^{k-1}+\lambda^{k-2} \cdot \lambda^{-1}+\ldots+\lambda \cdot\left(\lambda^{-1}\right)^{k-2}+\left(\lambda^{-1}\right)^{k-1}\right), +$$ + +where the rightmost factor is a symmetric polynomial with integral coefficients in two variables and therefore can be expressed as a polynomial with integral coefficients in symmetric fundamental polynomials $\lambda+\lambda^{-1}$ and $\lambda \cdot \lambda^{-1}=1$, hence is an integer. + +If there were only a finite number of integer pairs $(a, b)$ for which $x^{2012}-a x-b$ has two distinct roots whose product is 1 , the number of all such roots would also be finite. This would be a contradiction since by the construction above, there are infinitely many such numbers $\lambda$ for which $\lambda+\lambda^{-1} \in\{3,4, \ldots\}$ and that $\lambda, \lambda^{-1}$ are roots of some $x^{2012}-a x-b$ where $a, b$ are integers. + +## Problem 5 EST- + +Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ for which + +$$ +f(x+y)=f(x-y)+f(f(1-x y)) +$$ + +holds for all real numbers $x$ and $y$. + +Answer: $f(x) \equiv 0$. + +Solution. Substituting $y=0$ gives $f(x)=f(x)+f(f(1))$, hence $f(f(1))=0$. Using this after substituting $x=0$ into the original equation gives $f(y)=f(-y)$ for all $y$, i.e., $f$ is even. + +Substituting $x=1$ into the original equation gives $f(1+y)=f(1-y)+$ $f(f(1-y))$. By $f$ being even, also $f(-1-y)=f(1-y)+f(f(1-y))$. Hence $f(f(1-y))=f(1-y-2)-f(1-y)$. As $1-y$ covers all real values, one can conclude that + +$$ +f(f(z))=f(z-2)-f(z) +$$ + +for all real numbers $z$. + +Substituting $-z$ for $z$ into (4) and simplifying the terms by using that $f$ is even, one obtains $f(f(z))=f(z+2)-f(z)$. Together with (4), this implies + +$$ +f(z+2)=f(z-2) +$$ + +for all real numbers $z$. + +Now taking $y=2$ in the original equation followed by applying (5) leads to $f(f(1-2 x))=0$ for all real $x$. As $1-2 x$ covers all real values, one can conclude that + +$$ +f(f(z))=0 +$$ + +for all real numbers $z$. Thus the original equation reduces to + +$$ +f(x+y)=f(x-y) . +$$ + +Taking $x=y$ here gives $f(2 x)=f(0)$, i.e., $f$ is constant, as $2 x$ covers all real numbers. As 0 must be among the values of $f$ by (6), $f(x) \equiv 0$ is the only possibility. + +## Problem 6 -SPB- + +There are 2012 lamps arranged on a table. Two persons play the following game. In each move the player flips the switch of one lamp, but he must never get back an arrangement of the lit lamps that has already been on the table. A player who cannot move loses. Which player has a winning strategy? + +Answer: the first player has a winning strategy. + +Solution 1. The first player can pick one lamp and keep switching it on and off during the whole game. The second player cannot switch this particular lamp, he always has to switch some other lamp so that the arrangement of the other lamps becomes different from any that has already been on the table. So the first player always has a move, and the second player eventually runs out of the possible moves. + +Solution 2. Note that the parity of the lit lamps changes with each move. So all the possible states can be divided into two disjoint sets, one with odd number of of the lamps lit and the other with even number of the lamps lit. We get a bipartite graph where the vertices are the states and two states are connected with an edge if it is possible to get from one state to another by switching one lamp off or on. + +We want to use Hall's marriage theorem to get a perfect matching of the states. The assumption of the theorem is the following: for every subset A of the states in one set there is at least as many neighboring states in the second set. Let the number of states in $A$ be $n$, and let $B$ be the set of neighboring states of $A$, containing $m$ states. Since each state in $A$ has exactly 2012 neighbors and all these neighbors belong to the set $B$, there are exactly $2012 n$ edges between $A$ and $B$. Since each state in $B$ has exactly 2012 neighbors (some of them may not belong to $A$ ), there is at most $2012 m$ edges between $A$ and $B$. Hence $2012 n \leq 2012 m$, or $n \leq m$, i.e. the assumption of the theorem is satisfied. + +Now the Hall's theorem states that there is a perfect matching. On every move the first player has to switch the lamp which changes the state into it's partner in the perfect matching. Any lamp the second player can switch results in a state whose partner has not been used yet, so the first player always has a move, and the secod player eventually loses. + +## Problem 7 SPB- + +On a $2012 \times 2012$ board, some cells on the top-right to bottom-left diagonal are marked. None of the marked cells is in a corner. Integers are written in each cell of this board in the following way. All the numbers in the cells along the upper and the left sides of the board are 1's. All the numbers in the marked cells are 0's. Each of the other cells contains a number that is equal to the sum of its upper neighbour and its left neighbour. Prove that the number in the bottom right corner is not divisible by 2011 . + +Solution 1. Let a peg go on the board, stepping from a cell to the neighbor cell right or below. Then the number in the bottom right corner of the board is equal to the number of paths of the peg from the top left corner to the bottom right corner, which do not visit the marked cells. + +The total number of paths (including those that pass through the marked cells) equals $\left(\begin{array}{l}4022 \\ 2011\end{array}\right)$; this number is not divisible by 2011, because 2011 is a prime number. The number of paths that pass through the $k$-th cell of the diagonal equals $\left(\begin{array}{c}2011 \\ k\end{array}\right)^{2}$, because in order to visit this cell starting from the corner the peg should make 2011 steps, $k$ of which are horizontal, and others are vertical; and after the visit it also should make 2011 steps, $k$ of which is vertical. Since $k \neq 0,2011$ (because the marked cells are not in the corner) this number is divisible by 2011. + +So the number in the low right corner equals the difference of the number that is not divisible by 2011 and several numbers that are divisible by 2011 . + +Solution 2. Turning the board $45^{\circ}$ so that the upper left corner is on the top we notice that the numbers written on the board constitute the Pascal's triangle. If there were no marked cells on the board, then the number on the bottom cell +would be $\left(\begin{array}{l}4022 \\ 2011\end{array}\right)$, which is not divisible by 2011. All the cells on the diagonal that is + +now horizontal, would be of the form $\left(\begin{array}{c}2011 \\ k\end{array}\right)$; all of them, except the numbers in the corners, would be divisible by 2011. If we substitute the numbers on the diagonal with their remainders modulo 2011, then all the numbers on the diagonal are 0's, independent of whether they were marked or not, except in the corners there are 1 's. After this change all numbers below the diagonal get substituted with their remainders modulo 2011. All the numbers below the diagonal are now 0's, except along the sides are 1's and in the bottom corner there is 2 . Hence the remainder of the number written in the bottom corner modulo 2012 is 2 . + +## Problem 8 SPB- + +A directed graph does not contain directed cycles. The number of edges in any directed path does not exceed 99. Prove that it is possible to colour the edges of the graph in 2 colours so that the number of edges in any single-coloured directed path in the graph will not exceed 9 . + +Solution. Label each vertex by the number from 0 to 99 , that is equal to the length of the longest directed path that ends in this vertex. Then every edge goes from a vertex with a smaller label to a vertex with a larger label. Now colour this edge in red if the digit of tens in the larger label is greater than the digit of tens in the smaller label. Otherwise colour this edge in blue. Since the number of tens is the same in all vertices on a blue path, the length of the path cannot exceed 9 . Since the number of tens is different in all vertices on a red path, the length of the path also cannot exceed 9 . + +## Problem 9 -DEN- + +Zeroes are written in all cells of a $5 \times 5$ board. We can take an arbitrary cell and increase by 1 the number in this cell and all cells having a common side with it. Is it possible to obtain the number 2012 in all cells simultaneously? + +Answer: No. + +Solution 1. Let $a_{(i, j)}$ be the number written in the cell in the row $i$ and column $j$. To prove that it is not possible to get 2012 written in each cell, we choose a factor $c_{(i, j)}$ for each cell, such that + +$$ +S=\sum_{1 \leq i, j \leq 5} c_{(i, j)} \cdot a_{(i, j)} +$$ + +increases by the same number each time a cell is chosen. If we choose the factors $c_{(i, j)}$ as shown in Figure 1, then $S$ increases by 22 each time a cell is chosen. Hence $S$ is divisible by 22 at all times. The sum of all the $c_{(i, j)}$ is 138 , hence if 2012 is written in each cell, then + +$$ +S=138 \cdot 2012=2^{3} \cdot 3 \cdot 23 \cdot 503 +$$ + +which cannot be reached, since it is not divisible by 22 . + +Solution 2. Divide all cells into six disjoint sets as follows: the set $A$ consists of all corner cells, the set $B$ consists of all cells, having a common side with the corner cells, the set $C$ consists of all diagonal neighbors of the corner cells, the set $D$ consists of all middle cells of the sides of the board, the set $E$ consists of all cells having a common side with the center cell, and the set $F$ has only the center cell in it. Suppose we choose $a$ times a cell from the set $A, b$ times from the set $B$ etc. Suppose that after a number of steps we get the number $s$ written in each cell. Since only the cells from the sets $A$ and $B$ contribute to the numbers written in the cells of the set $A$ and each choice from these sets contributes exactly 1 to the sum of the numbers written in the cells of the set $A$, we have $a+b=4 s$. Similarly, considering the sum of the numbers written in the cells of the set $B$, we see that choosing a cell from the set $A$ contributes 2 to the sum, choosing a cell from the set $B$ contributes 1, a cell from $C$ contributes 2 and a cell from $D$ contributes 2, hence $2 a+b+2 c+2 d=8 s$. Continuing, we get $b+c+2 e=4 s, b+d+e=4 s$, $2 c+d+e+4 f=4 s$, and $e+f=s$. Eliminating $a, b, d, e$, and $f$ from these equations we get $11 c=4 s$. This is only possible if $s$ is divisible by 11 . Since 2012 is not divisible by 11, it is not possible to get 2012 written in each cell. + +Remark. For every positive $s$ divisible by 11 it is possible to get $s$ written in each cell. For $s=11$ Figure 2 shows how many times one has to choose each cell. If $s$ is larger than 11 , we can simply repeat these steps as many times as needed. The same figure can also be used for choosing factors as in Solution 1. + +## Problem 10 -DEN- + +Two players $A$ and $B$ play the following game. Before the game starts, $A$ chooses 1000 not necessarily different odd primes, and then $B$ chooses half of them and writes them on a blackboard. In each turn a player chooses a positive integer $n$, erases some primes $p_{1}, p_{2}, \ldots, p_{n}$ from the blackboard and writes all the prime factors of $p_{1} p_{2} \ldots p_{n}-2$ instead (if a prime occurs several times in the prime factorization of $p_{1} p_{2} \ldots p_{n}-2$, it is written as many times as it occurs). Player $A$ starts, and the player whose move leaves the blackboard empty loses the game. Prove that one of the two players has a winning strategy and determine who. + +Remark: Since 1 has no prime factors, erasing a single 3 is a legal move. + +Solution. Player $A$ has a winning strategy. + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-10.jpg?height=454&width=459&top_left_y=2103&top_left_x=570) + +Figure 1 + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-10.jpg?height=451&width=457&top_left_y=2102&top_left_x=1208) + +Figure 2 + +Let player $A$ choose 1000 primes all congruent to 1 modulo 4 . Then there are 500 primes congruent to 1 modulo 4 when the game begins. Let $P$ denote the parity of the number of primes congruent to 3 modulo 4 on the blackboard. When the game starts, $P$ is even. Remember that the number of primes congruent to 3 modulo 4 in the prime factorization of a number is even if the number is congruent to 1 modulo 4, and odd if the number is congruent to 3 modulo 4 . In each turn the parity of $P$ changes, because the number of primes congruent to 3 modulo 4 among $p_{1}, p_{2}, \ldots$, $p_{n}$ and in the prime factorization of $p_{1} p_{2} \ldots p_{n}-2$ is of different parity. Hence $P$ is odd after each of $A$ 's turns and even after each of $B$ 's turns, so $A$ cannot lose. Since the product of all the primes on the blackboard decreases with each turn, the game eventually ends, hence $A$ wins. + +## Problem 11 SPB- + +Let $A B C$ be a triangle with $\angle A=60^{\circ}$. The point $T$ lies inside the triangle in such a way that $\angle A T B=\angle B T C=\angle C T A=120^{\circ}$. Let $M$ be the midpoint of $B C$. Prove that $T A+T B+T C=2 A M$. + +Solution 1. Rotate the triangle $A B C$ by $60^{\circ}$ around the point $A$ (Figure 3). Let $T^{\prime}$ and $C^{\prime}$ be the images of $T$ and $C$, respectively. Then the triangle $A T T^{\prime}$ is equilateral and $\angle A T^{\prime} C^{\prime}=120^{\circ}$, meaning that $B, T, T^{\prime}, C^{\prime}$ are collinear and $T A+T B+T C=B C^{\prime}$. Let $A^{\prime}$ be a point such that $A B A^{\prime} C$ is a parallelogram. Then $2 A M=A A^{\prime}$. It remains to observe that the triangles $B A C^{\prime}$ and $A B A^{\prime}$ are equal, since $B A$ is common, $\angle B A C^{\prime}=120^{\circ}=\angle A^{\prime} B A$, and $A C^{\prime}=B A^{\prime}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-11.jpg?height=531&width=1304&top_left_y=1528&top_left_x=296) + +Figure 3 + +Remark. The rotation used here is the same as that used in finding a point $P$ in the triangle such that the total distance from the three vertices of the triangle to $P$ is the minimum possible (Fermat point); this is exactly the point $T$ in the problem. + +Solution 2. Let $A^{\prime}$ be a point such that $A B A^{\prime} C$ is a parallelogram. Since $\angle B A^{\prime} C=60^{\circ}$ and $\angle B T C=120^{\circ}$, the point $T$ lies on the circumcircle of $A^{\prime} B C$. Let $X$ be the second intersection point of $A T$ with this circumcircle and let $Y$ be the midpoint of $A^{\prime} X$. The triangle $B C X$ is equilateral, since $\angle B X C=\angle B A^{\prime} C=60^{\circ}$ and $\angle B C X=\angle B T X=180^{\circ}-\angle B T A=60^{\circ}$. Therefore $T B+T C=T X$. So it is sufficient to show that $A X=A A^{\prime}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-12.jpg?height=751&width=1042&top_left_y=293&top_left_x=587) + +Figure 4 + +Let $K$ be the intersection point of the medians of $B C X$. Since $X M$ is a median for both $B C X$ and $A A^{\prime} X$, it follows that $K$ is also the intersection point of the medians of $A A^{\prime} X$. Thus $K$ lies on the median $A Y$. Since the triangle $K A^{\prime} X$ is equilateral, we have $K Y \perp A^{\prime} X$, so $A Y$ is both the height and the median of $A A^{\prime} X$. + +Consequently, $T A+T B+T C=A X=A A^{\prime}=2 A M$. + +Solution 3. Let $A^{\prime}$ be a point such that $A B A^{\prime} C$ is a parallelogram (Figure 5). Use notations $A B=c, A C=b, 2 A M=A A^{\prime}=d, T A=x, T B=y, T C=z$. From $\angle A B T=60^{\circ}-\angle B A T=\angle C A T=60^{\circ}-\angle A C T$ one gets $\triangle A B T \sim \triangle C A T$. So $y: x=c: b$, and we have totally $\triangle A B T \sim \triangle C A T \sim \triangle A^{\prime} A B$, giving $x=b \cdot \frac{c}{d}=c \cdot \frac{b}{d}$, $y=c \cdot \frac{c}{d}, z=b \cdot \frac{b}{d}$. By applying the law of cosines in triangle $A^{\prime} A B$, we finally get + +$$ +x+y+z=\frac{b c+c^{2}+b^{2}}{d}=\frac{d^{2}}{d}=d . +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-12.jpg?height=505&width=1040&top_left_y=1986&top_left_x=588) + +Figure 5 + +## Problem 12 -DEN- + +Let $P_{0}, P_{1}, \ldots, P_{8}=P_{0}$ be successive points on a circle and $Q$ be a point inside the polygon $P_{0} P_{1} \ldots P_{7}$ such that $\angle P_{i-1} Q P_{i}=45^{\circ}$ for $i=1, \ldots, 8$. Prove that the sum + +$$ +\sum_{i=1}^{8} P_{i-1} P_{i}{ }^{2} +$$ + +is minimal if and only if $Q$ is the centre of the circle. + +Solution. By the cosine law we have (Figure 6) + +$$ +P_{i-1} P_{i}^{2}=Q P_{i-1}^{2}+Q P_{i}^{2}-\sqrt{2} \cdot Q P_{i-1} \cdot Q P_{i} . +$$ + +Hence, using the AM-GM inequality, + +$$ +\sum_{i=1}^{8} P_{i-1} P_{i}^{2}=\sum_{i=1}^{8}\left(2 \cdot Q P_{i}^{2}-\sqrt{2} \cdot Q P_{i-1} \cdot Q P_{i}\right) \geq(2-\sqrt{2}) \sum_{i=1}^{8} Q P_{i}^{2} +$$ + +The equality holds if and only if all distances $Q P_{i}$ are equally large, i.e. $Q$ is the centre of the circle. So it remains to show that the sum in the last expression is independent of $Q$. Indeed, by the Pythagorean theorem, + +$$ +\sum_{i=1}^{8} Q P_{i}^{2}=\left(P_{0} P_{2}^{2}+P_{4} P_{6}^{2}\right)+\left(P_{1} P_{3}^{2}+P_{5} P_{7}^{2}\right)=2 d^{2} +$$ + +where $d$ is the diameter of the circle. The last equality follows form the fact that $P_{0} P_{2} P_{4} P_{6}$ is a cyclic quadrilateral with perpendicular diagonals, so $P_{0} P_{2}{ }^{2}+P_{4} P_{6}{ }^{2}=$ $d^{2}$. + +Remark. The sum $\sum_{i=1}^{8} Q P_{i}{ }^{2}=\sum_{i=1}^{4} Q P_{2 i-1}{ }^{2}+\sum_{i=1}^{4} Q P_{2 i}{ }^{2}$ can also be computed easily using coordinates, e.g. expressing each term by the coordinates of $Q$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-13.jpg?height=708&width=694&top_left_y=1845&top_left_x=607) + +Figure 6 + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-14.jpg?height=682&width=666&top_left_y=287&top_left_x=775) + +Figure 7 + +## Problem 13 NOR- + +Let $A B C$ be an acute triangle, and let $H$ be its orthocentre. Denote by $H_{A}, H_{B}$ and $H_{C}$ the second intersection of the circumcircle with the altitudes from $A, B$ and $C$ respectively. Prove that the area of $\triangle H_{A} H_{B} H_{C}$ does not exceed the area of $\triangle A B C$. + +Solution 1. We know that the points $H_{A}, H_{B}$ and $H_{C}$ are in fact the reflection of $H$ on the sides (Figure 7). Since $A B C$ is acute (i.e. $H$ lies in the interior of $A B C$ ), we have $S_{A H_{C} B H_{A} C H_{B}}=2 S_{A B C}$. We thus have to show that $2 S_{H_{A} H_{B} H_{C}} \leq S_{A H_{C} B H_{A} C H_{B}}$, which is equivalent to + +$$ +S_{H_{A} H_{B} H_{C}} \leq S_{H_{A} C H_{B}}+S_{H_{B} A H_{C}}+S_{H_{C} B H_{A}} +$$ + +Notice that the triangles on the RHS are isosceles (e.g. $H_{A} C=H C=H_{B} C$ ). If now for example $\angle H_{A} H_{B} H_{C} \geq 90^{\circ}$, then obviously already $S_{H_{A} H_{B} H_{C}} \leq S_{H_{A} B H_{C}}$. It may therefore be supposed that $H_{A} H_{B} H_{C}$ is acute-angled. Denote by $M$ its orthocentre, which then lies inside the triangle. Denote by $M_{A}, M_{B}$ and $M_{C}$ the reflections of the orthocentre on the sides $H_{B} H_{C}, H_{C} H_{A}$ and $H_{A} H_{B}$, respectively. These lie on the circumcircle, and therefore we have $S_{H_{B} M_{A} H_{C}} \leq S_{H_{B} A H_{C}}, S_{H_{C} M_{B} H_{A}} \leq S_{H_{C} B H_{A}}$ and $S_{H_{A} M_{C} H_{B}} \leq S_{H_{A} C H_{B}}$. Since + +$$ +S_{H_{A} H_{B} H_{C}}=S_{H_{B} M_{A} H_{C}}+S_{H_{C} M_{B} H_{A}}+S_{H_{A} M_{C} H_{B}}, +$$ + +we arrive to the required result. + +Solution 2. Let the angles of $A B C$ be denoted by $\alpha, \beta$ and $\gamma$, the radius of the circumcircle by $R$. Then + +$$ +S_{A B C}=2 R^{2} \sin \alpha \sin \beta \sin \gamma +$$ + +By peripheric angles we get + +$$ +\angle H_{A} H_{B} H_{C}=\angle H_{A} H_{B} B+\angle B H_{B} H_{C}=\angle H_{A} A B+\angle B C H_{C}=180^{\circ}-2 \beta, +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_58afd2ba119b24b9ae91g-15.jpg?height=845&width=946&top_left_y=291&top_left_x=475) + +Figure 8 + +and correspondingly $\angle H_{B} H_{C} H_{A}=180^{\circ}-2 \gamma$ and $\angle H_{C} H_{A} H_{B}=180^{\circ}-2 \alpha$. Thus + +$$ +\begin{aligned} +& S_{H_{A} H_{B} H_{C}}=2 R^{2} \sin \left(180^{\circ}-2 \beta\right) \sin (\left.180^{\circ}-2 \gamma\right) \sin \left(180^{\circ}-2 \alpha\right) \\ +&=2 R^{2} \sin (2 \beta) \sin (2 \gamma) \sin (2 \alpha)=8 S_{A B C} \cos \alpha \cos \beta \cos \gamma \\ +& \leq 8 S_{A B C}\left(\frac{\cos \alpha+\cos \beta+\cos \gamma}{3}\right)^{3} \leq S_{A B C} +\end{aligned} +$$ + +where the last inequality follows from Jensen's inequality for the cosine function. + +Remark. There are also other solutions that combine the ideas appearing in Solutions 1 and 2 in different way. + +## Problem 14 -POL- + +Given a triangle $A B C$, let its incircle touch the sides $B C, C A, A B$ at $D, E, F$, respectively. Let $G$ be the midpoint of the segment $D E$. Prove that $\angle E F C=$ $\angle G F D$. + +Solution 1. Let $\omega$ be the circumcircle of the triangle $C E F$ and let $H$ be the second point of intersection of the circle $\omega$ with the line $C G$ (Figure 8). Assume also, without loss of generality, that $A C1$. So $k=1$. + +## Problem 17 -DEN- + +Let $d(n)$ denote the number of positive divisors of $n$. Find all triples $(n, k, p)$, where $n$ and $k$ are positive integers and $p$ is a prime number, such that + +$$ +n^{d(n)}-1=p^{k} . +$$ + +Solution. Note first that $n^{d(n)}$ is always a square: if $d(n)$ is an even number this is clear; but $d(n)$ is odd exactly if $n$ is a square, and then its power $n^{d(n)}$ is also a square. + +Let $n^{d(n)}=m^{2}, m>0$. Then + +$$ +(m+1)(m-1)=m^{2}-1=n^{d(n)}-1=p^{k} . +$$ + +There is no solution for $m=1$. If $m=2$, we get $(n, k, p)=(2,1,3)$. If $m>2$, we have $m-1, m+1>1$ and because both factors divide $p^{k}$, they are both powers of $p$. The only possibility is $m-1=2, m+1=4$. Hence $m=3$ and $n^{d(n)}=m^{2}=9$. This leads to the solution $(n, k, p)=(3,3,2)$. So the only solutions are $(n, k, p)=(2,1,3)$ and $(n, k, p)=(3,3,2)$. + +## Problem 18 NOR- + +Find all triples $(a, b, c)$ of integers satisfying $a^{2}+b^{2}+c^{2}=20122012$. + +Solution. First consider the equation modulo 4. Since a square can only be congruent to 0 or 1 modulo 4, and 20122012 is divisible by 4, we can conclude that all of $a, b$ and $c$ have to be even. Substituting $a=2 a_{1}, b=2 b_{1}, c=2 c_{1}$ the equation turns into $a_{1}^{2}+b_{1}^{2}+c_{1}^{2}=5030503$. + +If we now consider the remaining equation modulo 8 , we can see that the right side is congruent to 7, whilst the only quadratic residues modulo 8 are 0,1 and 4 , and hence the left hand side can never be congruent to 7 . + +We therefore conclude that the original equation has no integer solutions. + +## Problem 19 POL- + +Show that $n^{n}+(n+1)^{n+1}$ is composite for infinitely many positive integers $n$. + +Solution. We will show that for any positive integer $n \equiv 4(\bmod 6)$ the number $n^{n}+(n+1)^{n+1}$ is divisible by 3 and hence composite. Indeed, for any such $n$ we have $n \equiv 1(\bmod 3)$ and hence $n^{n}+(n+1)^{n+1} \equiv 1^{n}+2^{n+1}=1+2^{n+1}(\bmod 3)$. Moreover, the exponent $n+1$ is odd, which implies that $2^{n+1} \equiv 2(\bmod 3)$. It follows that $n^{n}+(n+1)^{n+1} \equiv 1+2 \equiv 0(\bmod 3)$, as claimed. + +## Problem 20 -LAT- + +Find all integer solutions of the equation $2 x^{6}+y^{7}=11$. + +Solution. There are no solutions. The hardest part of the problem is to determine a modulus $m$ that would yield a contradiction. There should be few sixth and seventh powers modulo $m$, hence, a natural choice is $6 \cdot 7+1=43$. Luckily, it is a prime. + +Now, just write out sixth powers $(0,1,4,11,16,21,35,41)$ and seventh powers $(0,1,6,7,36,37,42)$ modulo 43 , and see that they can't be combined to give 11. Indeed, + +$$ +\begin{aligned} +2 x^{6} \bmod 43 & \in\{0,2,8,22,27,32,39,42\}, \\ +11-y^{7} \bmod 43 & \in\{4,5,10,11,12,17,18\}, +\end{aligned} +$$ + +and these sets do not intersect. + +Remark. To find the sixth and seventh powers modulo 43, we can note that 3 is a primitive root modulo 43. So the nonzero sixth powers are exactly the powers of $3^{6} \equiv 41 \equiv-2$ and the nonzero seventh powers are the powers of $3^{7} \equiv 37 \equiv-6$ $(\bmod 43)$. + diff --git a/BalticWay/md/en-bw13sol.md b/BalticWay/md/en-bw13sol.md new file mode 100644 index 0000000000000000000000000000000000000000..c4d527ae9a72f3f84ba6d11dec2b393e94c64146 --- /dev/null +++ b/BalticWay/md/en-bw13sol.md @@ -0,0 +1,597 @@ +# Baltic Way 2013 + +Riga, Latvia + +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-01.jpg?height=589&width=1707&top_left_y=1216&top_left_x=177) + +Problems and solutions + +## Problem 1 + +Let $n$ be a positive integer. Assume that $n$ numbers are to be chosen from the table + +$$ +\begin{array}{cccc} +0 & 1 & \cdots & n-1 \\ +n & n+1 & \cdots & 2 n-1 \\ +\vdots & \vdots & \ddots & \vdots \\ +(n-1) n & (n-1) n+1 & \cdots & n^{2}-1 +\end{array} +$$ + +with no two of them from the same row or the same column. Find the maximal value of the product of these $n$ numbers. + +## Solution + +The product is $R(\sigma)=\prod_{i=0}^{n-1}(n i+\sigma(i))$, for some permutation $\sigma:\{0,1, \ldots, n-1\} \rightarrow\{0,1, \ldots, n-1\}$. Let $\sigma$ be such that $R(\sigma)$ is maximal. We may assume that all the multipliers $n i+\sigma(i)$ are positive, because otherwise the product is zero, that is the smallest possible. +Assume further that $\sigma(a)>\sigma(b)$ for some $a>b$. Let a permutation $\tau$ be defined by + +$$ +\tau(i)= \begin{cases}\sigma(b), & i=a \\ \sigma(a), & i=b \\ \sigma(i), & \text { otherwise }\end{cases} +$$ + +We have + +$$ +\frac{R(\tau)}{R(\sigma)}=\frac{(n a+\tau(a))(n b+\tau(b))}{(n a+\sigma(a))(n b+\sigma(b))}=\frac{(n a+\sigma(b))(n b+\sigma(a))}{(n a+\sigma(a))(n b+\sigma(b))}>1 +$$ + +as +$(n a+\sigma(b))(n b+\sigma(a))-(n a+\sigma(a))(n b+\sigma(b))=n(a \sigma(a)+b \sigma(b)-a \sigma(b)-b \sigma(a))=n(a-b)(\sigma(a)-\sigma(b))>0$. +This is a contradiction with the maximality of $R(\sigma)$, hence, $\sigma$ has to satisfy $\sigma(a)<\sigma(b)$ for all $a>b$. Thus, $\sigma(i)=n-1-i$ for all $i$, and + +$$ +R(\sigma)=\prod_{i=0}^{n-1}(n i+n-1-i)=\prod_{i=0}^{n-1}(i+1)(n-1)=(n-1)^{n} n! +$$ + +## Problem 2 + +Let $k$ and $n$ be positive integers and let $x_{1}, x_{2}, \ldots, x_{k}, y_{1}, y_{2}, \ldots, y_{n}$ be distinct integers. A polynomial $P$ with integer coefficients satisfies + +$$ +P\left(x_{1}\right)=P\left(x_{2}\right)=\ldots=P\left(x_{k}\right)=54 +$$ + +and + +$$ +P\left(y_{1}\right)=P\left(y_{2}\right)=\ldots=P\left(y_{n}\right)=2013 . +$$ + +Determine the maximal value of $k n$. + +## Solution + +Letting $Q(x)=P(x)-54$, we see that $Q$ has $k$ zeroes at $x_{1}, \ldots, x_{k}$, while $Q\left(y_{i}\right)=1959$ for $i=1, \ldots, n$. We notice that $1959=3 \cdot 653$, and an easy check shows that 653 is a prime number. As + +$$ +Q(x)=\prod_{j=1}^{k}\left(x-x_{j}\right) S(x) +$$ + +and $S(x)$ is a polynomial with integer coefficients, we have + +$$ +Q\left(y_{i}\right)=\prod_{j=1}^{k}\left(y_{i}-x_{j}\right) S\left(x_{j}\right)=1959 . +$$ + +Now all numbers $a_{i}=y_{i}-x_{1}$ have to be in the set $\{ \pm 1, \pm 3, \pm 653, \pm 1959\}$. Clearly, $n$ can be at most 4 , and if $n=4$, then two of the $a_{i}$ 's are $\pm 1$, one has absolute value 3 and the fourth one has absolute value 653 . Assuming $a_{1}=1, a_{2}=-1, x_{1}$ has to be the average of $y_{1}$ and $y_{2}$. Let $\left|y_{3}-x_{1}\right|=3$. If $k \geq 2$, then $x_{2} \neq x_{1}$, and the set of numbers $b_{i}=y_{i}-x_{2}$ has the same properties as the $a_{i}$ 's. Then $x_{2}$ is the average of, say $y_{2}$ and $y_{3}$ or $y_{3}$ and $y_{1}$. In either case $\left|y_{4}-x_{2}\right| \neq 653$. So if $k \geq 2$, then $n \leq 3$. In a quite similar fashion one shows that $k \geq 3$ implies $n \leq 2$. +The polynomial $P(x)=653 x^{2}\left(x^{2}-4\right)+2013$ shows the $n k=6$ indeed is possible. + +## Problem 3 + +Let $\mathbb{R}$ denote the set of real numbers. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that + +$$ +f(x f(y)+y)+f(-f(x))=f(y f(x)-y)+y \quad \text { for all } x, y \in \mathbb{R} +$$ + +## Solution + +Let $f(0)=c$. We make the following substitutions in the initial equation: + +1) $x=0, y=0 \Longrightarrow f(0)+f(-c)=f(0) \Longrightarrow f(-c)=0$. +2) $x=0, y=-c \Longrightarrow f(-c)+f(-c)=f\left(c-c^{2}\right)-c \Longrightarrow f\left(c-c^{2}\right)=c$. +3) $x=-c, y=-c \Longrightarrow f(-c)+f(0)=f(c)-c \Longrightarrow f(c)=2 c$. +4) $x=0, y=c \Longrightarrow f(c)+f(-c)=f\left(c^{2}-c\right)+c \Longrightarrow f\left(c^{2}-c\right)=c$. +5) $x=-c, y=c^{2}-c \Longrightarrow f(-c)+f(0)=f\left(c-c^{2}\right)+c^{2}-c \Longrightarrow c=c^{2} \Longrightarrow c=0$ or 1 . + +Suppose that $c=0$. Let $f(-1)=d+1$. We make the following substitutions in the initial equation: + +1) $x=0 \Longrightarrow f(y)+f(0)=f(-y)+y \Longrightarrow y-f(y)=-f(-y)$ for any $y \in \mathbb{R}$. +2) $y=0 \Longrightarrow f(0)+f(-f(x))=f(0) \Longrightarrow f(-f(x))=0$ for any $x \in \mathbb{R}$. +3) $x=-1 \Longrightarrow f(y-f(y))+0=f(d y)+y \Longrightarrow f(d y)=-y+f(-f(-y))=-y$ for any $y \in \mathbb{R}$. + +Thus, for any $x \in \mathbb{R}$ we have $f(x)=f(-f(d x))=0$. However, this function does not satisfy the initial equation. Suppose that $c=1$. We take $x=0$ in the initial equation: + +$$ +f(y)+f(-c)=f(0)+y \Longrightarrow f(y)=y+1 +$$ + +for any $y \in \mathbb{R}$. The function satisfies the initial equation. +Answer: $\quad f(x) \equiv x+1$. + +## Problem 4 + +Prove that the following inequality holds for all positive real numbers $x, y, z$ : + +$$ +\frac{x^{3}}{y^{2}+z^{2}}+\frac{y^{3}}{z^{2}+x^{2}}+\frac{z^{3}}{x^{2}+y^{2}} \geq \frac{x+y+z}{2} +$$ + +## Solution + +The inequality is symmetric, so we may assume $x \leq y \leq z$. Then we have + +$$ +x^{3} \leq y^{3} \leq z^{3} \quad \text { and } \quad \frac{1}{y^{2}+z^{2}} \leq \frac{1}{x^{2}+z^{2}} \leq \frac{1}{x^{2}+y^{2}} +$$ + +Therefore, by the rearrangement inequality we have: + +$$ +\begin{gathered} +\frac{x^{3}}{y^{2}+z^{2}}+\frac{y^{3}}{x^{2}+z^{2}}+\frac{z^{3}}{x^{2}+y^{2}} \geq \frac{y^{3}}{y^{2}+z^{2}}+\frac{z^{3}}{x^{2}+z^{2}}+\frac{x^{3}}{x^{2}+y^{2}} \\ +\frac{x^{3}}{y^{2}+z^{2}}+\frac{y^{3}}{x^{2}+z^{2}}+\frac{z^{3}}{x^{2}+y^{2}} \geq \frac{z^{3}}{y^{2}+z^{2}}+\frac{x^{3}}{x^{2}+z^{2}}+\frac{y^{3}}{x^{2}+y^{2}} \\ +\frac{x^{3}}{y^{2}+z^{2}}+\frac{y^{3}}{x^{2}+z^{2}}+\frac{z^{3}}{x^{2}+y^{2}} \geq \frac{1}{2}\left(\frac{y^{3}+z^{3}}{y^{2}+z^{2}}+\frac{x^{3}+z^{3}}{x^{2}+z^{2}}+\frac{x^{3}+y^{3}}{x^{2}+y^{2}}\right) +\end{gathered} +$$ + +What's more, by the rearrangement inequality we have: + +$$ +\begin{gathered} +x^{3}+y^{3} \geq x y^{2}+x^{2} y \\ +2 x^{3}+2 y^{3} \geq\left(x^{2}+y^{2}\right)(x+y) \\ +\frac{x^{3}+y^{3}}{x^{2}+y^{2}} \geq \frac{x+y}{2} +\end{gathered} +$$ + +Applying it to the previous inequality we obtain: + +$$ +\frac{x^{3}}{y^{2}+z^{2}}+\frac{y^{3}}{x^{2}+z^{2}}+\frac{z^{3}}{x^{2}+y^{2}} \geq \frac{1}{2}\left(\frac{y+z}{2}+\frac{x+z}{2}+\frac{x+y}{2}\right) +$$ + +Which is the thesis. + +## Problem 5 + +Numbers 0 and 2013 are written at two opposite vertices of a cube. Some real numbers are to be written at the remaining 6 vertices of the cube. On each edge of the cube the difference between the numbers at its endpoints is written. When is the sum of squares of the numbers written on the edges minimal? + +## Solution 1 + +Answer: + +$$ +\left\{x_{1}, \ldots, x_{6}\right\}=\left\{\frac{2 \cdot 2013}{5}, \frac{2 \cdot 2013}{5}, \frac{2 \cdot 2013}{5}, \frac{3 \cdot 2013}{5}, \frac{3 \cdot 2013}{5}, \frac{3 \cdot 2013}{5}\right\} +$$ + +The function + +$$ +(x-a)^{2}+(x-b)^{2}+(x-c)^{2} +$$ + +attains its minimum when $x=\frac{a+b+c}{3}$. Let's call the vertices of the cube adjacent, if they are connected with an edge. If $S$ is minimal then numbers $x_{1} \ldots, x_{6}$ are such that any of them is the arithmetic mean of the numbers written on adjacent vertices (otherwise, S can be made smaller). This gives us 6 equalities: + +$$ +\left\{\begin{array}{l} +x_{1}=\frac{x_{4}+x_{5}}{3} \\ +x_{2}=\frac{x_{4}+x_{6}}{3} \\ +x_{3}=\frac{x_{5}+x_{6}}{3} \\ +x_{4}=\frac{x_{1}+x_{2}+2013}{3} \\ +x_{5}=\frac{x_{1}+x_{3}+2013}{3} \\ +x_{6}=\frac{x_{2}+x_{3}+2013}{3} +\end{array}\right. +$$ + +Here $x_{1}, x_{2}, x_{3}$ are written on vertices that are adjacent to the vertex that contains 0 . By solving this system we get the answer. +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-05.jpg?height=506&width=515&top_left_y=441&top_left_x=776) + +## Solution 2 + +$$ +\begin{gathered} +S=\left(x_{1}^{2}+x_{2}^{2}+x_{3}^{2}+\left(x_{4}-x_{1}\right)^{2}+\left(x_{4}-x_{2}\right)^{2}+\left(x_{5}-x_{1}\right)^{2}+\left(x_{5}-x_{3}\right)^{2}+\right. \\ +\left(x_{6}-x_{2}\right)^{2}+\left(x_{6}-x_{3}\right)^{2}+\left(2013-x_{4}\right)^{2}+\left(2013-x_{5}\right)^{2}+\left(2013-x_{6}\right)^{2}= \\ +=\left(\frac{1}{2} x_{1}^{2}+\left(x_{4}-x_{1}\right)^{2}+\frac{1}{2}\left(2013-x_{4}\right)^{2}\right)+\left(\frac{1}{2} x_{1}^{2}+\left(x_{5}-x_{1}\right)^{2}+\frac{1}{2}\left(2013-x_{5}\right)^{2}\right)+ \\ ++\left(\frac{1}{2} x_{2}^{2}+\left(x_{4}-x_{2}\right)^{2}+\frac{1}{2}\left(2013-x_{4}\right)^{2}\right)+\left(\frac{1}{2} x_{2}^{2}+\left(x_{6}-x_{2}\right)^{2}+\frac{1}{2}\left(2013-x_{6}\right)^{2}\right)+ \\ ++\left(\frac{1}{2} x_{3}^{2}+\left(x_{5}-x_{3}\right)^{2}+\frac{1}{2}\left(2013-x_{5}\right)^{2}\right)+\left(\frac{1}{2} x_{3}^{2}+\left(x_{6}-x_{3}\right)^{2}+\frac{1}{2}\left(2013-x_{6}\right)^{2}\right) +\end{gathered} +$$ + +Consider the expression + +$$ +\begin{aligned} +S_{1} & =\left(\frac{1}{2} x_{1}^{2}+\left(x_{4}-x_{1}\right)^{2}+\frac{1}{2}\left(2013-x_{4}\right)^{2}\right)= \\ +& =\left(\frac{x_{1}}{2}\right)^{2}+\left(\frac{x_{1}}{2}\right)^{2}+\left(x_{4}-x_{1}\right)^{2}+\left(\frac{2013-x_{4}}{2}\right)^{2}+\left(\frac{2013-x_{4}}{2}\right)^{2} +\end{aligned} +$$ + +and note that + +$$ +\left(\frac{x_{1}}{2}\right)+\left(\frac{x_{1}}{2}\right)+\left(x_{4}-x_{1}\right)+\left(\frac{2013-x_{4}}{2}\right)+\left(\frac{2013-x_{4}}{2}\right)=2013 +$$ + +If the sum of 5 numbers is fixed, then the sum of their squares is minimal if all of them are equal. It follows that: + +$$ +\frac{x_{1}}{2}=x_{4}-x_{1}=\frac{2013-x_{4}}{2} +$$ + +from where we get $x_{1}=2 \cdot 2013 / 5$ and $x_{4}=3 \cdot 2013 / 5$. Values for $x_{2}, x_{3}, x_{5}, x_{6}$ can be obtained similarly. + +## Problem 6 + +Santa Claus has at least $n$ gifts for $n$ children. For $i \in\{1,2, \ldots, n\}$, the $i$-th child considers $x_{i}>0$ of these items to be desirable. Assume that + +$$ +\frac{1}{x_{1}}+\ldots+\frac{1}{x_{n}} \leq 1 +$$ + +Prove that Santa Claus can give each child a gift that this child likes. + +## Solution + +Evidently the age of the children is immaterial, so we may suppose + +$$ +1 \leq x_{1} \leq x_{2} \leq \ldots \leq x_{n} +$$ + +Let us now consider the following procedure. First the oldest child chooses its favourite present and keeps it, then the second oldest child chooses its favourite remaining present, and so it goes on until either the presents are distributed in the expected way or some unlucky child is forced to take a present it does not like. +Let us assume, for the sake of a contradiction, that the latter happens, say to the $k$-th oldest child, where $1 \leq k \leq n$. Since the oldest child likes at least one of the items Santa Claus has, we must have $k \geq 2$. Moreover, at the moment the $k$-th child is to make its decision, only $k-1$ items are gone so far, which means that $x_{k} \leq k-1$. +For this reason, we have + +$$ +\frac{1}{x_{1}}+\ldots+\frac{1}{x_{k}} \geq \underbrace{\frac{1}{k-1}+\ldots+\frac{1}{k-1}}_{k}=\frac{k}{k-1}>1 +$$ + +contrary to our assumption. This proves that the procedure considered above always leads to a distribution of the presents to the children of the desired kind, whereby the problem is solved. + +## Problem 7 + +A positive integer is written on a blackboard. Players $A$ and $B$ play the following game: in each move one has to choose a divisor $m$ of the number $n$ written on the blackboard for which $1k$, there is a room with males that aren't known by the additional guy. Then he may enter the room and his wife may enter an empty room ( $n$-th room). +If $m \leq k$ we have $n-2-kA B$, let $D$ be the projection of $A$ on $B C$, and let $E$ and $F$ be the projections of $D$ on $A B$ and $A C$, respectively. Let $G$ be the intersection point of the lines $A D$ and $E F$. Let $H$ be the second intersection point of the line $A D$ and the circumcircle of triangle $A B C$. Prove that + +$$ +A G \cdot A H=A D^{2} +$$ + +## Solution 1 + +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-09.jpg?height=615&width=764&top_left_y=475&top_left_x=649) + +From similar right triangles we get + +$$ +\frac{B E}{A E}=\frac{\frac{B D}{A D} E D}{\frac{A D}{B D} E D}=\left(\frac{B D}{A D}\right)^{2} +$$ + +and analogously + +$$ +\frac{C F}{A F}=\left(\frac{C D}{A D}\right)^{2} +$$ + +Now, because $A C>A B$, the lines $B C$ and $E F$ intersect in a point $X$ on the extension of segment $B C$ beyond $B$. Menelaus' theorem gives + +$$ +B X \frac{C F}{A F}=C X \frac{B E}{A E}, \quad C X \frac{D G}{A G}=D X \frac{C F}{A F}, \quad D X \frac{B E}{A E}=B X \frac{D G}{A G} +$$ + +Adding these relations and rerranging terms we arrive at + +$$ +B C \frac{D G}{A G}=B D \frac{C F}{A F}+C D \frac{B E}{A E}=B C \frac{B D \cdot C D}{A D^{2}}=B C \frac{A D \cdot H D}{A D^{2}}=B C \frac{H D}{A D} +$$ + +whence + +$$ +\frac{D G}{A G}=\frac{H D}{A D} +$$ + +Hence follows + +$$ +\frac{A D}{A G}=\frac{A G+D G}{A G}=\frac{A D+H D}{A D}=\frac{A H}{A D} +$$ + +which is equivalent to the problem's assertion. + +## Solution 2 + +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-10.jpg?height=618&width=621&top_left_y=502&top_left_x=746) + +Inversion in the circle with centre $A$ and radius $A D$ maps the line $B C$ and the circle with diameter $A D$, passing through $E$ and $F$, therefore $B$ and $E$ and $C$ and $F$, therefore the circumcircle and the line $E F$ and therefore $H$ and $G$ onto one another. Hence the assertion follows. + +## Solution 3 + +Since $\angle A E D$ and $\angle A F D$ are right angles, $A F D E$ is cyclic. Then + +$$ +\angle A E F=\angle A D F +$$ + +Segment $D F$ is an altitude in a right triangle $A D C$, so + +$$ +\angle A D F=\angle A C D +$$ + +and + +$$ +\angle A C D=\angle A H B +$$ + +as angles inscribed in the circumcircle of $\triangle A B C$. Thus $\angle A E F=\angle A H B$, and $B E G H$ is cyclic. Then by the power of the point + +$$ +A E \cdot A B=A G \cdot A H +$$ + +On the other hand, since $D E$ is an altitude in a right triangle $A D B$, + +$$ +A E \cdot A B=A D^{2} +$$ + +It follows that $A G \cdot A H=A D^{2}$, and the result follows. + +## Problem 12 + +A trapezoid $A B C D$ with bases $A B$ and $C D$ is such that the circumcircle of the triangle $B C D$ intersects the line $A D$ in a point $E$, distinct from $A$ and $D$. Prove that the circumcircle of the triangle $A B E$ is tangent to the line $B C$. + +## Solution 1 + +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-11.jpg?height=783&width=798&top_left_y=454&top_left_x=635) + +If point $E$ lies on the segment $A D$ it is sufficient to prove $\angle C B E=\angle B A E$. It is true, since both angles are equal to $180^{\circ}-\angle A D C$. If point $D$ lies on the segment $A E$ we have $\angle C B E=\angle C D E=\angle B A E$, which proves the thesis. In the end, if point $A$ lies on the segment $D E$ we have $180^{\circ}-\angle C B E=\angle C D E=\angle B A E$. + +## Solution 2 + +By $\measuredangle$ denote a directed angle modulo $\pi$. Since $A B C D$ is a trapezoid, $\measuredangle B A E=\measuredangle C D E$, and since $B C D E$ is cyclic, $\measuredangle C D E=\measuredangle C B E$. Hence $\measuredangle B A E=\measuredangle C B E$, and the result follows. + +## Problem 13 + +All faces of a tetrahedron are right-angled triangles. It is known that three of its edges have the same length $s$. Find the volume of the tetrahedron. + +## Solution + +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-11.jpg?height=607&width=475&top_left_y=2021&top_left_x=793) + +The three equal edges clearly cannot bound a face by themselves, for then this triangle would be equilateral and not right-angled. Nor can they be incident to the same vertex, for then the opposite face would again be equilateral. +Hence we may name the tetrahedron $A B C D$ in such a way that $A B=B C=C D=s$. The angles $\angle A B C$ and $\angle B C D$ must then be right, and $A C=B D=s \sqrt{2}$. Suppose that $\angle A D C$ is right. Then by the Pythagorean theorem applied to $A C D$, we find $A D=s$. The reverse of the Pythagorean theorem applied to $A B D$, we see that $\angle D A B$ is right too. The quadrilateral $A B C D$ then has four right angles, and so must be a square. +From this contradiction, we conclude that $\angle A D C$ is not right. Since we already know that $A C>C D, \angle C A D$ cannot be right either, and the right angle of $A C D$ must be $\angle A C D$. The Pythagorean theorem gives $A D=s \sqrt{3}$. From the reverse of the Pythagorean theorem, we may now conclude that $\angle A B D$ is right. Consequently, $A B$ is perpendicular to $B C D$, and the volume of the tetrahedron may be simply calculated as + +$$ +\frac{A B \cdot B C \cdot C D}{6}=\frac{s^{3}}{6} +$$ + +## Problem 14 + +Circles $\alpha$ and $\beta$ of the same radius intersect in two points, one of which is $P$. Denote by $A$ and $B$, respectively, the points diametrically opposite to $P$ on each of $\alpha$ and $\beta$. A third circle of the same radius passes through $P$ and intersects $\alpha$ and $\beta$ in the points $X$ and $Y$, respectively. +Show that the line $X Y$ is parallel to the line $A B$. + +## Solution + +Let $M$ be the third circle, and denote by $Z$ the point on $M$ diametrically opposite to $P$. +Since $\angle A X P=\angle P X Z=90^{\circ}$, the three points $A, X, Z$ are collinear. Likewise, the three points $B, Y, Z$ are collinear. Point $P$ is equidistant to the three vertices of triangle $A B Z$, for $P A=P B=P Z$ is the common diameter of the circles. Therefore $P$ is the circumcentre of $A B Z$, which means the perpendiculars $P X$ and $P Y$ bisect the sides $A Z$ and $B Z$. Ergo, $X$ and $Y$ are midpoints on $A Z$ and $B Z$, which leads to the desired conclusion $X Y \| A B$. + +Remark. Note that $A$ and $Z$ are symmetric with respect to $P X$, thus we immediately obtain $A X=X Z$, and similarly $B Y=Y Z$. + +## Problem 15 + +Four circles in a plane have a common center. Their radii form a strictly increasing arithmetic progression. Prove that there is no square with each vertex lying on a different circle. + +## Solution + +![](https://cdn.mathpix.com/cropped/2024_11_22_4ffd808d57e3e21b28deg-13.jpg?height=584&width=600&top_left_y=462&top_left_x=728) + +First we prove the following lemma: +Lemma 1. If $A B C D$ is a square then for arbitrary point $E$ + +$$ +E A^{2}+E C^{2}=E B^{2}+E D^{2} +$$ + +Proof. Let $A^{\prime}, C^{\prime}$ be projections of $E$ on sides $A B$, and $C D$ respectively. Then + +$$ +\begin{aligned} +& E A^{2}+E C^{2}=\left(E A^{\prime 2}+A A^{\prime 2}\right)+\left(E C^{\prime 2}+C C^{\prime 2}\right) \\ +& E B^{2}+E D^{2}=\left(E A^{\prime 2}+A^{\prime} B^{2}\right)+\left(E C^{\prime 2}+C^{\prime} D^{2}\right) +\end{aligned} +$$ + +As $A^{\prime} B=C C^{\prime}$ and $A A^{\prime}=C^{\prime} D$ then $E A^{2}+E C^{2}=E B^{2}+E D^{2}$. Note that $E$ does not have to be inside the square, it is true for arbitrary point. + +Now let $O$ be the common center of circles and $A B C D$ be a square with each vertex lying on a different circle, assume that $A$ lies on the largest circle. If $a$ is the radius of the smallest circle and $p$ is the difference of the arithmetic progression then the radii of the circles are $a, a+p, a+2 p$ and $a+3 p$, these are also distances from $O$ to the vertices of the square $A B C D, O A=a+3 p$. Consider the expression $O A^{2}+O C^{2}-O B^{2}-O D^{2}$. Its smallest possible value is attained when $O C=a$, therefore + +$$ +O A^{2}+O C^{2}-O B^{2}-O D^{2} \geq(a+3 p)^{2}+a^{2}-(a+p)^{2}-(a+2 p)^{2}=4 p^{2}>0 +$$ + +what contradicts the lemma. + +## Problem 16 + +We call a positive integer $n$ delightful if there exists an integer $k, 1c$ be positive integers. Mary's teacher writes $n$ positive integers on a blackboard. Is it true that for all $n$ and $c$ Mary can always label the numbers written by the teacher by $a_{1}, \ldots, a_{n}$ in such an order that the cyclic product $\left(a_{1}-a_{2}\right) \cdot\left(a_{2}-a_{3}\right) \cdot \ldots \cdot\left(a_{n-1}-a_{n}\right) \cdot\left(a_{n}-a_{1}\right)$ would be congruent to either 0 or $c$ modulo $n$ ? + +## Solution + +Answer: Yes. +Solution: If some two of these $n$ integers are congruent modulo $n$ then Mary can choose them consecutively and obtain a product divisible by $n$. Hence we may assume in the rest that these $n$ integers written by the teacher are pairwise incongruent modulo $n$. This means that they cover all residues modulo $n$. If $n$ is composite then Mary can find integers $k$ and $l$ such that $n=k l$ and $2 \leq k \leq l \leq n-2$. Let Mary denote $a_{1}, a_{2}, a_{3}, a_{4}$ such that $a_{1} \equiv k, a_{2} \equiv 0, a_{3} \equiv l+1$ and $a_{4} \equiv 1$. The remaining numbers can be denoted in arbitrary order. The product is divisible by $n$ as the product of the first and the third factor is $(k-0) \cdot((l+1)-1)=k l=n$. If $n$ is prime then the numbers $c i$, where $i=0,1, \ldots, n-1$, cover all residues modulo $n$. Let Mary denote the numbers in such a way that $a_{i} \equiv c(n-i)$ for every $i=1, \ldots, n$. Then every factor in the product is congruent to $c$ modulo $n$, meaning that the product is congruent to $c^{n}$ modulo $n$. But $c^{n} \equiv c$ by Fermat's theorem, and Mary has done. + +## Problem 18 + +Find all pairs $(x, y)$ of integers such that $y^{3}-1=x^{4}+x^{2}$. + +## Solution + +If $x=0$, we get a solution $(x, y)=(0,1)$. This solution will turn out to be the only one. If $(x, y)$ is a solution then $(-x, y)$ also is a solution therefore we can assume that $x \geq 1$. We add 1 to both sides and factor: $y^{3}=x^{4}+x^{2}+1=\left(x^{2}+x+1\right)\left(x^{2}-x+1\right)$. We show that the factors $x^{2}+x+1$ and $x^{2}-x+1$ are co-prime. Assume that a prime $p$ divides both of them. Then $p \mid x^{2}+x+1-\left(x^{2}-x+1\right)=2 x$. Since $x^{2}+x+1$ is always odd, $p \mid x$. But then $p$ does not divide $x^{2}+x+1$, a contradiction. Since $x^{2}+x+1$ and $x^{2}-x+1$ have no prime factors in common and their product is a cube, both of them are cubes by a consequence of the fundamental theorem of arithmetic. Therefore, $x^{2}+x+1=a^{3}$ and $x^{2}-x+1=b^{3}$ for some non-negative integers $a$ and $b$. + +As $x \geq 1$ the first equation implies that $a>x^{\frac{2}{3}}$. But since clearly $b0$ and + +$$ +a_{54}=f^{54}\left(a_{0}\right)=f^{54}\left(g^{54}(0)\right) \equiv 0 \quad(\bmod 2013) +$$ + +## Problem 20 + +Find all polynomials $f$ with non-negative integer coefficients such that for all primes $p$ and positive integers $n$ there exist a prime $q$ and a positive integer $m$ such that $f\left(p^{n}\right)=q^{m}$. + +## Solution + +Notice that among the constant polynomials the only solutions are $P(t)=q^{m}$ where $q$ is a prime and $m$ a positive integer. Assume that + +$$ +P(t)=a_{k} t^{k}+\cdots a_{0} +$$ + +where $a_{k} \neq 0$ and $a_{0}, a_{1}, \ldots, a_{k}$ are non-negative integers, is a polynomial that fullfills the conditions. +First consider the case $a_{0} \neq 1$. Since $a_{0}$ is a non-negative integer different from 1 , there exists a prime $p$ such that $p$ divides $a_{0}$, and hence $p$ divides $P\left(p^{n}\right)$ for all $n$. Thus $P\left(p^{n}\right)$ is a power of $p$ for all positive integers $n$. If there exists a $k^{\prime}a_{k-1}\left(p^{n}\right)^{k-1}+\cdots+a_{0}>0 +$$ + +and hence $P\left(p^{n}\right) \not \equiv 0\left(\bmod p^{n k}\right)$, but this contradicts $P\left(p^{n}\right)=p^{m}$ for some integer $m$ since obviously $P\left(p^{n}\right)>$ $p^{n k}$ and therefore $m$ must be greater than $n k$. We conclude that in this case $P(t)=a_{k} t^{k}$, and it is easy to see that only $a_{k}=1$ is a possibility. +Now consider the case $a_{0}=1$. Let $Q(t)=P(P(t))$. Now $Q$ must as well as $P$ satisfy the conditions. Since $Q(0)=P(P(0))=P(1)>1$ and $Q$ is not constant, we know from the previous that $Q(t)=t^{k}$, which contradicts that $Q(0)>1$. Hence there are no solutions in this case. +Thus all polynomials that satisfy the conditions are $P(t)=t^{m}$ where $m$ is a positive integer, and $P(t)=q^{m}$ where $q$ is a prime and $m$ is a positive integer. + +## The 20 contest problems were submitted by 9 countries: + +| Country | | Proposed problems | | | +| :--- | :--- | :---: | :--- | :--- | +| Denmark | 1 | 11 | 16 | 20 | +| Estonia | 17 | | | | +| Finland | 2 | 18 | 19 | | +| Germany | 6 | | | | +| Lithuania | 3 | | | | +| Latvia | 5 | 10 | 15 | | +| Poland | 4 | 7 | 8 | | +| St. Petersburg | 9 | | | | +| Sweden | 13 | 14 | | | + +The solution 2 of the problem 19 originate from the contest paper of the Germany team. Some solutions have been added by coordinators. + diff --git a/BalticWay/md/en-bw14sol.md b/BalticWay/md/en-bw14sol.md new file mode 100644 index 0000000000000000000000000000000000000000..ff04844d4882970a7e05bf00edb12f8e3daecea8 --- /dev/null +++ b/BalticWay/md/en-bw14sol.md @@ -0,0 +1,663 @@ +# Contents + +Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 + +Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 + +## Problems + +## Problem 1 + +Show that + +$$ +\cos \left(56^{\circ}\right) \cdot \cos \left(2 \cdot 56^{\circ}\right) \cdot \cos \left(2^{2} \cdot 56^{\circ}\right) \cdot \ldots \cdot \cos \left(2^{23} \cdot 56^{\circ}\right)=\frac{1}{2^{24}} +$$ + +## Problem 2 + +Let $a_{0}, a_{1}, \ldots, a_{N}$ be real numbers satisfying $a_{0}=a_{N}=0$ and + +$$ +a_{i+1}-2 a_{i}+a_{i-1}=a_{i}^{2} +$$ + +for $i=1,2, \ldots, N-1$. Prove that $a_{i} \leqslant 0$ for $i=1,2, \ldots, N-1$. + +## Problem 3 + +Positive real numbers $a, b, c$ satisfy $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=3$. Prove the inequality + +$$ +\frac{1}{\sqrt{a^{3}+b}}+\frac{1}{\sqrt{b^{3}+c}}+\frac{1}{\sqrt{c^{3}+a}} \leqslant \frac{3}{\sqrt{2}} . +$$ + +## Problem 4 + +Find all functions $f$ defined on all real numbers and taking real values such that + +$$ +f(f(y))+f(x-y)=f(x f(y)-x) +$$ + +for all real numbers $x, y$. + +## Problem 5 + +Given positive real numbers $a, b, c, d$ that satisfy equalities + +$$ +a^{2}+d^{2}-a d=b^{2}+c^{2}+b c \quad \text { and } \quad a^{2}+b^{2}=c^{2}+d^{2} +$$ + +find all possible values of the expression $\frac{a b+c d}{a d+b c}$. + +## Problem 6 + +In how many ways can we paint 16 seats in a row, each red or green, in such a way that the number of consecutive seats painted in the same colour is always odd? + +## Problem 7 + +Let $p_{1}, p_{2}, \ldots, p_{30}$ be a permutation of the numbers $1,2, \ldots, 30$. For how many permutations does the equality $\sum_{k=1}^{30}\left|p_{k}-k\right|=450$ hold? + +## Problem 8 + +Albert and Betty are playing the following game. There are 100 blue balls in a red bowl and 100 red balls in a blue bowl. In each turn a player must make one of the following moves: + +a) Take two red balls from the blue bowl and put them in the red bowl. + +b) Take two blue balls from the red bowl and put them in the blue bowl. + +c) Take two balls of different colors from one bowl and throw the balls away. + +They take alternate turns and Albert starts. The player who first takes the last red ball from the blue bowl or the last blue ball from the red bowl wins. Determine who has a winning strategy. + +## Problem 9 + +What is the least possible number of cells that can be marked on an $n \times n$ board such that for each $m>\frac{n}{2}$ both diagonals of any $m \times m$ sub-board contain a marked cell? + +## Problem 10 + +In a country there are 100 airports. Super-Air operates direct flights between some pairs of airports (in both directions). The traffic of an airport is the number of airports it has a direct Super-Air connection with. A new company, Concur-Air, establishes a direct flight between two airports if and only if the sum of their traffics is at least 100. It turns out that there exists a round-trip of Concur-Air flights that lands in every airport exactly once. Show that then there also exists a round-trip of Super-Air flights that lands in every airport exactly once. + +## Problem 11 + +Let $\Gamma$ be the circumcircle of an acute triangle $A B C$. The perpendicular to $A B$ from $C$ meets $A B$ at $D$ and $\Gamma$ again at $E$. The bisector of angle $C$ meets $A B$ at $F$ and $\Gamma$ again at $G$. The line $G D$ meets $\Gamma$ again at $H$ and the line $H F$ meets $\Gamma$ again at $I$. Prove that $A I=E B$. + +## Problem 12 + +Triangle $A B C$ is given. Let $M$ be the midpoint of the segment $A B$ and $T$ be the midpoint of the arc $B C$ not containing $A$ of the circumcircle of $A B C$. The point $K$ inside the triangle $A B C$ is such that $M A T K$ is an isosceles trapezoid with $A T \| M K$. Show that $A K=K C$. + +## Problem 13 + +Let $A B C D$ be a square inscribed in a circle $\omega$ and let $P$ be a point on the shorter arc $A B$ of $\omega$. Let $C P \cap B D=R$ and $D P \cap A C=S$. Show that triangles $A R B$ and $D S R$ have equal areas. + +## Problem 14 + +Let $A B C D$ be a convex quadrilateral such that the line $B D$ bisects the angle $A B C$. The circumcircle of triangle $A B C$ intersects the sides $A D$ and $C D$ in the points $P$ and $Q$, respectively. The line through $D$ and parallel to $A C$ intersects the lines $B C$ and $B A$ at the points $R$ and $S$, respectively. Prove that the points $P, Q, R$ and $S$ lie on a common circle. + +## Problem 15 + +The sum of the angles $A$ and $C$ of a convex quadrilateral $A B C D$ is less than $180^{\circ}$. Prove that + +$$ +A B \cdot C D+A D \cdot B C0$. This $i$ cannot be equal to 0 or $N$, since $a_{0}=a_{N}=0$. Thus, from $a_{i} \geqslant a_{i-1}$ and $a_{i} \geqslant a_{i+1}$ we obtain $090^{\circ}$. Then $\angle B C D<90^{\circ}$, whence $a^{2}+b^{2}0$, we can write + +$$ +a=T \sin \alpha, \quad b=T \cos \alpha, \quad c=T \sin \beta, \quad d=T \cos \beta +$$ + +for some $\alpha, \beta \in(0, \pi / 2)$. With this notation, the first equality gives + +$$ +\sin ^{2} \alpha+\cos ^{2} \beta-\sin \alpha \cos \beta=\sin ^{2} \beta+\cos ^{2} \alpha+\cos \alpha \sin \beta . +$$ + +Hence, $\cos (2 \beta)-\cos (2 \alpha)=\sin (\alpha+\beta)$. Since $\cos (2 \beta)-\cos (2 \alpha)=2 \sin (\alpha-\beta) \sin (\alpha+\beta)$ and $\sin (\alpha+\beta) \neq 0$, this yields $\sin (\alpha-\beta)=1 / 2$. Thus, in view of $\alpha-\beta \in(-\pi / 2, \pi / 2)$ we deduce that $\cos (\alpha-\beta)=\sqrt{1-\sin ^{2}(\alpha-\beta)}=\sqrt{3} / 2$. + +Now, observing that $a b+c d=\frac{T^{2}}{2}(\sin (2 \alpha)+\sin (2 \beta))=T^{2} \sin (\alpha+\beta) \cos (\alpha-\beta)$ and $a d+b c=T^{2} \sin (\alpha+\beta)$, we obtain $(a b+c d) /(a d+b c)=\cos (\alpha-\beta)=\sqrt{3} / 2$. + +## Problem 6 + +In how many ways can we paint 16 seats in a row, each red or green, in such a way that the number of consecutive seats painted in the same colour is always odd? + +Answer: 1974. + +Solution. Let $g_{k}, r_{k}$ be the numbers of possible odd paintings of $k$ seats such that the first seat is painted green or red, respectively. Obviously, $g_{k}=r_{k}$ for any $k$. Note that $g_{k}=r_{k-1}+g_{k-2}=g_{k-1}+g_{k-2}$, since $r_{k-1}$ is the number of odd paintings with first seat green and second seat red and $g_{k-2}$ is the number of odd paintings with first and second seats green. Moreover, $g_{1}=g_{2}=1$, so $g_{k}$ is the $k$ th element of the Fibonacci sequence. Hence, the number of ways to paint $n$ seats in a row is $g_{n}+r_{n}=2 f_{n}$. Inserting $n=16$ we obtain $2 f_{16}=2 \cdot 987=1974$. + +## Problem 7 + +Let $p_{1}, p_{2}, \ldots, p_{30}$ be a permutation of the numbers $1,2, \ldots, 30$. For how many permutations does the equality $\sum_{k=1}^{30}\left|p_{k}-k\right|=450$ hold? + +Answer: $(15 !)^{2}$. + +Solution. Let us define pairs $\left(a_{i}, b_{i}\right)$ such that $\left\{a_{i}, b_{i}\right\}=\left\{p_{i}, i\right\}$ and $a_{i} \geqslant b_{i}$. Then for every $i=1, \ldots, 30$ we have $\left|p_{i}-i\right|=a_{i}-b_{i}$ and + +$$ +\sum_{i=1}^{30}\left|p_{i}-i\right|=\sum_{i=1}^{30}\left(a_{i}-b_{i}\right)=\sum_{i=1}^{30} a_{i}-\sum_{i=1}^{30} b_{i} +$$ + +It is clear that the sum $\sum_{i=1}^{30} a_{i}-\sum_{i=1}^{30} b_{i}$ is maximal when + +$$ +\left\{a_{1}, a_{2}, \ldots, a_{30}\right\}=\{16,17, \ldots, 30\} \quad \text { and } \quad\left\{b_{1}, b_{2}, \ldots, b_{30}\right\}=\{1,2, \ldots, 15\} +$$ + +where exactly two $a_{i}$ 's and two $b_{j}$ 's are equal, and the maximal value equals + +$$ +2(16+\cdots+30-1-\cdots-15)=450 . +$$ + +The number of such permutations is $(15 !)^{2}$. + +## Problem 8 + +Albert and Betty are playing the following game. There are 100 blue balls in a red bowl and 100 red balls in a blue bowl. In each turn a player must make one of the following moves: + +a) Take two red balls from the blue bowl and put them in the red bowl. + +b) Take two blue balls from the red bowl and put them in the blue bowl. + +c) Take two balls of different colors from one bowl and throw the balls away. + +They take alternate turns and Albert starts. The player who first takes the last red ball from the blue bowl or the last blue ball from the red bowl wins. Determine who has a winning strategy. + +Answer: Betty has a winning strategy. + +Solution. Betty follows the following strategy. If Albert makes move a), then Betty makes move b) and vice verse. If Albert makes move c) from one bowl, Betty makes move c) from the other bowl. The only exception of this rule is that if Betty can make a winning move, that is, a move where she removes the last blue ball from the red bowl, or the last red ball from the blue bowl, then she makes her winning move. + +Firstly, we prove that it is possible to follow this strategy. Let + +$$ +\begin{aligned} +& b=(\# \text { red balls in the blue bowl, } \# \text { blue balls in the blue bowl }), \\ +& r=(\# \text { blue balls in the red bowl, } \# \text { red balls in the red bowl }) . +\end{aligned} +$$ + +At the beginning $b=r=(100,0)$. If $b=r$ and Albert takes a move a), then it must be possible for Betty to take a move b) and again leave a situation with $b=r$ to Albert. The same happens when Albert takes a move b). If $b=r$ and Albert takes a move c) from one bowl, then it is possible for Betty to take a move c) from the other bowl and again leave a situation with $b=r$. Thus, by following this strategy, Betty always leaves to Albert a situation with $b=r$ if she is not taking a winning move. Notice that there is one situation from which no legal move is possible, that is, $b=r=(1,0)$, but this could not happen, because the number of balls in a bowl is always even. (It is either increased or decreased by 2 , or doesn't change.) + +Now, we will prove that, by using this strategy, Betty wins. Assume that at some point Albert wins, that is, he takes a winning move. Since, before his move, we have $b=r$, the situation was either $b=r=(1, s), s \geqslant 1$, or $b=r=(2, t), t \geqslant 0$. But that means that either $b$ or $r$ was either $\left(1, s^{\prime}\right), s^{\prime} \geqslant 1$ (because $1+s^{\prime}$ is even), or $\left(2, t^{\prime}\right), t^{\prime} \geqslant 0$, +before Betty made her last move. This is a contradiction with Betty's strategy, because in this situation Betty would have taken a winning move, and the game would have stopped. Hence, Betty always wins. + +## Problem 9 + +What is the least possible number of cells that can be marked on an $n \times n$ board such that for each $m>\frac{n}{2}$ both diagonals of any $m \times m$ sub-board contain a marked cell? + +## Answer: $n$. + +Solution. For any $n$ it is possible to set $n$ marks on the board and get the desired property, if they are simply put on every cell in row number $\left\lceil\frac{n}{2}\right\rceil$. We now show that $n$ is also the minimum amount of marks needed. + +If $n$ is odd, then there are $2 n$ series of diagonal cells of length $>\frac{n}{2}$ and both end cells on the edge of the board, and, since every mark on the board can at most lie on two of these diagonals, it is necessary to set at least $n$ marks to have a mark on every one of them. + +If $n$ is even, then there are $2 n-2$ series of diagonal cells of length $>\frac{n}{2}$ and both end cells on the edge of the board. We call one of these diagonals even if every coordinate $(x, y)$ on it satisfies $2 \mid x-y$ and odd else. It can be easily seen that this is well defined. Now, by symmetry, the number of odd and even diagonals is the same, so there are exactly $n-1$ of each of them. Any mark set on the board can at most sit on two diagonals and these two have to be of the same kind. Thus, we will need at least $\frac{n}{2}$ marks for the even diagonals, since there are $n-1$ of them and $2 \nmid n-1$, and, similarly, we need at least $\frac{n}{2}$ marks for the the odd diagonals. So we need at least $\frac{n}{2}+\frac{n}{2}=n$ marks to get the desired property. + +## Problem 10 + +In a country there are 100 airports. Super-Air operates direct flights between some pairs of airports (in both directions). The traffic of an airport is the number of airports it has a direct Super-Air connection with. A new company, Concur-Air, establishes a direct flight between two airports if and only if the sum of their traffics is at least 100. It turns out that there exists a round-trip of Concur-Air flights that lands in every airport exactly once. Show that then there also exists a round-trip of Super-Air flights that lands in every airport exactly once. + +Solution. Let $G$ and $G^{\prime}$ be two graphs corresponding to the flights of Super-Air and Concur-Air, respectively. Then the traffic of an airport is simply the degree of a corresponding vertex, and the assertion means that the graph $G$ has a Hamiltonian cycle. + +Lemma. Let a graph $H$ has 100 vertices and contains a Hamiltonian path (not cycle) that starts at the vertex $A$ and ends in $B$. If the sum of degrees of vertices $A$ and $B$ is at least 100, then the graph $H$ contains a Hamiltonian cycle. + +Proof. Put $N=\operatorname{deg} A$. Then $\operatorname{deg} B \geqslant 100-N$. Let us enumarate the vertices along the Hamiltonian path: $C_{1}=A, C_{2}, \ldots, C_{100}=B$. Let $C_{p}, C_{q}, C_{r}, \ldots$ be the $N$ vertices which are connected directly to $A$. Consider $N$ preceding vertices: $C_{p-1}, C_{q-1}, C_{r-1}, \ldots$ Since the remaining part of the graph $H$ contains $100-N$ vertices (including $B$ ) and $\operatorname{deg} B \geqslant 100-N$, we conclude that at least one vertex under consideration, say $C_{r-1}$, is connected directly to $B$. Then + +$$ +A=C_{1} \rightarrow C_{2} \rightarrow \cdots \rightarrow C_{r-1} \rightarrow B=C_{100} \rightarrow C_{99} \rightarrow \cdots \rightarrow C_{r} \rightarrow A +$$ + +is a Hamiltonian cycle. + +Now, let us solve the problem. Assume that the graph $G$ contains no Hamiltonian cycle. Consider arbitrary two vertices $A$ and $B$ not connected by an edge in the graph $G$ but connected in $G^{\prime}$. The latter means that $\operatorname{deg} A+\operatorname{deg} B \geqslant 100$ in the graph $G$. Let us add the edge $A B$ to the graph $G$. By the lemma, there was no Hamiltonian path from $A$ to $B$ in the graph $G$. Therefore, the graph $G$ still does not contain a Hamiltonian cycle after adding this new edge. By repeating this operation, we will obtain that all the vertices connected by an edge in the graph $G^{\prime}$ are also connected in the graph $G$ and at the same time the graph $G$ has no Hamiltonian cycle (in contrast to $G^{\prime}$ ). This is a contradiction. + +## Problem 11 + +Let $\Gamma$ be the circumcircle of an acute triangle $A B C$. The perpendicular to $A B$ from $C$ meets $A B$ at $D$ and $\Gamma$ again at $E$. The bisector of angle $C$ meets $A B$ at $F$ and $\Gamma$ again at $G$. The line $G D$ meets $\Gamma$ again at $H$ and the line $H F$ meets $\Gamma$ again at $I$. Prove that $A I=E B$. + +Solution. Since $C G$ bisects $\angle A C B$, we have $\angle A H G=\angle A C G=\angle G C B$. Thus, from the triangle $A D H$ we find that $\angle H D B=\angle H A B+\angle A H G=\angle H C B+\angle G C B=\angle G C H$. It follows that a pair of opposite angles in the quadrilateral $C F D H$ are supplementary, whence $C F D H$ is a cyclic quadrilateral. Thus, $\angle G C E=\angle F C D=\angle F H D=\angle I H G=$ $\angle I C G$. In view of $\angle A C G=\angle G C B$ we obtain $\angle A C I=\angle E C B$, which implies $A I=E B$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_22b0cfcc9232aac0540bg-17.jpg?height=1160&width=1217&top_left_y=1119&top_left_x=428) + +## Problem 12 + +Triangle $A B C$ is given. Let $M$ be the midpoint of the segment $A B$ and $T$ be the midpoint of the arc $B C$ not containing $A$ of the circumcircle of $A B C$. The point $K$ inside the triangle $A B C$ is such that $M A T K$ is an isosceles trapezoid with $A T \| M K$. Show that $A K=K C$. + +Solution. Assume that $T K$ intersects the circumcircle of $A B C$ at the point $S$ (where $S \neq T)$. Then $\angle A B S=\angle A T S=\angle B A T$, so $A S B T$ is a trapezoid. Hence, $M K\|A T\| S B$ and $M$ is the midpoint of $A B$. Thus, $K$ is the midpoint of $T S$. From $\angle T A C=\angle B A T=$ $\angle A T S$ we see that $A C T S$ is an inscribed trapezoid, so it is isosceles. Thus, $A K=K C$, since $K$ is the midpoint of $T S$. + +## Problem 13 + +Let $A B C D$ be a square inscribed in a circle $\omega$ and let $P$ be a point on the shorter arc $A B$ of $\omega$. Let $C P \cap B D=R$ and $D P \cap A C=S$. Show that triangles $A R B$ and $D S R$ have equal areas. + +Solution. Let $T=P C \cap A B$. Then $\angle B T C=90^{\circ}-\angle P C B=90^{\circ}-\angle P D B=90^{\circ}-$ $\angle S B D=\angle B S C$, thus the points $B, S, T, C$ are concyclic. Hence $\angle T S C=90^{\circ}$, and, therefore, $T S \| B D$. It follows that + +$$ +[D S R]=[D T R]=[D T B]-[T B R]=[C T B]-[T B R]=[C R B]=[A R B] +$$ + +where $[\Delta]$ denotes the area of a triangle $\Delta$. + +## Problem 14 + +Let $A B C D$ be a convex quadrilateral such that the line $B D$ bisects the angle $A B C$. The circumcircle of triangle $A B C$ intersects the sides $A D$ and $C D$ in the points $P$ and $Q$, respectively. The line through $D$ and parallel to $A C$ intersects the lines $B C$ and $B A$ at the points $R$ and $S$, respectively. Prove that the points $P, Q, R$ and $S$ lie on a common circle. + +Solution 1. Since $\angle S D P=\angle C A P=\angle R B P$, the quadrilateral $B R D P$ is cyclic (see Figure 1). Similarly, the quadrilateral $B S D Q$ is cyclic. Let $X$ be the second intersection point of the segment $B D$ with the circumcircle of the triangle $A B C$. Then + +$$ +\angle A X B=\angle A C B=\angle D R B, +$$ + +and, moreover, $\angle A B X=\angle D B R$. It means that triangles $A B X$ and $D B R$ are similar. Thus + +$$ +\angle R P B=\angle R D B=\angle X A B=\angle X P B, +$$ + +which implies that the points $R, X$ and $P$ are collinear. Analogously, we can show that the points $S, X$ and $Q$ are collinear. + +Thus, we obtain $R X \cdot X P=D X \cdot X B=S X \cdot X Q$, which proves that the points $P$, $Q, R$ and $S$ lie on a common circle. + +![](https://cdn.mathpix.com/cropped/2024_04_17_22b0cfcc9232aac0540bg-20.jpg?height=894&width=1430&top_left_y=1546&top_left_x=313) + +Figure 1 + +Solution 2. If $A B=B C$, then the points $R$ and $S$ are symmetric to each other with respect to the line $B D$. Similarly, the points $P$ and $Q$ are symmetric to each other with respect to the line $B D$. Therefore, $R S P Q$ is an isosceles trapezoid, so the claim follows. + +Assume that $A B \neq B C$. Denote by $\omega$ the circumcircle of the triangle $A B C$ (see Figure 2). Since the lines $A C$ and $S R$ are parallel, the dilation with center $B$, which takes $A$ to $S$, also takes $C$ to $R$ and the circle $\omega$ to the circumcircle $\omega_{1}$ of $B S R$. This implies that $\omega$ and $\omega_{1}$ are tangent at $B$. + +Note that $\angle R D Q=\angle D C A=\angle D P Q$, which means that the circumcircle $\omega_{2}$ of the triangle $P Q D$ is tangent to the line $R S$ at $D$. + +Denote by $K$ the intersection point of the line $R S$ with the common tangent to $\omega$ and $\omega_{1}$ at $B$. Then we have + +$$ +\angle K B D=\angle K B R+\angle C B D=\angle D S B+\angle S B D=\angle K D B, +$$ + +which implies that $K D=K B$. Therefore, the powers of the point $K$ with respect to the circles $\omega$ and $\omega_{2}$ are equal, so $K$ lies on their radical axis. This implies that the points $K, P$ and $Q$ are collinear. Finally, we obtain + +$$ +K R \cdot K S=K B^{2}=K D^{2}=K P \cdot K Q, +$$ + +which shows that the points $P, Q, R$ and $S$ lie on a common circle. + +![](https://cdn.mathpix.com/cropped/2024_04_17_22b0cfcc9232aac0540bg-21.jpg?height=654&width=1442&top_left_y=1592&top_left_x=313) + +Figure 2 + +Solution 3. Denote by $X^{\prime}$ the image of the point $X$ under some fixed inversion with center $B$. At the beginning of Solution 2 we noticed that the circumcircles of the triangles $A B C$ and $S B R$ are tangent at the point $B$. Therefore, the images of these two circles +under the considered inversion become two parallel lines $A^{\prime} C^{\prime}$ and $S^{\prime} R^{\prime}$ (see Figure 3). + +Since $D$ lies on the line $R S$ and also on the angle bisector of the angle $A B C$, the point $D^{\prime}$ lies on the circumcircle of the triangle $B R^{\prime} S^{\prime}$ and also on the angle bisector of the angle $A^{\prime} B C^{\prime}$. Since the point $P$, other than $A$, is the intersection point of the line $A D$ and the circumcircle of the triangle $A B C$, the point $P^{\prime}$, other than $A^{\prime}$, is the intersection point of the circumcircle of the triangle $B A^{\prime} D^{\prime}$ and the line $A^{\prime} C^{\prime}$. Similarly, the point $Q^{\prime}$ is the intersection point of the circumcircle of the triangle $B C^{\prime} D^{\prime}$ and the line $A^{\prime} C^{\prime}$. + +Therefore, we obtain + +$$ +\angle D^{\prime} Q^{\prime} P^{\prime}=\angle C^{\prime} B D^{\prime}=\angle A^{\prime} B D^{\prime}=\angle D^{\prime} P^{\prime} Q^{\prime} +$$ + +and + +$$ +\angle D^{\prime} R^{\prime} S^{\prime}=\angle D^{\prime} B S^{\prime}=\angle R^{\prime} B D^{\prime}=\angle R^{\prime} S^{\prime} D^{\prime} . +$$ + +This implies that the points $P^{\prime}$ and $S^{\prime}$ are symmetric to the points $Q^{\prime}$ and $R^{\prime}$ with respect to the line passing through $D^{\prime}$ and perpendicular to the lines $A^{\prime} C^{\prime}$ and $S^{\prime} R^{\prime}$. Thus $P^{\prime} S^{\prime} R^{\prime} Q^{\prime}$ is an isosceles trapezoid, so the points $P^{\prime}, S^{\prime}, R^{\prime}$ and $Q^{\prime}$ lie on a common circle. Therefore, the points $P, Q, R$ and $S$ also lie on a common circle. + +![](https://cdn.mathpix.com/cropped/2024_04_17_22b0cfcc9232aac0540bg-22.jpg?height=871&width=1430&top_left_y=1398&top_left_x=313) + +Figure 3 + +## Problem 15 + +The sum of the angles $A$ and $C$ of a convex quadrilateral $A B C D$ is less than $180^{\circ}$. Prove that + +$$ +A B \cdot C D+A D \cdot B C1$ be an integer. Find all non-constant real polynomials $P(x)$ satisfying, for any real $x$, the identity + +$$ +P(x) P\left(x^{2}\right) P\left(x^{3}\right) \cdots P\left(x^{n}\right)=P\left(x^{\frac{n(n+1)}{2}}\right) . +$$ + +Solution. Answer: $P(x)=x^{m}$ if $n$ is even; $P(x)= \pm x^{m}$ if $n$ is odd. + +Consider first the case of a monomial $P(x)=a x^{m}$ with $a \neq 0$. Then + +$$ +a x^{\frac{m n(n+1)}{2}}=P\left(x^{\frac{n(n+1)}{2}}\right)=P(x) P\left(x^{2}\right) P\left(x^{3}\right) \cdots P\left(x^{n}\right)=a x^{m} \cdot a x^{2 m} \cdots a x^{n m}=a^{n} x^{\frac{m n(n+1)}{2}} +$$ + +implies $a^{n}=a$. Thus, $a=1$ when $n$ is even and $a= \pm 1$ when $n$ is odd. Obviously these polynomials satisfy the desired equality. + +Suppose now that $P$ is not a monomial. Write $P(x)=a x^{m}+Q(x)$, where $Q$ is non-zero polynomial with $\operatorname{deg} Q=kk$. Consequently, no polynomial of the form $a x^{m}+Q(x)$ fulfils the given condition. + +## Problem 4. + +A family wears clothes of three colours: red, blue and green, with a separate, identical laundry bin for each colour. At the beginning of the first week, all bins are empty. Each week, the family generates a total of $10 \mathrm{~kg}$ of laundry (the proportion of each colour is subject to variation). The laundry is sorted by colour and placed in the bins. Next, the heaviest bin (only one of them, if there are several that are heaviest) is emptied and its contents washed. What is the minimal possible storing capacity required of the laundry bins in order for them never to overflow? + +## Solution. Answer: $25 \mathrm{~kg}$. + +Each week, the accumulation of laundry increases the total amount by $K=10$, after which the washing decreases it by at least one third, because, by the pigeon-hole principle, the bin with the most laundry must contain at least a third of the total. Hence the amount of laundry post-wash after the $n$th week is bounded above by the sequence $a_{n+1}=\frac{2}{3}\left(a_{n}+K\right)$ with $a_{0}=0$, which is clearly bounded above by $2 K$. The total amount of laundry is less than $2 K$ post-wash and $3 K$ pre-wash. + +Now suppose pre-wash state $(a, b, c)$ precedes post-wash state $(a, b, 0)$, which precedes pre-wash state $\left(a^{\prime}, b^{\prime}, c^{\prime}\right)$. The relations $a \leq c$ and $a^{\prime} \leq a+K$ lead to + +$$ +3 K>a+b+c \geq 2 a \geq 2\left(a^{\prime}-K\right) +$$ + +and similarly for $b^{\prime}$, whence $a^{\prime}, b^{\prime}<\frac{5}{2} K$. Since also $c^{\prime} \leq K$, a pre-wash bin, and a fortiori a post-wash bin, always contains less than $\frac{5}{2} K$. + +Consider now the following scenario. For a start, we keep packing the three bins equally full before washing. Initialising at $(0,0,0)$, the first week will end at $\left(\frac{1}{3} K, \frac{1}{3} K, \frac{1}{3} K\right)$ pre-wash and $\left(\frac{1}{3} K, \frac{1}{3} K, 0\right)$ post-wash, the second week at $\left(\frac{5}{9} K, \frac{5}{9} K, \frac{5}{9} K\right)$ pre-wash and $\left(\frac{5}{9} K, \frac{5}{9} K, 0\right)$ post-wash, \&c. Following this scheme, we can get arbitrarily close to the state $(K, K, 0)$ after washing. Supposing this accomplished, placing $\frac{1}{2} K \mathrm{~kg}$ of laundry in each of the non-empty bins leaves us in a state close to $\left(\frac{3}{2} K, \frac{3}{2} K, 0\right)$ pre-wash and $\left(\frac{3}{2} K, 0,0\right)$ post-wash. Finally, the next week's worth of laundry is directed solely to the single non-empty bin. It may thus contain any amount of laundry below $\frac{5}{2} K \mathrm{~kg}$. + +## Problem 5. + +Find all functions $f: \mathbf{R} \rightarrow \mathbf{R}$ satisfying the equation + +$$ +|x| f(y)+y f(x)=f(x y)+f\left(x^{2}\right)+f(f(y)) +$$ + +for all real numbers $x$ and $y$. + +Solution. Answer: all functions $f(x)=c(|x|-x)$, where $c \geq 0$. + +Choosing $x=y=0$, we find + +$$ +f(f(0))=-2 f(0) +$$ + +Denote $a=f(0)$, so that $f(a)=-2 a$, and choose $y=0$ in the initial equation: + +$$ +a|x|=a+f\left(x^{2}\right)+f(a)=a+f\left(x^{2}\right)-2 a \quad \Rightarrow \quad f\left(x^{2}\right)=a(|x|+1) +$$ + +In particular, $f(1)=2 a$. Choose $(x, y)=\left(z^{2}, 1\right)$ in the initial equation: + +$$ +\begin{aligned} +& z^{2} f(1)+f\left(z^{2}\right)=f\left(z^{2}\right)+f\left(z^{4}\right)+f(f(1)) \\ +\Rightarrow & 2 a z^{2}=z^{2} f(1)=f\left(z^{4}\right)+f(f(1))=a\left(z^{2}+1\right)+f(2 a) \\ +\Rightarrow & a z^{2}=a+f(2 a) +\end{aligned} +$$ + +The right-hand side is constant, while the left-hand side is a quadratic function in $z$, which can only happen if $a=0$. (Choose $z=1$ and then $z=0$.) + +We now conclude that $f\left(x^{2}\right)=0$, and so $f(x)=0$ for all non-negative $x$. In particular, $f(0)=0$. Choosing $x=0$ in the initial equation, we find $f(f(y))=0$ for all $y$. Simplifying the original equation and swapping $x$ and $y$ leads to + +$$ +|x| f(y)+y f(x)=f(x y)=|y| f(x)+x f(y) . +$$ + +Choose $y=-1$ and put $c=\frac{f(-1)}{2}$ : + +$$ +|x| f(-1)-f(x)=f(x)+x f(-1) \Rightarrow f(x)=\frac{f(-1)}{2}(|x|-x)=c(|x|-x) \text {. } +$$ + +One easily verifies that these functions satisfy the functional equation for any parameter $c \geq 0$. + +## Problem 6. + +Two players take alternate turns in the following game. At the outset there are two piles, containing 10,000 and 20,000 tokens, respectively. A move consists of removing any positive number of tokens from a single pile or removing $x>0$ tokens from one pile and $y>0$ tokens from the other, where $x+y$ is divisible by 2015. The player who cannot make a move loses. Which player has a winning strategy? + +Solution. The first player wins. + +He should present his opponent with one of the following positions: + +$$ +(0,0), \quad(1,1), \quad(2,2), \quad \ldots, \quad(2014,2014) . +$$ + +All these positions have different total numbers of tokens modulo 2015. Therefore, if the game starts from two piles of arbitrary sizes, it is possible to obtain one of these positions just by the first move. In our case + +$$ +10,000+20,000 \equiv 1790 \bmod 2015, +$$ + +and the first player can leave to his opponent the position $(895,895)$. + +Now the second type of move can no longer be carried out. If the second player removes $n$ tokens from one pile, the first player may always respond be removing $n$ tokens from the other pile. + +## Problem 7. + +There are 100 members in a ladies' club. Each lady has had tea (in private) with exactly 56 of the other members of the club. The Board, consisting of the 50 most distinguished ladies, have all had tea with one another. Prove that the entire club may be split into two groups in such a way that, within each group, any lady has had tea with any other. + +Solution. Each lady in the Board has had tea with 49 ladies within the Board, and 7 ladies without. Each lady not in the Board has had tea with at most 49 ladies not in the Board, and at least 7 ladies in the Board. Comparing these two observations, we conclude that each lady not in the Board has had tea with exactly 49 ladies not in the Board and exactly 7 ladies in the Board. Hence the club may be split into Board members and non-members. + +## Problem 8. + +With inspiration drawn from the rectilinear network of streets in New York, the Manhattan distance between two points $(a, b)$ and $(c, d)$ in the plane is defined to be + +$$ +|a-c|+|b-d| \text {. } +$$ + +Suppose only two distinct Manhattan distances occur between all pairs of distinct points of some point set. What is the maximal number of points in such a set? + +Solution. Answer: nine. + +Let + +$$ +\left\{\left(x_{1}, y_{1}\right), \ldots,\left(x_{m}, y_{m}\right)\right\}, \quad \text { where } \quad x_{1} \leq \cdots \leq x_{m} +$$ + +be the set, and suppose $m \geq 10$. + +A special case of the Erdős-Szekeres Theorem asserts that a real sequence of length $n^{2}+1$ contains a monotonic subsequence of length $n+1$. (Proof: Given a sequence $a_{1} \ldots, a_{n^{2}+1}$, let $p_{i}$ denote the length of the longest increasing subsequence ending with $a_{i}$, and $q_{i}$ the length of the longest decreasing subsequence ending with $a_{i}$. If $i2$ be an integer. A deck contains $\frac{n(n-1)}{2}$ cards, numbered + +$$ +1,2,3, \ldots, \frac{n(n-1)}{2} +$$ + +Two cards form a magic pair if their numbers are consecutive, or if their numbers are 1 and $\frac{n(n-1)}{2}$. + +For which $n$ is it possible to distribute the cards into $n$ stacks in such a manner that, among the cards in any two stacks, there is exactly one magic pair? + +## Solution 1. Answer: for all odd $n$. + +First assume a stack contains two cards that form a magic pair; say cards number $i$ and $i+1$. Among the cards in this stack and the stack with card number $i+2$ (they might be identical), there are two magic pairs - a contradiction. Hence no stack contains a magic pair. + +Each card forms a magic pair with exactly two other cards. Hence if $n$ is even, each stack must contain at least $\left\lceil\frac{n-1}{2}\right\rceil=\frac{n}{2}$ cards, since there are $n-1$ other stacks. But then we need at least $n \frac{n}{2}>\frac{n(n-1)}{2}$ cards - a contradiction. + +In the odd case we distribute the cards like this: Let $a_{1}, a_{2}, \ldots, a_{n}$ be the $n$ stacks and let $n=2 m+1$. Card number 1 is put into stack $a_{1}$. If card number $k m+i$, for $i=1,2, \ldots, m$, is put into stack $a_{j}$, then card number $k m+i+1$ is put into stack number $a_{j+i}$, where the indices are calculated modulo $n$. + +There are + +$$ +\frac{n(n-1)}{2}=\frac{(2 m+1)(2 m)}{2}=m(2 m+1) +$$ + +cards. If we look at all the card numbers of the form $k m+1$, there are exactly $n=2 m+1$ of these, and we claim that there is exactly one in each stack. Card number 1 is in stack $a_{1}$, and card number $k m+1$ is in stack + +$$ +a_{1+k(1+2+3+\cdots+m)} +$$ + +Since + +$$ +1+2+3+\cdots+m=\frac{m(m+1)}{2} +$$ + +and $\operatorname{gcd}\left(2 m+1, \frac{m(m+1)}{2}\right)=1$, all the indices + +$$ +1+k(1+2+3+\cdots+m), \quad k=0,1,2, \ldots, 2 m +$$ + +are different modulo $n=2 m+1$. In the same way we see that each stack contains exactly one of the $2 m+1$ cards with the numbers $k m+i$ for a given $i=2,3, \ldots, m$. + +Now look at two different stacks $a_{v}$ and $a_{u}$. Then, without loss of generality, we may assume that $u=v+i$ for some $i=1,2, \ldots, m$ (again we consider the index modulo $n=2 m+1$ ). Since there is a card in stack $a_{v}$ with number $k m+i$, the card $k m+i+1$ is in stack $a_{v+i}=a_{u}$. Hence among the cards in any two stacks there is at least one magic pair. Since there is the same number of pairs of stacks as of magic pairs, there must be exactly one magic pair among the cards of any two stacks. + +Solution 2 (found by Saint Petersburg). For the case of $n$ odd, consider the complete graph on the vertices $1, \ldots, n$ with $\frac{n(n-1)}{2}$ edges. The degree of each vertex is $n-1$, which is even, hence an Euler cycle $v_{1} v_{2} \cdots v_{\frac{n(n-1)}{2}} v_{1}$ exists. Place card number $i$ into stack number $v_{i}$. The magic pairs correspond to edges in the cycle. + +## Problem 10. + +A subset $S$ of $\{1,2, \ldots, n\}$ is called balanced if for every $a \in S$ there exists some $b \in S, b \neq a$, such that $\frac{a+b}{2} \in S$ as well. + +(a) Let $k>1$ be an integer and let $n=2^{k}$. Show that every subset $S$ of $\{1,2, \ldots, n\}$ with $|S|>\frac{3 n}{4}$ is balanced. + +(b) Does there exist an $n=2^{k}$, with $k>1$ an integer, for which every subset $S$ of $\{1,2, \ldots, n\}$ with $|S|>\frac{2 n}{3}$ is balanced? + +Solution of part (a). Let $m=n-|S|$, thus $m<\frac{n}{4}$ and (as $n$ is a multiple of 4 ) $m \leq \frac{n}{4}-1$. Let $a \in S$. There are $\frac{n}{2}-1$ elements in $\{1,2, \ldots, n\}$ distinct from $a$ and with the same parity as $a$. At most $m$ of those elements are not in $S$, hence at least $\frac{n}{2}-1-m \geq \frac{n}{4}$ of them are in $S$. For each such $b$, the number $\frac{a+b}{2}$ is an integer, and all of these at least $\frac{n}{4}$ numbers are distinct. But at most $m<\frac{n}{4}$ of them are not in $S$, so at least one is a member of $S$. Hence $S$ is balanced. + +Solution 1 of part (b). For convenience we work with $\{0,1, \ldots, n-1\}$ rather than $\{1,2, \ldots, n\}$; this does not change the problem. We show that one can always find an unbalanced subset containing more than $\frac{2 n}{3}$ elements. + +Let $\operatorname{ord}_{2}(i)$ denote the number of factors 2 occurring in the prime factorisation of $i$. We set + +$$ +T_{j}=\left\{i \in\{1,2, \ldots, n-1\} \mid \operatorname{ord}_{2}(i)=j\right\} +$$ + +Then we choose + +$$ +S=\{0,1,2, \ldots, n-1\} \backslash\left(T_{1} \cup T_{3} \cup \cdots \cup T_{l}\right), \quad \text { where } l= \begin{cases}k-1 & \text { if } k \text { even } \\ k-2 & \text { if } k \text { odd. }\end{cases} +$$ + +Observe that $\left|T_{j}\right|=\frac{n}{2^{j+1}}$, so + +$$ +|S|=n-\left(\frac{n}{4}+\frac{n}{16}+\cdots+\frac{n}{2^{l+1}}\right)=n-n \cdot \frac{\frac{1}{4}-\frac{1}{2^{l+3}}}{1-\frac{1}{4}}>n-\frac{n}{3}=\frac{2 n}{3} . +$$ + +We show that $S$ is not balanced. Take $a=0 \in S$, and consider a $0 \neq b \in S$. If $b$ is odd, then $\frac{0+b}{2}$ is not integral. If $b$ is even, then $b \in T_{2} \cup T_{4} \cup \cdots$, so $\frac{b}{2} \in T_{1} \cup T_{3} \cup \cdots$, hence $\frac{b}{2} \notin S$. Thus $S$ is not balanced. + +Solution 2 of part (b). We define the sets + +$$ +A_{j}=\left\{2^{j-1}+1,2^{j-1}+2, \ldots, 2^{j}\right\} +$$ + +and set + +$$ +S=A_{k} \cup A_{k-2} \cup \cdots \cup A_{l} \cup\{1\}, \quad \text { where } l= \begin{cases}2 & \text { if } k \text { even }, \\ 1 & \text { if } k \text { odd. }\end{cases} +$$ + +Note that $A_{j} \subseteq\{1,2, \ldots, n\}$ whenever $j \leq k$, and that $\left|A_{j}\right|=2^{j-1}$. We find + +$$ +|S|=2^{k-1}+2^{k-3}+\cdots+2^{l-1}+1=\frac{2^{l-1}-2^{k+1}}{1-4}+1=-\frac{2^{l-1}}{3}+\frac{2 n}{3}+1>\frac{2 n}{3} . +$$ + +We show that $S$ is not balanced. Take $a=1 \in S$, and consider a $1 \neq b \in S$. Then $b \in A_{j}$ for some $j$. If $b$ is even, then $\frac{1+b}{2}$ is not integral. If $b$ is odd, then also $1+b \in A_{j}$, so $\frac{1+b}{2} \in A_{j-1}$ and does not lie in $S$. Thus $S$ is not balanced. + +Solution 3 of part (b). Let us introduce the concept of lonely element as an $a \in S$ for which there does not exist a $b \in S$, distinct from $a$, such that $\frac{a+b}{2} \in S$. + +We will construct an unbalanced set $S$ with $|S|>\frac{2 n}{3}$ for all $k$. For $n=4$ we can use $S=\{1,2,4\}$ (all elements are lonely), and for $n=8$ we can use $S=\{1,2,3,5,6,7\}$ (2 and 6 are lonely). + +We now construct an unbalanced set $S \subseteq\{1,2, \ldots, 4 n\}$, given an unbalanced set $T \subseteq\{1,2, \ldots, n\}$ with $|T|>\frac{2 n}{3}$. Take + +$$ +S=\{i \in\{1,2, \ldots, 4 n\} \mid i \equiv 1 \bmod 2\} \cup\{4 t-2 \mid t \in T\} +$$ + +Then + +$$ +|S|=2 n+|T|>2 n+\frac{2 n}{3}=\frac{8 n}{3}=\frac{2 \cdot 4 n}{3} . +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_d4daccd4c48173d57f8eg-08.jpg?height=393&width=393&top_left_y=291&top_left_x=866) + +Figure 1: Problem 11. + +Supposing $a \in T$ is lonely, we will show that $4 a-2 \in S$ is lonely. Indeed, suppose $4 a-2 \neq b \in S$ with + +$$ +\frac{4 a-2+b}{2}=2 a-1+\frac{b}{2} \in S . +$$ + +Then $b$ must be even, so $b=4 t-2$ for some $a \neq t \in T$. But then + +$$ +\frac{4 a-2+4 t-2}{2}=4 \frac{a+t}{2}-2 +$$ + +again an even element. However, as $a$ is lonely we know that $\frac{a+t}{2} \notin T$, and hence $4 \frac{a+t}{2}-2 \notin S$. We conclude that $4 a-2$ is lonely in $S$. + +Thus $S$ is an unbalanced set, and by induction we can find an unbalanced set of size exceeding $\frac{2 n}{3}$ for all $k>1$. + +## Problem 11. + +The diagonals of the parallelogram $A B C D$ intersect at $E$. The bisectors of $\angle D A E$ and $\angle E B C$ intersect at $F$. Assume that $E C F D$ is a parallelogram. Determine the ratio $A B: A D$. + +Solution. Since $E C F D$ is a parallelogram, we have $E D \| C F$ and $\angle C F B=\angle E B F=\angle F B C(B F$ bisects $\angle D B C$ ). So $C F B$ is an isosceles triangle and $B C=C F=E D$ (ECFD is a parallelogram). In a similar manner, $E C=A D$. But since $A B C D$ is a parallelogram, $A D=B C$, whence $E C=E D$. So the diagonals of $A B C D$ are equal, which means that $A B C D$ is in fact a rectangle. Also, the triangles $E D A$ and $E B C$ are equilateral, and so $A B$ is twice the altitude of $E D A$, or $A B=\sqrt{3} \cdot A D$. + +## Problem 12. + +A circle passes through vertex $B$ of the triangle $A B C$, intersects its sides $A B$ and $B C$ at points $K$ and $L$, respectively, and touches the side $A C$ at its midpoint $M$. The point $N$ on the $\operatorname{arc} B L$ (which does not contain $K)$ is such that $\angle L K N=\angle A C B$. Find $\angle B A C$ given that the triangle $C K N$ is equilateral. + +Solution. Answer: $\angle B A C=75^{\circ}$. + +Since $\angle A C B=\angle L K N=\angle L B N$, the lines $A C$ and $B N$ are parallel. Hence $A C N B$ is a trapezium. Moreover, $A C N B$ is an isosceles trapezium, because the segment $A C$ touches the circle $s$ in the midpoint (and so the trapezium is symmetrical with respect to the perpendicular bisectors of $B N$ ). +![](https://cdn.mathpix.com/cropped/2024_04_17_d4daccd4c48173d57f8eg-09.jpg?height=434&width=912&top_left_y=282&top_left_x=602) + +Figure 2: Problem 12. + +Denote by $K^{\prime}$ the intersection point of $s$ and $C N$. Then the line $K K^{\prime}$ is parallel to the bases of the trapezium. Hence $M$ is the midpoint of $\operatorname{arc} K K^{\prime}$ and the line $N M$ is an angle bisector of the equilateral triangle $K N C$. + +Thus we obtain that $M C=M K$. Therefore the length of median $K M$ of the triangle $A K C$ equals $\frac{1}{2} A C$; hence $\angle A K C=90^{\circ}$. We have + +$$ +2 \angle A=\angle K A C+\angle A C N=\angle K A C+\angle A C K+\angle K C N=90^{\circ}+60^{\circ}=150^{\circ} \text {, } +$$ + +and so $\angle A=75^{\circ}$. + +## Problem 13. + +Let $D$ be the footpoint of the altitude from $B$ in the triangle $A B C$, where $A B=1$. The incentre of triangle $B C D$ coincides with the centroid of triangle $A B C$. Find the lengths of $A C$ and $B C$. + +Solution. Answer: $A C=B C=\sqrt{\frac{5}{2}}$. + +The centroid of $A B C$ lies on the median $C C^{\prime}$. It will also, by the assumption, lie on the angle bisector through $C$. Since the median and the angle bisector coincide, $A B C$ is isosceles with $A C=$ $B C=a$. + +Furthermore, the centroid lies on the median $B B^{\prime}$ and the bisector of $\angle D B C$, again by hypothesis. By the Angle Bisector Theorem, + +$$ +\frac{B^{\prime} D}{B D}=\frac{B^{\prime} C}{B C}=\frac{a / 2}{a}=\frac{1}{2} +$$ + +The triangles $A B D \sim A C C^{\prime}$ since they have equal angles, whence + +$$ +\frac{1}{a}=\frac{A B}{A C}=\frac{A D}{A C^{\prime}}=\frac{a / 2-B^{\prime} D}{1 / 2}=a-B D +$$ + +Using the fact that the length of the altitude $C C^{\prime}$ is $\sqrt{a^{2}-\frac{1}{4}}$, this leads to + +$$ +a^{2}-1=a B D=2|A B C|=\sqrt{a^{2}-\frac{1}{4}}, +$$ + +or, equivalently, + +$$ +a^{2}-1=\sqrt{a^{2}-\frac{1}{4}} +$$ + +Clearly, $a>1$, and the only solution is $a=\sqrt{\frac{5}{2}}$. + +## Problem 14. + +In the non-isosceles triangle $A B C$ the altitude from $A$ meets side $B C$ in $D$. Let $M$ be the midpoint of $B C$ and let $N$ be the reflection of $M$ in $D$. The circumcircle of the triangle $A M N$ intersects the side $A B$ in $P \neq A$ and the side $A C$ in $Q \neq A$. Prove that $A N, B Q$ and $C P$ are concurrent. + +Solution 1. Without loss of generality, we assume the order of the points on $B C$ to be $B, M, D, N$, $C$. This implies that $P$ is on the segment $A B$ and $Q$ is on the segment $A C$. + +Since $D$ is the midpoint of $M N$ and $A D$ is perpendicular to $M N$, the line $A D$ is the perpendicular bisector of $M N$, which contains the circumcentre of $\triangle A M N$. As $A$ is on the perpendicular bisector of $M N$, we have $|A M|=|A N|$. We now have $\angle A P M=\angle A Q N$. Therefore + +$$ +\angle C Q N=180^{\circ}-\angle A Q N=180^{\circ}-\angle A P M=\angle B P M \text {. } +$$ + +Furthermore, as $N M P Q$ is cyclic, we have + +$$ +\angle N Q P=180^{\circ}-\angle N M P=\angle B M P \text {. } +$$ + +Hence + +$$ +\angle A Q P=180^{\circ}-\angle C Q N-\angle N Q P=180^{\circ}-\angle B P M-\angle B M P=\angle P B M=\angle A B C . +$$ + +Similarly, + +$$ +\angle A P Q=\angle B C A \text {. } +$$ + +Now we have $\triangle A P Q \sim \triangle A C B$. So + +$$ +\frac{|A P|}{|A Q|}=\frac{|A C|}{|A B|} +$$ + +Furthermore, $\angle M A B=\angle M A P=\angle M N P=\angle B N P$, so $\triangle B M A \sim \triangle B P N$, and hence + +$$ +\frac{|B N|}{|B P|}=\frac{|B A|}{|B M|} +$$ + +We also have $\angle C A M=\angle Q A M=180^{\circ}-\angle Q N M=\angle Q N C$. This implies $\triangle C M A \sim \triangle C Q N$, so + +$$ +\frac{|C Q|}{|C N|}=\frac{|C M|}{|C A|} +$$ + +Putting everything together, we find + +$$ +\frac{|B N|}{|B P|} \cdot \frac{|C Q|}{|C N|} \cdot \frac{|A P|}{|A Q|}=\frac{|B A|}{|B M|} \cdot \frac{|C M|}{|C A|} \cdot \frac{|A C|}{|A B|} +$$ + +As $|B M|=|C M|$, the right-hand side is equal to 1 . This means that + +$$ +\frac{|B N|}{|N C|} \cdot \frac{|C Q|}{|Q A|} \cdot \frac{|A P|}{|P B|}=1 +$$ + +With Ceva's theorem we can conclude that $A N, B Q$ and $C P$ are concurrent. + +Solution 2. We consider the same configuration as in Solution 1. Let $K$ be the second intersection of $A D$ with the circumcircle of $\triangle A M N$. Since $D$ is the midpoint of $M N$ and $A D$ is perpendicular to $M N$, the line $A D$ is the perpendicular bisector of $M N$, which contains the circumcentre of $\triangle A M N$. So $A K$ is a diameter of this circumcircle. Now we have $\angle B P K=90^{\circ}=\angle B D K$, so $B P D K$ is a cyclic quadrilateral. Also, $A, M, N, K, P$ and $Q$ are concyclic. Using both circles, we find + +$$ +180^{\circ}-\angle C Q P=\angle A Q P=\angle A K P=\angle D K P=\angle D B P=\angle C B P . +$$ + +This implies that $B P Q C$ is cyclic as well. Using the power theorem we find $A P \cdot A B=A Q \cdot A C$, with directed lengths. Also, $B N \cdot B M=B P \cdot B A$ and $C N \cdot C M=C Q \cdot C A$. Hence + +$$ +A P \cdot A B \cdot B N \cdot B M \cdot C Q \cdot C A=A Q \cdot A C \cdot B P \cdot B A \cdot C N \cdot C M +$$ + +Changing the signs of all six lengths on the right-hand side and replacing $M C$ by $B M$, we find + +$$ +A P \cdot A B \cdot B N \cdot B M \cdot C Q \cdot C A=Q A \cdot C A \cdot P B \cdot A B \cdot N C \cdot B M +$$ + +Cleaning this up, we have + +$$ +A P \cdot B N \cdot C Q=Q A \cdot P B \cdot N C, +$$ + +implying + +$$ +\frac{B N}{N C} \cdot \frac{C Q}{Q A} \cdot \frac{A P}{P B}=1 +$$ + +With Ceva's theorem we can conclude that $A N, B Q$ and $C P$ are concurrent. + +## Problem 15. + +In triangle $A B C$, the interior and exterior angle bisectors of $\angle B A C$ intersect the line $B C$ in $D$ and $E$, respectively. Let $F$ be the second point of intersection of the line $A D$ with the circumcircle of the triangle $A B C$. Let $O$ be the circumcentre of the triangle $A B C$ and let $D^{\prime}$ be the reflection of $D$ in $O$. Prove that $\angle D^{\prime} F E=90^{\circ}$. + +Solution 1. Note that $A B \neq A C$, since otherwise the exterior angle bisector of $\angle B A C$ would be parallel to $B C$. So assume without loss of generality that $A B90^{\circ}$, the proof is similar (the cyclic quadrilateral will this time be $A M O N$ ). + +Solution 4. We consider the configuration where $C, D, B$ and $E$ are on the line $B C$ in that order. The other configuration can be solved analogously. Let $P$ and $R$ be the feet of the perpendiculars from $D^{\prime}$ and $O$ to the line $A D$, respectively, and let $Q$ and $S$ be the feet of the perpendiculars from $D^{\prime}$ and $O$ to the line $C D$, respectively. Since $D^{\prime}$ is the reflection of $D$ with respect to $O$, we have $P R=R D$. Since we also have $O A=O F$ and therefore $R A=R F$, we obtain $A D=P F$. Similarly, $C D=B Q$. By Pythagoras's theorem, + +$$ +D^{\prime} F^{2}=D^{\prime} P^{2}+P F^{2}=4 O R^{2}+A D^{2}=4 O A^{2}-4 A R^{2}+A D^{2}=4 O A^{2}-A F^{2}+A D^{2} +$$ + +and + +$$ +D^{\prime} E^{2}=D^{\prime} Q^{2}+E Q^{2}=4 O S^{2}+E Q^{2}=4 O B^{2}-4 B S^{2}+E Q^{2}=4 O B^{2}-B C^{2}+(E B+C D)^{2} . +$$ + +And since $\angle E A F=90^{\circ}$ we have + +$$ +E F^{2}=A E^{2}+A F^{2} . +$$ + +As $O A=O B$, we conclude that + +$$ +\begin{array}{r} +D^{\prime} F^{2}+E F^{2}-D^{\prime} E^{2}=\left(4 O A^{2}-A F^{2}+A D^{2}\right)+\left(A E^{2}+A F^{2}\right)-\left(4 O B^{2}-B C^{2}+(E B+C D)^{2}\right) \\ +=A E^{2}+A D^{2}+B C^{2}-(E B+C D)^{2} +\end{array} +$$ + +By Pythagoras's theorem again, we obtain $A E^{2}+A D^{2}=E D^{2}$, and hence + +$$ +D^{\prime} F^{2}+E F^{2}-D^{\prime} E^{2}=E D^{2}+B C^{2}-(E B+C D)^{2} . +$$ + +We have + +$$ +\begin{aligned} +E D^{2}+B C^{2} & =(E B+B D)^{2}+(B D+C D)^{2} \\ +& =E B^{2}+B D^{2}+2 \cdot E B \cdot B D+B D^{2}+C D^{2}+2 \cdot B D \cdot C D \\ +& =E B^{2}+C D^{2}+2 \cdot B D \cdot(E B+B D+C D) \\ +& =E B^{2}+C D^{2}+2 \cdot B D \cdot E C . +\end{aligned} +$$ + +By the internal and external bisector theorems, we have + +$$ +\frac{B D}{C D}=\frac{B A}{C A}=\frac{B E}{C E}, +$$ + +hence + +$$ +E D^{2}+B C^{2}=E B^{2}+C D^{2}+2 \cdot C D \cdot B E=(E B+C D)^{2} . +$$ + +So + +$$ +D^{\prime} F^{2}+E F^{2}-D^{\prime} E^{2}=0, +$$ + +which implies that $\angle D^{\prime} F E=90^{\circ}$. + +## Problem 16. + +Denote by $P(n)$ the greatest prime divisor of $n$. Find all integers $n \geq 2$ for which + +$$ +P(n)+\lfloor\sqrt{n}\rfloor=P(n+1)+\lfloor\sqrt{n+1}\rfloor . +$$ + +(Note: $\lfloor x\rfloor$ denotes the greatest integer less than or equal to $x$.) + +Solution. Answer: The equality holds only for $n=3$. + +It is easy to see that $P(n) \neq P(n+1)$. Therefore we need also that $\lfloor\sqrt{n}\rfloor \neq\lfloor\sqrt{n+1}\rfloor$ in order for equality to hold. This is only possible if $n+1$ is a perfect square. In this case, + +$$ +\lfloor\sqrt{n}\rfloor+1=\lfloor\sqrt{n+1}\rfloor +$$ + +and hence $P(n)=P(n+1)+1$. As both $P(n)$ and $P(n+1)$ are primes, it must be that $P(n)=3$ and $P(n+1)=2$. + +It follows that $n=3^{a}$ and $n+1=2^{b}$, and we are required to solve the equation $3^{a}=2^{b}-1$. Calculating modulo 3 , we find that $b$ is even. Put $b=2 c$ : + +$$ +3^{a}=\left(2^{c}-1\right)\left(2^{c}+1\right) . +$$ + +As both factors cannot be divisible by 3 (their difference is 2 ), $2^{c}-1=1$. From this we get $c=1$, which leads to $n=3$. + +## Problem 17. + +Find all positive integers $n$ for which $n^{n-1}-1$ is divisible by $2^{2015}$, but not by $2^{2016}$. + +Solution. Since $n$ must be odd, write $n=2^{d} u+1$, where $u, d \in \mathbf{N}$ and $u$ is odd. Now + +$$ +n^{n-1}-1=\left(n^{2^{d}}-1\right)(\underbrace{n^{2^{d} \cdot(u-1)}+\cdots+n^{2^{d} \cdot 1}+1}_{u}), +$$ + +and hence $2^{2015} \|\left(n^{n-1}-1\right)$ iff $2^{2015} \|\left(n^{2^{d}}-1\right)$. (The notation $p^{k} \| m$ denotes that $p^{k} \mid m$ and $p^{k+1} \nmid m$.) + +We factorise once more: + +$$ +\begin{aligned} +n^{2^{d}}-1 & =(n-1)(n+1) \underbrace{\left(n^{2}+1\right) \cdots\left(n^{2^{d-1}}+1\right)}_{d-1} \\ +& =2^{d} u \cdot 2\left(2^{d-1} u+1\right) \underbrace{\left(n^{2}+1\right) \cdots\left(n^{2^{d-1}}+1\right)}_{d-1} . +\end{aligned} +$$ + +If $k \geq 1$, then $2 \| n^{2^{k}}+1$, and so from the above + +$$ +2^{2 d} \| 2^{d} u \cdot 2 \cdot \underbrace{\left(n^{2}+1\right) \cdots\left(n^{2^{d-1}}+1\right)}_{d-1} \quad \text { and } \quad 2^{2015-2 d} \|\left(2^{d-1} u+1\right) +$$ + +It is easy to see that this is the case exactly when $d=1$ and $u=2^{2013} v-1$, where $v$ is odd. + +Hence the required numbers are those of the form + +$$ +n=2\left(2^{2013} v-1\right)+1=2^{2014} v-1 +$$ + +for $v$ a positive odd number. + +## Problem 18. + +Let $f(x)=x^{n}+a_{n-1} x^{n-1}+\cdots+a_{0}$ be a polynomial of degree $n \geq 1$ with $n$ (not necessarily distinct) integer roots. Assume that there exist distinct primes $p_{0}, p_{1}, \ldots, p_{n-1}$ such that $a_{i}>1$ is a power of $p_{i}$, for all $i=0, \ldots, n-1$. Find all possible values of $n$. + +Solution. Obviously all the roots have to be negative by the positivity of the coefficients. If at least two of the roots are unequal to -1 , then both of them have to be powers of $p_{0}$. Now Vieta's formulæ yield $p_{0} \mid a_{1}$, which is a contradiction. Thus we can factor $f$ as + +$$ +f(x)=\left(x+a_{0}\right)(x+1)^{n-1} +$$ + +Expanding yields + +$$ +a_{2}=\left(\begin{array}{c} +n-1 \\ +1 +\end{array}\right)+a_{0}\left(\begin{array}{c} +n-1 \\ +2 +\end{array}\right) \quad \text { and } \quad a_{n-2}=a_{0}\left(\begin{array}{l} +n-1 \\ +n-2 +\end{array}\right)+\left(\begin{array}{l} +n-1 \\ +n-3 +\end{array}\right) +$$ + +If $n \geq 5$, we see that $2 \neq n-2$ and so the two coefficients above are relatively prime, being powers of two distinct primes. However, depending on the parity of $n$, we have that $a_{2}$ and $a_{n-2}$ are both divisible by $n-1$ or $\frac{n-1}{2}$, which is a contradiction. + +For $n=1,2,3,4$, the following polynomials meet the requirements: + +$$ +\begin{aligned} +& f_{1}(x)=x+2 \\ +& f_{2}(x)=(x+2)(x+1)=x^{2}+3 x+2 \\ +& f_{3}(x)=(x+3)(x+1)^{2}=x^{3}+5 x^{2}+7 x+3 \\ +& f_{4}(x)=(x+2)(x+1)^{3}=x^{4}+5 x^{3}+9 x^{2}+7 x+2 +\end{aligned} +$$ + +## Problem 19. + +Three pairwise distinct positive integers $a, b, c$, with $\operatorname{gcd}(a, b, c)=1$, satisfy + +$$ +a\left|(b-c)^{2}, \quad b\right|(c-a)^{2} \quad \text { and } \quad c \mid(a-b)^{2} \text {. } +$$ + +Prove that there does not exist a non-degenerate triangle with side lengths $a, b, c$. + +Solution. First observe that these numbers are pairwise coprime. Indeed, if, say, $a$ and $b$ are divisible by a prime $p$, then $p$ divides $b$, which divides $(a-c)^{2}$; hence $p$ divides $a-c$, and therefore $p$ divides $c$. Thus, $p$ is a common divisor of these three numbers, a contradiction. + +Now consider the number + +$$ +M=2 a b+2 b c+2 a c-a^{2}-b^{2}-c^{2} . +$$ + +It is clear from the problem condition that $M$ is divisible by $a, b, c$, and therefore $M$ is divisible by $a b c$. + +Assume that a triangle with sides $a, b, c$ exists. Then $a0$, and hence $M \geq a b c$. + +On the other hand, + +$$ +a^{2}+b^{2}+c^{2}>a b+b c+a c +$$ + +and therefore $Mb>c$, we must have $M<3 a b$. Taking into account the inequality $M \geq a b c$, we conclude that $c=1$ or $c=2$ are the only possibilities. + +For $c=1$ we have $b3$ then $p^{2}-p-6$ is positive and increases with $p$. So the equation has at most one solution. It is easy to see that $p=7$ is the one and $(7,3)$ is a solution to the given equation. + +2. Prove or disprove the following hypotheses. + +a) For all $k \geq 2$, each sequence of $k$ consecutive positive integers contains a number that is not divisible by any prime number less than $k$. + +b) For all $k \geq 2$, each sequence of $k$ consecutive positive integers contains a number that is relatively prime to all other members of the sequence. + +Solution. We give a counterexample to both claims. So neither of them is true. + +For a), a counterexample is the sequence $(2,3,4,5,6,7,8,9)$ of eight consecutive integers all of which are divisible by some prime less than 8 . + +To construct a counterexample to b), we notice that by the Chinese Remainder Theorem, there exists an integer $x$ such that $x \equiv 0 \bmod 2, x \equiv 0 \bmod 5, x \equiv 0 \bmod 11, x \equiv 2 \bmod 3$, $x \equiv 5 \bmod 7$ and $x \equiv 10 \bmod 13$. The last three of these congruences mean that $x+16$ is a multiple of 3,7 , and 13 . Now consider the sequence $(x, x+1, \ldots, x+16)$ of 17 consequtive integers. Of these all numbers $x+2 k, 0 \leq k \leq 8$, are even and so have a common factor with some other. Of the remaining, $x+1, x+7$ and $x+13$ are divisible by $3, x+3$ is a multiple of 13 as is $x+16, x+5$ is divisible by 5 as $x, x+9$ is a multiple of 7 as $x+2$, $x+11$ a multiple of 11 as is $x$, and finally $x+15$ is a multiple of 5 as is $x$. + +Remark. The counterexample given to either hypothesis is the shortest possible. The only counterexamples of length 8 to the first hypothesis are those where numbers give remainders $2,3, \ldots, 9 ; 3,4, \ldots, 10 ;-2,-3, \ldots,-9 ;$ or $-3,-4, \ldots,-10$ modulo 210 . The only counterexamples of length 17 to the second hypothesis are those where the numbers give remainders $2184,2185, \ldots, 2200$ or $-2184,-2185, \ldots,-2200$ modulo 30030. + +3. For which integers $n=1, \ldots, 6$ does the equation + +$$ +a^{n}+b^{n}=c^{n}+n +$$ + +have a solution in integers? + +Solution. A solution clearly exists for $n=1,2,3$ : + +$$ +1^{1}+0^{1}=0^{1}+1, \quad 1^{2}+1^{2}=0^{2}+2, \quad 1^{3}+1^{3}=(-1)^{3}+3 . +$$ + +We show that for $n=4,5,6$ there is no solution. + +For $n=4$, the equation $a^{4}+b^{4}=c^{4}+4$ may be considered modulo 8 . Since each fourth power $x^{4} \equiv 0,1 \bmod 8$, the expression $a^{4}+b^{4}-c^{4}$ can never be congruent to 4 . + +For $n=5$, consider the equation $a^{5}+b^{5}=c^{5}+5$ modulo 11 . As $x^{5} \equiv 0$ or $\equiv \pm 1 \bmod 11$ (This can be seen by Fermat's Little Theorem or by direct computation), $a^{5}+b^{5}-c^{5}$ cannot be congruent to 5 . + +The case $n=6$ is similarly dismissed by considering the equation modulo 13 . + +4. Let $n$ be a positive integer and let $a, b, c, d$ be integers such that $n \mid a+b+c+d$ and $n \mid a^{2}+b^{2}+c^{2}+d^{2}$. Show that + +$$ +n \mid a^{4}+b^{4}+c^{4}+d^{4}+4 a b c d . +$$ + +Solution 1. Consider the polynomial + +$$ +w(x)=(x-a)(x-b)(x-c)(x-d)=x^{4}+A x^{3}+B x^{2}+C x+D . +$$ + +It is clear that $w(a)=w(b)=w(c)=w(d)=0$. By adding these values we get + +$$ +\begin{gathered} +w(a)+w(b)+w(c)+w(d)=a^{4}+b^{4}+c^{4}+d^{4}+A\left(a^{3}+b^{3}+c^{3}+d^{3}\right)+ \\ ++B\left(a^{2}+b^{2}+c^{2}+d^{2}\right)+C(a+b+c+d)+4 D=0 . +\end{gathered} +$$ + +Hence + +$$ +\begin{gathered} +a^{4}+b^{4}+c^{4}+d^{4}+4 D \\ +=-A\left(a^{3}+b^{3}+c^{3}+d^{3}\right)-B\left(a^{2}+b^{2}+c^{2}+d^{2}\right)-C(a+b+c+d) . +\end{gathered} +$$ + +Using Vieta's formulas, we can see that $D=a b c d$ and $-A=a+b+c+d$. Therefore the right hand side of the equation above is divisible by $n$, and so is the left hand side. + +Solution 2. Since the numbers $(a+b+c+d)\left(a^{3}+b^{3}+c^{3}+d^{3}\right),\left(a^{2}+b^{2}+c^{2}+d^{2}\right)(a b+$ $a c+a d+b c+b d+c d)$ and $(a+b+c+d)(a b c+a c d+a b d+b c d)$ are divisible by $n$, then so is the number + +$$ +\begin{gathered} +(a+b+c+d)\left(a^{3}+b^{3}+c^{3}+d^{3}\right)-\left(a^{2}+b^{2}+c^{2}+d^{2}\right)(a b+a c+a d+b c+b d+c d)+ \\ ++(a+b+c+d)(a b c+a c d+a b d+b c d)=a^{4}+b^{4}+c^{4}+d^{4}+4 a b c d . +\end{gathered} +$$ + +(Heiki Niglas, Estonia) + +5. Let $p>3$ be a prime such that $p \equiv 3(\bmod 4)$. Given a positive integer $a_{0}$, define the sequence $a_{0}, a_{1}, \ldots$ of integers by $a_{n}=a_{n-1}^{2^{n}}$ for all $n=1,2, \ldots$ Prove that it is possible to choose $a_{0}$ such that the subsequence $a_{N}, a_{N+1}, a_{N+2}, \ldots$ is not constant modulo $p$ for any positive integer $N$. + +Solution. Let $p$ be a prime with residue 3 modulo 4 and $p>3$. Then $p-1=u \cdot 2$ where $u>1$ is odd. Choose $a_{0}=2$. The order of 2 modulo $p$ (that is, the smallest positive integer $t$ such that $\left.2^{t} \equiv 1 \bmod p\right)$ is a divisor of $\phi(p)=p-1=u \cdot 2$, but not a divisor of 2 since $1<2^{2}1$ be the order of $a_{N}$ modulo $p$. Then $a_{N} \equiv a_{n} \equiv a_{n+1}=a_{n}^{2^{n+1}} \equiv a_{N}^{2^{n+1}} \quad(\bmod p)$, and hence $a_{N}^{2^{n+1}-1} \equiv 1 \quad(\bmod p)$ for all $n \geq N$. Now $d$ divides $2^{n+1}-1$ for all $n \geq N$, but this is a contradiction since + +$\operatorname{gcd}\left(2^{n+1}-1,2^{n+2}-1\right)=\operatorname{gcd}\left(2^{n+1}-1,2^{n+2}-1-2\left(2^{n+1}-1\right)\right)=\operatorname{gcd}\left(2^{n+1}-1,1\right)=1$. + +Hence there does not exist such an $N$. + +6. The set $\{1,2, \ldots, 10\}$ is partitioned into three subsets $A, B$ and $C$. For each subset the sum of its elements, the product of its elements and the sum of the digits of all its elements are calculated. Is it possible that $A$ alone has the largest sum of elements, $B$ alone has the largest product of elements, and $C$ alone has the largest sum of digits? + +Solution. It is indeed possible. Choose $A=\{1,9,10\}, B=\{3,7,8\}, C=\{2,4,5,6\}$. Then the sum of elements in $A, B$ and $C$, respectively, is 20,18 and 17 , the sum of digits 11, 18 and 17, while the product of elements is 90,168 and 240. + +7. Find all positive integers $n$ for which + +$$ +3 x^{n}+n(x+2)-3 \geq n x^{2} +$$ + +holds for all real numbers $x$. + +Solution. We show that the inequality holds for even $n$ and only for them. + +If $n$ is odd, the for $x=-1$ the left hand side of the inequality equals $n-6$ while the right hand side is $n$. So the inequality is not true for $x=-1$ for any odd $n$. So now assume that $n$ is even. Since $|x| \geq x$, it is enough to prove $3 x^{n}+2 n-3 \geq n x^{2}+n|x|$ for all $x$ or equivalently that $3 x^{n}+(2 n-3) \geq n x^{2}+n x$ for $x \geq 0$. Now the AGM-inequality gives + +$$ +2 x^{n}+(n-2)=x^{n}+x^{n}+1+\cdots+1 \geq n\left(x^{n} \cdot x^{n} \cdot 1^{n-2}\right)^{\frac{1}{n}}=n x^{2} \text {, } +$$ + +and similarly + +$$ +x^{n}+(n-1) \geq n\left(x^{n} \cdot 1^{n-1}\right)^{\frac{1}{n}}=n x \text {. } +$$ + +Adding (1) and (2) yields the claim. + +8. Find all real numbers a for which there exists a non-constant function $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfying the following two equations for all $x \in \mathbb{R}$ : +i) $\quad f(a x)=a^{2} f(x)$ and + +ii) $f(f(x))=a f(x)$. + +Solution. The conditions of the problem give two representations for $f(f(f(x)))$ : + +$$ +f(f(f(x)))=a f(f(x))=a^{2} f(x) +$$ + +and + +$$ +f(f(f(x)))=f(a f(x))=a^{2} f(f(x))=a^{3} f(x) . +$$ + +So $a^{2} f(x)=a^{3} f(x)$ for all $x$, and if there is an $x$ such that $f(x) \neq 0$, the $a=0$ or $a=1$. Otherwise $f$ is the constant function $f(x)=0$ for all $x$. If $a=1$, the function $f(x)=x$ satisfies the conditions. For $a=0$, one possible solution is the function $f$, + +$$ +f(x)=\left\{\begin{array}{ll} +1 & \text { for } x<0 \\ +0 & \text { for } x \geq 0 +\end{array} .\right. +$$ + +9. Find all quadruples $(a, b, c, d)$ of real numbers that simultaneously satisfy the following equations: + +$$ +\left\{\begin{aligned} +a^{3}+c^{3} & =2 \\ +a^{2} b+c^{2} d & =0 \\ +b^{3}+d^{3} & =1 \\ +a b^{2}+c d^{2} & =-6 +\end{aligned}\right. +$$ + +Solution 1. Consider the polynomial $P(x)=(a x+b)^{3}+(c x+d)^{3}=\left(a^{3}+b^{3}\right) x^{3}+3\left(a^{2} b+\right.$ $\left.c^{2} d\right) x^{2}+3\left(a b^{2}+c d^{2}\right) x+b^{3}+d^{3}$. By the conditions of the problem, $P(x)=2 x^{3}-18 x+1$. Clearly $P(0)>0, P(1)<0$ and $P(3)>0$. Thus $P$ has three distinct zeroes. But $P(x)=0$ implies $a x+b=-(c x+d)$ or $(a+c) x+b+d=0$. This equation has only one solution, unless $a=-c$ and $b=-d$. But since the conditions of the problem do not allow this, we infer that the system of equations in the problem has no solution. + +Solution 2. If $0 \in\{a, b\}$, then one easily gets that $0 \in\{c, d\}$, which contradicts the equation $a b^{2}+c d^{2}=-6$. Similarly, if $0 \in\{c, d\}$, then $0 \in\{a, b\}$ and this contradicts $a b^{2}+c d^{2}=-6$ again. Hence $a, b, c, d \neq 0$. + +Let the four equations in the problem be (i), (ii), (iii) and (iv), respectively. Then $(i)+3(i i)+3(i i i)+(i v)$ will give + +$$ +(a+b)^{3}+(c+d)^{3}=-15 . +$$ + +According to the equation (ii), $b$ and $d$ have different sign, and similarly (iv) yields that $a$ and $c$ have different sign. + +First, consider the case $a>0, b>0$. Then $c<0$ and $d<0$. By $(i)$, we have $a>-c$ (i.e. $|a|>|c|)$ and (iii) gives $b>-d$. Hence $a+b>-(c+d)$ and so $(a+b)^{3}>-(c+d)^{3}$, thus $(a+b)^{3}+(c+d)^{3}>0$ which contradicts (1). + +Next, consider the case $a>0, b<0$. Then $c<0$ and $d>0$. By $(i)$, we have $a>-c$ and by (iii), $d>-b$ (i.e. $b>-d$ ). Thus $a+b>-(c+d)$ and hence $(a+b)^{3}+(c+d)^{3}>0$ which contradicts (1). + +The case $a<0, b<0$ leads to $c>0, d>0$. By (i), we have $c>-a$ and by (iii) $d>-b$. So $c+d>-(a+b)$ and hence $(c+d)^{3}+(a+b)^{3}>0$ which contradicts (1) again. + +Finally, consider the case $a<0, b>0$. Then $c>0$ and $d<0$. By (i), $c>-a$ and by (iii) $b>-d$ which gives $c+d>-(a+b)$ and hence $(c+d)^{3}+(a+b)^{3}>0$ contradicting (1). + +Hence there is no real solution to this system of equations. (Heiki Niglas) + +Solution 3. As in Solution 2, we conclude that $a, b, c, d \neq 0$. The equation $a^{2} b+c^{2} d=0$ yields $a= \pm \sqrt{\frac{-d}{b}} c$. On the other hand, we have $a^{3}+c^{3}=2$ and $a b^{2}+c d^{2}=-6<0$ which implies that $\min \{a, c\}<0<\max \{a, c\}$ and thus $a=-\sqrt{\frac{-d}{b}} c$. + +Let $x=-\sqrt{\frac{-d}{b}}$. Then $a=x c$ and so + +$$ +2=a^{3}+c^{3}=c^{3}\left(1+x^{3}\right) . +$$ + +Also $-6=a b^{2}+c d^{2}=c x b^{2}+c d^{2}$, which, using (2), gives + +$$ +\left(x b^{2}+d^{2}\right)^{3}=\frac{-6^{3}}{c^{3}}=-108\left(x^{3}+1\right) \text {. } +$$ + +Thus + +$$ +-108\left(1+x^{3}\right)=\left(d^{2}\left(x \frac{b^{2}}{d^{2}}+1\right)\right)^{3}=d^{6}\left(\frac{1}{x^{3}}+1\right)^{3}=d^{6}\left(\frac{1+x^{3}}{x^{3}}\right)^{3} . +$$ + +If $x^{3}+1=0$, then $x=-1$ and hence $a=-c$, which contradicts $a^{3}+c^{3}=2$. So $x^{3}+1 \neq 0$ and (3) gives + +$$ +d^{6}\left(1+x^{3}\right)^{2}=-108 x^{9} . +$$ + +Now note that + +$$ +x^{3}=\left(-\sqrt{\frac{-d}{b}}\right)^{3}=-\sqrt{\frac{-d^{3}}{b^{3}}}=-\sqrt{\frac{b^{3}-1}{b^{3}}} +$$ + +and hence (4) yields that + +$$ +\left(b^{3}-1\right)^{2}\left(1-\sqrt{\frac{b^{3}-1}{b^{3}}}\right)^{2}=108\left(\sqrt{\frac{b^{3}-1}{b^{3}}}\right)^{3} . +$$ + +Let $y=\sqrt{\frac{b^{3}-1}{b^{3}}}$. Then $b^{3}=\frac{1}{1-y^{2}}$ and so (5) implies + +$$ +\left(\frac{1}{1-y^{2}}-1\right)^{2}\left(1-y^{2}\right)^{2}=108 y^{3} +$$ + +i.e. + +$$ +\frac{y^{4}}{\left(1-y^{2}\right)^{2}}(1-y)^{2}=108 y^{3} +$$ + +If $y=0$, then $b=1$ and so $d=0$, a contradiction. So + +$$ +y(1-y)^{2}=108(1-y)^{2}(1+y)^{2} +$$ + +Clearly $y \neq 1$ and hence $y=108+108 y^{2}+216 y$, or $108 y^{2}+215 y+108=0$. The last equation has no real solutions and thus the initial system of equations has no real solutions. + +Remark 1. Note that this solution worked because RHS of $a^{2} b+c^{2} d=0$ is zero. If instead it was, e.g., $a^{2} b+c^{2} d=0.1$ then this solution would not work out, but the first solution still would. + +Remark 2. The advantage of this solution is that solving the last equation $108 y^{2}+$ $215 y+108=0$ one can find complex solutions of this system of equations. (Heiki Niglas) + +10. Let $a_{0,1}, a_{0,2}, \ldots, a_{0,2016}$ be positive real numbers. For $n \geq 0$ and $1 \leq k<2016$ set + +$$ +a_{n+1, k}=a_{n, k}+\frac{1}{2 a_{n, k+1}} \quad \text { and } \quad a_{n+1,2016}=a_{n, 2016}+\frac{1}{2 a_{n, 1}} . +$$ + +Show that $\max _{1 \leq k \leq 2016} a_{2016, k}>44$. + +Solution. We prove + +$$ +m_{n}^{2} \geq n +$$ + +for all $n$. The claim then follows from $44^{2}=1936<2016$. To prove (1), first notice that the inequality certainly holds for $n=0$. Assume (1) is true for $n$. There is a $k$ such that $a_{n, k}=m_{n}$. Also $a_{n, k+1} \leq m_{n}$ (or if $k=2016, a_{n, 1} \leq m_{n}$ ). Now (assuming $k<2016$ ) + +$$ +a_{n+1, k}^{2}=\left(m_{n}+\frac{1}{2 a_{n, k+1}}\right)^{2}=m_{n}^{2}+\frac{m_{n}}{a_{n, k+1}}+\frac{1}{4 a_{n, k+1}^{2}}>n+1 . +$$ + +Since $m_{n+1}^{2} \geq a_{n+1, k}^{2}$, we are done. + +11. The set $A$ consists of 2016 positive integers. All prime divisors of these numbers are smaller than 30. Prove that there are four distinct numbers $a, b, c$ and $d$ in $A$ such that abcd is a perfect square. + +Solution. There are ten prime numbers $\leq 29$. Let us denote them as $p_{1}, p_{2}, \ldots, p_{10}$. To each number $n$ in $A$ we can assign a 10 -element sequence $\left(n_{1}, n_{2}, \ldots, n_{10}\right)$ such that $n_{i}=1$ $p_{i}$ has an odd exponent in the prime factorization of $n$, and $n_{i}=0$ otherwise. Two numbers to which identical sequences are assigned, multiply to a perfect square. There are only 1024 different 10-element $\{0,1\}$-sequences so there exist some two numbers $a$ and $b$ with identical sequencies, and after removing these from $A$ certainly two other numbers $c$ and $d$ with identical sequencies remain. These $a, b, c$ and $d$ satisfy the condition of the problem. + +12. Does there exist a hexagon (not necessarily convex) with side lengths 1, 2, 3, 4, 5, 6 (not necessarily in this order) that can be tiled with a) 31 b) 32 equilateral triangles with side length 1 ? + +Solution. The adjoining figure shows that question a) can be answered positively. + +For a negative answer to b), we show that the number of triangles has to be odd. Assume there are $x$ triangles in the triangulation. They hav altogether $3 x$ sides. Of these, $1+2+3+4+6=21$ are on the perimeter of the hexagon. The remaining $3 x-21$ sides are in the interior, and they touch each other pairwise. So $3 x-21$ has to be even, which is only possible, if $x$ is odd. + +13. Let $n$ numbers all equal to 1 be written on a blackboard. A move consists of replacing two numbers on + +![](https://cdn.mathpix.com/cropped/2024_04_17_8b636f8a6b85b9bd036bg-07.jpg?height=591&width=432&top_left_y=515&top_left_x=1326) +the board with two copies of their sum. It happens that after $h$ moves all $n$ numbers on the blackboard are equal to $m$. Prove that $h \leq \frac{1}{2} n \log _{2} m$. + +Solution. Let the product of the numbers after the $k$-th move be $a_{k}$. Suppose the numbers involved in a move were $a$ and $b$. By the arithmetic-geometric mean inequality, $(a+b)(a+b) \geq 4 a b$. Therefore, regardless of the choice of the numbers in the move, $a_{k} \geq 4 a_{k-1}$, and since $a_{0}=1, a_{h}=m^{n}$, we have $m^{n} \geq 4^{h}=2^{2 h}$ and $h \leq \frac{1}{2} n \log _{2} m$. + +14. A cube consists of $4^{3}$ unit cubes each containing an integer. At each move, you choose a unit cube and increase by 1 all the integers in the neighbouring cubes having a face in common with the chosen cube. Is it possible to reach a position where all the $4^{3}$ integers are divisible by 3 , no matter what the starting position is? + +Solution. Two unit cubes with a common face are called neighbours. Colour the cubes either black or white in such a way that two neighbours always have different colours. Notice that the integers in the white cubes only change when a black cube is chosen. Now recolour the white cubes that have exactly 4 neighbours and make them green. If we look at a random black cube it has either 0,3 or 6 white neighbours. Hence if we look at the sum of the integers in the white cubes, it changes by 0,3 or 6 in each turn. From this it follows that if this sum is not divisible by 3 at the beginning, it will never be, and none of the integers in the white cubes is divisible by 3 at any state. + +15. The Baltic Sea has 2016 harbours. There are two-way ferry connections between some of them. It is impossible to make a sequence of direct voyages $C_{1}-C_{2}-\cdots-C_{1062}$ where all the harbours $C_{1}, \ldots, C_{1062}$ are distinct. Prove that there exist two disjoint sets $A$ and $B$ of 477 harbours each, such that there is no harbour in $A$ with a direct ferry connection to a harbour in $B$. + +Solution. Let $V$ be the set of all harbours. Take any harbour $C_{1}$ and set $U=V \backslash\left\{C_{1}\right\}$, $W=\emptyset$. If there is a ferry connection from $C$ to another harbour, say $C_{2}$ in $V$, consider the route $C_{1} C_{2}$ and remove $C_{2}$ from $U$. Extend it as long as possible. Since there is no route of length 1061, So we have a route from $C_{1}$ to some $C_{k}, k \leq 1061$, and no connection from $C_{k}$ to a harbor not already included in the route exists. There are at least $2016-1062$ harbours in $U$. Now we move $C_{k}$ from $U$ to $W$ and try to extend the route from $C_{k-1}$ onwards. The extension again terminates at some harbor, which we then move from $U$ to $W$. If no connection from $C_{1}$ to any harbour exists, we move $C_{1}$ to $W$ and start the process again from some other harbour. This algorithm produces two sets of harbours, $W$ and $U$, between which there are no direct connections. During the process, the number of harbours in $U$ always decreases by 1 and the number of harbours in $W$ increases by 1 . So at some point the number of harbours is the same, and it then is at least $\frac{1}{2}(2016-1062)=477$. By removing, if necessary, some harbours fron $U$ and $W$ we get sets of exactly 477 harbours. + +16. In triangle $A B C$, the points $D$ and $E$ are the intersections of the angular bisectors from $C$ and $B$ with the sides $A B$ and $A C$, respectively. Points $F$ and $G$ on the extensions of $A B$ and $A C$ beyond $B$ and $C$, respectively, satisfy $B F=C G=B C$. Prove that $F G \| D E$. + +Solution. Since $B E$ and $C D$ are angle bisectors, + +$$ +\frac{A D}{A B}=\frac{A C}{A C+B C}, \quad \frac{A E}{A C}=\frac{A B}{A B+B C} . +$$ + +So + +![](https://cdn.mathpix.com/cropped/2024_04_17_8b636f8a6b85b9bd036bg-08.jpg?height=262&width=477&top_left_y=1328&top_left_x=1281) + +$$ +\frac{A D}{A F}=\frac{A D}{A B} \cdot \frac{A B}{A F}=\frac{A C \cdot A B}{(A C+B C)(A B+B C)} +$$ + +and + +$$ +\frac{A E}{A G}=\frac{A E}{A C} \cdot \frac{A C}{A G}=\frac{A B \cdot A C}{(A B+A C)(A C+B C)} +$$ + +Since $\frac{A D}{A F}=\frac{A E}{A G}, D E$ and $F G$ are parallel. + +17. Let $A B C D$ be a convex quadrilateral with $A B=A D$. Let $T$ be a point on the diagonal $A C$ such that $\angle A B T+\angle A D T=\angle B C D$. Prove that $A T+A C \geq A B+A D$. + +Solution. On the segment $A C$, consider the unique point $T^{\prime}$ such that $A T^{\prime} \cdot A C=A B^{2}$. The triangles $A B C$ and $A T^{\prime} B$ are similar: they have the angle at $A$ common, and $A T^{\prime}: A B=A B: A C$. So $\angle A B T^{\prime}=\angle A C B$. Analogously, $\angle A D T^{\prime}=\angle A C D$. So $\angle A B T^{\prime}+\angle A D T^{\prime}=\angle B C D$. But $A B T^{\prime}+A D T^{\prime}$ increases strictly monotonously, as $T^{\prime}$ moves from $A$ towards $C$ on $A C$. The assumption on $T$ implies that $T^{\prime}=T$. So, by the arithmetic-geometric mean inequality, + +![](https://cdn.mathpix.com/cropped/2024_04_17_8b636f8a6b85b9bd036bg-09.jpg?height=449&width=485&top_left_y=338&top_left_x=1271) + +$$ +A B+A D=2 A B=2 \sqrt{A T \cdot A C} \leq A T+A C . +$$ + +18. Let $A B C D$ be a parallelogram such that $\angle B A D=60^{\circ}$. Let $K$ and $L$ be the midpoints of $B C$ and $C D$, respectively. Assuming that $A B K L$ is a cyclic quadrilateral, find $\angle A B D$. + +Solution. Let $\angle B A L=\alpha$. Since $A B K L$ is cyclic, $\angle K K C=\alpha$. Because $L K \| D B$ and $A B \| D C$, we further have $\angle D B C=\alpha$ and $\angle A D B=\alpha$. Let $B D$ and $A L$ intersect at $P$. The triangles $A B P$ and $D B A$ have two equal angles, and hence $A B P \sim D B A$. So + +$$ +\frac{A B}{D B}=\frac{B P}{A B} +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_8b636f8a6b85b9bd036bg-09.jpg?height=357&width=462&top_left_y=1164&top_left_x=1294) + +The triangles $A B P$ and $L D P$ are clearly similar with similarity ratio $2: 1$. Hence $B P=$ $\frac{2}{3} D B$. Inserting this into (1) we get + +$$ +A B=\sqrt{\frac{2}{3}} \cdot D B +$$ + +The sine theorem applied to $A B D$ (recall that $\angle D A B=60^{\circ}$ ) immediately gives + +$$ +\sin \alpha=\frac{A B}{B D} \sin 60^{\circ}=\sqrt{\frac{2}{3}} \cdot \frac{\sqrt{3}}{2}=\frac{\sqrt{2}}{2}=\sin 45^{\circ} . +$$ + +So $\angle A B D=180^{\circ}-60^{\circ}-45^{\circ}=75^{\circ}$. + +19. Consider triangles in the plane where each vertex has integer coordinates. Such a triangle can be legally transformed by moving one vertex parallel to the opposite side to a different point with integer coordinates. Show that if two triangles have the same area, then there exists a series of legal transformations that transforms one to the other. + +Solution. We will first show that any such triangle can be transformed to a special triangle whose vertices are at $(0,0),(0,1)$ and $(n, 0)$. Since every transformation preserves the triangle's area, triangles with the same area will have the same value for $n$. + +Define th $y$-span of a triangle to be the difference between the largest and the smallest $y$ coordinate of its vertices. First we show that a triangle with a $y$-span greater than one can be transformed to a triangle with a strictly lower $y$-span. + +Assume $A$ has the highest and $C$ the lowest $y$ coordinate of $A B C$. Shifting $C$ to $C^{\prime}$ by the vector $\overrightarrow{B A}$ results in the new triangle $A B C^{\prime}$ where $C^{\prime}$ has larger $y$ coordinate than $C$ baut lower than $A$, and $C^{\prime}$ has integer coordinates. If $A C$ is parallel to the $x$-axis, a horizontal shift of $B$ can be made to transform $A B C$ into $A B^{\prime} C$ where $B^{\prime} C$ is vertical, and then $A$ can be vertically shifted so that the $y$ coordinate of $A$ is between those of $B^{\prime}$ and $C$. Then the $y$-span of $A B^{\prime} C$ can be reduced in the manner described above. Continuing the process, one necessarily arrives at a triangle with $y$-span equal to 1 . Such a triangle then necessarily has one side, say $A C$, horizontal. A legal horizontal move can take $B$ to the a position $B^{\prime}$ where $A B^{\prime}$ is horizontal and $C$ has the highest $x$-coordinate. If $B^{\prime}$ is above $A C$, perform a vertical and a horizontal legal move to take $B^{\prime}$ to the origin; the result is a special triangle. If $B^{\prime}$ is below $A C$, legal transformation again can bring $B^{\prime}$ to the origin, and a final horizontal transformation of one vertex produces the desired special triangle. + +The inverse of a legal transformation is again a legal transformation. Hence any two triangles having vertices with integer coordinates and same area can be legally transformed into each other via a special triangle. + +20. Let $A B C D$ be a cyclic quadrilateral with $A B$ and $C D$ not parallel. Let $M$ be the midpoint of $C D$. Let $P$ be a point inside $A B C D$ such that $P A=P B=C M$. Prove that $A B, C D$ and the perpendicular bisector of $M P$ are concurrent. + +Solution. Let $\omega$ be the circumcircle of $A B C D$. Let $A B$ and $C D$ intersect at $X$. Let $\omega_{1}$ and $\omega_{2}$ be the circles with centers $P$ and $M$ and with equal radius $P B=M C=r$. The power of $X$ with respect to $\omega$ and $\omega_{1}$ equals $X A \cdot X B$ and with respect to $\omega$ and $\omega_{2} X D \cdot X C$. The latter power also equals $(X M+$ $r)(X M-r)=X M^{2}-r^{2}$. Analogously, the first power is $X P^{2}-r^{2}$. But since $X A \cdot X B=X D \cdot X C$, we must have $X M^{2}=X P^{2}$ or $X M=X P . X$ indeed is on the perpendicular bisector of $P M$, and we are done. + +![](https://cdn.mathpix.com/cropped/2024_04_17_8b636f8a6b85b9bd036bg-10.jpg?height=549&width=437&top_left_y=1653&top_left_x=1295) + diff --git a/BalticWay/md/en-bw17sol.md b/BalticWay/md/en-bw17sol.md new file mode 100644 index 0000000000000000000000000000000000000000..d73d9f5a4d0b4f4a865d616f0b18304878553310 --- /dev/null +++ b/BalticWay/md/en-bw17sol.md @@ -0,0 +1,571 @@ +# Baltic Way 2017 + +Sorø, November 11th, 2017 + +## Problems and solutions + +Problem 1. Let $a_{0}, a_{1}, a_{2}, \ldots$ be an infinite sequence of real numbers satisfying $\frac{a_{n-1}+a_{n+1}}{2} \geq a_{n}$ for all positive integers $n$. Show that + +$$ +\frac{a_{0}+a_{n+1}}{2} \geq \frac{a_{1}+a_{2}+\ldots+a_{n}}{n} +$$ + +holds for all positive integers $n$. + +## Solution + +From the inequality $\frac{a_{n-1}+a_{n+1}}{2} \geq a_{n}$ we get $a_{n+1}-a_{n} \geq a_{n}-a_{n-1}$. Inductively this yields that $a_{l+1}-a_{l} \geq a_{k+1}-a_{k}$ for any positive integers $l>k$, which rewrites as + +$$ +a_{l+1}+a_{k} \geq a_{l}+a_{k+1} +$$ + +Now fix $n$ and define $b_{m}=a_{m}+a_{n+1-m}$ for $m=0, \ldots n+1$. For $m<\frac{n}{2}$, we can apply the above for $(l, k)=(n-m, m)$ yielding + +$$ +b_{m}=a_{n+1-m}+a_{m} \geq a_{n-m}+a_{m+1}=b_{m+1} +$$ + +Also by symmetry $b_{m}=b_{n+1-m}$. Thus + +$$ +b_{0}=\max _{m=0, \ldots, n+1} b_{m} \geq \max _{m=1, \ldots, n} b_{m} \geq \frac{b_{1}+\cdots+b_{n}}{n} +$$ + +substituting back yields the desired inequality. + +Problem 2. Does there exist a finite set of real numbers such that their sum equals 2 , the sum of their squares equals 3 , the sum of their cubes equals 4 and the sum of their ninth powers equals 10 ? + +## Solution + +Answer: no. + +Assume that such a set of numbers $\left\{a_{1}, \ldots, a_{n}\right\}$ exists. Summing up the inequalities + +$$ +2 a_{i}^{3} \leq a_{i}^{2}+a_{i}^{4} +$$ + +for all $i$ we obtain the inequality $8 \leq 8$. Therefore all the inequalities are in fact equalities. This is possible for the cases $a_{i}=0$ or $a_{i}=1$ only, but the elements of a set are all different. + +(Remark: Even if the $a_{i}$ 's are allowed to be equal it is clear that only 0's or only l's do not satisfy the problem conditions.) + +Problem 3. Positive integers $x_{1}, \ldots, x_{m}$ (not necessarily distinct) are written on a blackboard. It is known that each of the numbers $F_{1}, \ldots, F_{2018}$ can be represented as a sum of one or more of the numbers on the blackboard. What is the smallest possible value of $m$ ? + +(Here $F_{1}, \ldots, F_{2018}$ are the first 2018 Fibonacci numbers: $F_{1}=F_{2}=1, F_{k+1}=F_{k}+F_{k-1}$ for $k>1$.) + +## Solution + +Answer: the minimal value for $m$ is 1009 . + +Construction: Define $x_{i}=F_{2 i-1}$. This works since $F_{2 k}=F_{1}+F_{3}+\ldots+F_{2 k-1}$, for all $k$, which can easily be proved by induction. Minimality: Again by induction we get that $F_{k+2}=1+F_{1}+F_{2}+\ldots+F_{k}$, for all $k$, which means that + +$$ +F_{k+2}>F_{1}+F_{2}+\ldots+F_{k} . +$$ + +Consider the numbers that have been used for the representing the first $k$ Fibonacci numbers. Then the sum of these $x_{i}$ 's is less than $F_{k+2}$ due to $(*)$. Thus, at least one additional number is required to deal with $F_{k+2}$. This establishes the lower bound $m \leq 1009$. + +Problem 4. A linear form in $k$ variables is an expression of the form $P\left(x_{1}, \ldots, x_{k}\right)=a_{1} x_{1}+\ldots+a_{k} x_{k}$ with real constants $a_{1}, \ldots, a_{k}$. Prove that there exist a positive integer $n$ and linear forms $P_{1}, \ldots, P_{n}$ in 2017 variables such that the equation + +$$ +x_{1} \cdot x_{2} \cdot \ldots \cdot x_{2017}=P_{1}\left(x_{1}, \ldots, x_{2017}\right)^{2017}+\ldots+P_{n}\left(x_{1}, \ldots, x_{2017}\right)^{2017} +$$ + +holds for all real numbers $x_{1}, \ldots, x_{2017}$. + +## Solution + +Solution 1: For every $\varepsilon=\left(\varepsilon_{1}, \ldots, \varepsilon_{n}\right) \in\{ \pm 1\}^{2017}$ let + +$$ +P_{\varepsilon}\left(X_{1}, \ldots, X_{2017}\right)=\varepsilon_{1} X_{1}+\cdots+\varepsilon_{2017} X_{2017} +$$ + +and $\beta_{\varepsilon}=\varepsilon_{1} \cdots \varepsilon_{2017}$. Consider + +$$ +\begin{aligned} +g\left(X_{1}, \ldots, X_{k}\right) & :=\sum_{\varepsilon}\left(\beta_{\varepsilon} P_{\varepsilon}\left(X_{1}, \ldots, X_{2017}\right)\right)^{2017} \\ +& =\sum_{\varepsilon_{1}, \ldots, \varepsilon_{2017}} \varepsilon_{1} \cdots \varepsilon_{2017}\left(\varepsilon_{1} X_{1}+\cdots+\varepsilon_{2017} X_{2017}\right)^{2017} +\end{aligned} +$$ + +If we choose $X_{1}=0$, then every combination $\left(\varepsilon_{2} X_{2}+\cdots+\varepsilon_{2017} X_{2017}\right)^{2017}$ occurs exactly twice and with opposite signs in the above sum. Hence, $g\left(0, X_{2}, \ldots, X_{2017}\right) \equiv 0$. The analogous statements are true for all other variables. Consequently, $g$ is divisible by $X_{1} \ldots X_{2017}$, and thereby of the form $c X_{1} \ldots X_{2017}$ for some real constant $c$. If $c \neq 0$, then both sides can be divided by $c$, and we obtain a representation with $n=2^{2017}$ linear forms. + +With $X_{1}=\cdots=X_{2017}=1$ we get + +$$ +\begin{aligned} +c & =\sum_{\varepsilon} \varepsilon_{1} \cdot \ldots \cdot \varepsilon_{2017}\left(\varepsilon_{1}+\ldots+\varepsilon_{2017}\right)^{2017} \\ +& =\sum_{\varepsilon} \sum_{\substack{k_{1}, \ldots, k_{2017} \\ +k_{1}+\ldots+k_{2017}=2017}}\left(\begin{array}{c} +2017 \\ +k_{1}, \ldots, k_{2017} +\end{array}\right) \varepsilon_{1}^{k_{1}+1} \cdot \ldots \cdot \varepsilon_{2017}^{k_{2017}+1} +\end{aligned} +$$ + +The part of the sum with $k_{1}$ even is zero since + +$$ +\sum_{\substack{k_{1} \text { even,.,.,k } \\ +k_{1}+\ldots+k_{2017}=2017}}\left(\begin{array}{c} +2017 \\ +k_{1}, \ldots, k_{2017} +\end{array}\right)\left(\sum_{\varepsilon, \varepsilon_{1}=1} \varepsilon_{2}^{k_{2}+1} \cdot \ldots \cdot \varepsilon_{2017}^{k_{2017}+1}+\sum_{\varepsilon, \varepsilon_{1}=-1}(-1)^{k_{1}+1} \cdot \ldots \cdot \varepsilon_{2017}^{k_{2017}+1}\right)=0 +$$ + +Now we may consider the part of the sum with $k_{1}$ odd. Similarly the part of this new sum with $k_{2}$ even equals 0 . Doing this for all the variables we get + +$$ +c=\sum_{\varepsilon=1} \sum_{\substack{k_{1} \text { odd, }, \ldots, k_{2017} \text { odd } \\ +k_{1}+\ldots+k_{2017}=2017}}\left(\begin{array}{c} +2017 \\ +k_{1}, \ldots, k_{2017} +\end{array}\right)=2^{2017}\left(\begin{array}{c} +2017 \\ +1, \ldots, 1 +\end{array}\right)=2^{2017} \cdot 2017 ! \neq 0 +$$ + +forms. + +Finally, we can even merge the two forms with opposite choices of the signs to obtain a representation with $2^{2016}$ linear + +Solution 2: We show by induction that for every integer $k \geq 1$ there exist an $n=n_{k}$, real numbers $\lambda_{1}, \ldots, \lambda_{n_{k}}$ and linear forms $P_{k, 1}, \ldots, P_{k, n_{k}}$ in $k$ variables such that + +$$ +x_{1} \ldots x_{k}=\lambda_{1} P_{k, 1}\left(x_{1}, \ldots, x_{k}\right)^{k}+\cdots+\lambda_{n_{k}} P_{k, n_{k}}\left(x_{1}, \ldots, x_{k}\right)^{k} . +$$ + +For $k=1$ we can choose $n=n_{1}=1$ and $P_{1,1}\left(x_{1}\right)=x_{1}$. Now for the induction step, we observe that + +$$ +x_{1} \ldots x_{k} y=\lambda_{1} P_{k, 1}\left(x_{1}, \ldots, x_{k}\right)^{k} y+\cdots+\lambda_{k} P_{k, n_{k}}\left(x_{1}, \ldots, x_{k}\right)^{k} y +$$ + +Thus it suffices to write $X^{k} Y$ as a linear combination of $(k+1)$-th powers of linear forms in $X$ and $Y$. The set-up + +$$ +X^{k} Y=\sum_{i=1}^{m} \alpha_{i}\left(X+\beta_{i} Y\right)^{k+1} +$$ + +leads to the equations $\sum_{i} \alpha_{i} \beta_{i}=\frac{1}{k+1}$ and $\sum_{i} \alpha_{i} \beta_{i}^{d}=0$ for $d=0,2,3, \ldots, k+1$. Choosing $m=k+2$ and distinct values for the $\beta_{i}$ 's, this becomes a system of $k+2$ linear equations in the $k+2$ variables $\alpha_{i}$. If the system had no solution, then the lefthand sides of the equations would be linearly dependent. On the other hand, given $c_{j}, j=0,1, \ldots, k+1$ with $\sum_{j} c_{j} \beta_{i}^{j}=0$ for all $i$, the polynomial $P(x)=\sum_{j} c_{j} x^{j}$ has degree at most $k+1$ and the $k+2$ distinct zeros $b_{1}, \ldots, b_{k+2}$ and, hence, is the zero polynomial. Consequently, the system has a solution, and we can choose $n_{k+1}=(k+2) n_{k}$ and the induction is complete. + +The above gives us + +$$ +\begin{aligned} +x_{1} \ldots x_{2017} & =\lambda_{1} P_{2017,1}\left(x_{1}, \ldots, x_{2017}\right)^{2017}+\cdots+\lambda_{n_{2017}} P_{2017, n_{2017}}\left(x_{1}, \ldots, x_{2017}\right)^{2017} \\ +& =\left(\lambda_{1}^{1 / 2017} P_{2017,1}\left(x_{1}, \ldots, x_{2017}\right)\right)^{2017}+\cdots+\left(\lambda_{n_{2017}}^{1 / 2017} P_{2017, n_{2017}}\left(x_{1}, \ldots, x_{2017}\right)\right)^{2017}, +\end{aligned} +$$ + +as wanted. + +Remark: Of course, the consistency of the system of linear equations also follows by the fact that the determinant of the coefficient matrix does not vanish as it is of Vandermonde's type. + +Problem 5. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that + +$$ +f\left(x^{2} y\right)=f(x y)+y f(f(x)+y) +$$ + +for all real numbers $x$ and $y$. + +## Solution + +Answer: $f(y)=0$. + +By substituting $x=0$ into the original equation we obtain $f(0)=f(0)+y f(f(0)+y)$, which after simplifying yields $y f(f(0)+$ $y)=0$. This has to hold for every $y$. + +Now let's substitute $y=-f(0)$. We get that $-(f(0))^{2}=0$, which gives us $f(0)=0$. + +By plugging the last result into $y f(f(0)+y)=0$ we now get that $y f(y)=0$. + +Therefore if $y \neq 0$ then $f(y)=0$. + +Altogether we have shown that $f(y)=0$ for every $y$ is the only possible solution, and it clearly is a solution. + +Problem 6. Fifteen stones are placed on a $4 \times 4$ board, one in each cell, the remaining cell being empty. Whenever two stones are on neighbouring cells (having a common side), one may jump over the other to the opposite neighbouring cell, provided this cell is empty. The stone jumped over is removed from the board. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-03.jpg?height=63&width=405&top_left_y=1385&top_left_x=834) + +For which initial positions of the empty cell is it possible to end up with exactly one stone on the board? + +## Solution + +There are three types of cells on the board: corner cells, edge cells and centre cells. Colour the cells in three distinct colours as follows. + +$$ +\begin{array}{|c|c|c|c|} +\hline \mathrm{A} & \mathrm{B} & \mathrm{C} & \mathrm{A} \\ +\hline \mathrm{B} & \mathrm{C} & \mathrm{A} & \mathrm{B} \\ +\hline \mathrm{C} & \mathrm{A} & \mathrm{B} & \mathrm{C} \\ +\hline \mathrm{A} & \mathrm{B} & \mathrm{C} & \mathrm{A} \\ +\hline +\end{array} +$$ + +Suppose there are initially $a, b, c$ stones on cells of colours A, B, C, respectively. With each move, one of these numbers will increase by 1 , while the other two will decrease by 1 . Because there are fourteen moves altogether, the game must end with $a, b, c$ of the same parity as they originally had. There are $6,5,5$ cells of each colour on the board, so if the game should end with a single stone remaining, the game must begin with + +$$ +a=6, b=5, c=4 \quad \text { or } \quad a=6, b=4, c=5 \text {. } +$$ + +The empty slot should thus have colour B or C. This excludes the corner cells and two of the centre cells. However, by symmetry (changing the colouring), the two remaining centre cells will also be excluded. Hence the empty space at the beginning must be at an edge cell. That the game is indeed winnable in this case can be seen from the sequence of moves here: + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-03.jpg?height=383&width=1117&top_left_y=2370&top_left_x=478) + +Problem 7. Each edge of a complete graph on 30 vertices is coloured either red or blue. It is allowed to choose a nonmonochromatic triangle and change the colour of the two edges of the same colour to make the triangle monochromatic. Prove that by using this operation repeatedly it is possible to make the entire graph monochromatic. + +(A complete graph is a graph where any two vertices are connected by an edge.) + +## Solution + +The total number of edges is odd. Assume without loss of generality that the number of blue edges is odd, and the number of red edges is even. It is clear that the parity of the number of edges of each colour does not change by the operations. + +Consider a graph with maximal number of blue edges that can be obtained by these operations. Suppose that not all of its edges are blue. Then it contains at least two red edges. Because of maximality, it is not possible to have a triangle with exactæy two red edges. + +Case 1. It contains two red edges $A B$ and $B C$ sharing a common vertex. Then edge $A C$ is coloured in red, too. If there exists a vertex $D$ such that the edges $D A, D B, D C$ are not of the same colour, then wlog we can assume that $D A$ is red and $D B$ is blue, but then we have a triangle $A B D$ with exactly two red edges, a contradiction. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-04.jpg?height=300&width=303&top_left_y=889&top_left_x=885) + +If some vertex $D$ is connected to $A, B$ and $C$ with blue edges, then perform the operation on the triangles $B C D, A B D$, $A C D$, and the number of blue edges increases, a contradiction. +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-04.jpg?height=300&width=1626&top_left_y=1339&top_left_x=220) + +Otherwise all the vertices are connected to $A, B$ and $C$ with red edges. Due to parity we have at least one blue edge. If $X$ and $Y$ are connected by a blue edge, then perform the operation on $A X Y$, and the number of blue edges increases, a contradiction. + +Case 2. Every two red edges have no common vertex. Let $A B$ and $C D$ be red edges. Perform the operation in the triangles $A B D, B C D, A B D$. The number of blue edges increases. +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-04.jpg?height=298&width=1626&top_left_y=1915&top_left_x=220) + +Problem 8. A chess knight has injured his leg and is limping. He alternates between a normal move and a short move where he moves to any diagonally neighbouring cell. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=315&width=317&top_left_y=385&top_left_x=732) + +Normal move + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=199&width=195&top_left_y=503&top_left_x=1136) + +Short move + +The limping knight moves on a $5 \times 6$ cell chessboard starting with a normal move. What is the largest number of moves he can make if he is starting from a cell of his own choice and is not allowed to visit any cell (including the initial cell) more than once? + +## Solution + +Answer: 25 moves. + +Let us enumerate the rows of the chessboard with numbers 1 to 5 . We will consider only the short moves. Each short move connects two cells from rows of different parity and no two short moves has a common cell. Therefore there can be at most 12 short moves as there are just 12 cells in the rows of even parity (second and fourth). It means that the maximal number of moves is 12 short +13 normal $=25$ moves. + +The figure shows that 25 moves indeed can be made. + +| 19 | 5 | 7 | 9 | 11 | | +| :---: | :---: | :---: | :---: | :---: | :---: | +| 4 | 18 | 20 | 6 | 8 | 10 | +| | 2 | | 21 | 26 | 12 | +| 17 | 3 | 24 | 15 | 13 | 22 | +| 2 | 16 | 14 | 25 | 23 | | + +Problem 9. A positive integer $n$ is Danish if a regular hexagon can be partitioned into $n$ congruent polygons. Prove that there are infinitely many positive integers $n$ such that both $n$ and $2^{n}+n$ are Danish. + +## Solution + +At first we note that $n=3 k$ is danish for any positive integer $k$, because a hexagon can be cut in 3 equal parallelograms each of which can afterwards be cut in $k$ equal parallelograms (Fig 1). + +Furthermore a hexagon can be cut into two equal trapezoids (Fig. 2) each of which can afterwards be cut into 4 equal trapezoids of the same shape (Fig. 3) and so on. Therefore any number of the form $n=2 \cdot 4^{k}$ is also danish. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=180&width=206&top_left_y=1966&top_left_x=662) + +Figure 1 + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=174&width=188&top_left_y=1969&top_left_x=937) + +Figure 2 + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-05.jpg?height=174&width=192&top_left_y=1969&top_left_x=1206) + +Figure 3 + +If we take any danish number $n=2 \cdot 4^{k}$ of the second type, then + +$$ +2^{n}+n=2^{2 \cdot 4^{k}}+2 \cdot 4^{k} \equiv 1+2 \equiv 0(\bmod 3) +$$ + +showing that $2^{n}+n$ is also a danish number. + +Problem 10. Maker and Breaker are building a wall. Maker has a supply of green cubical building blocks, and Breaker has a supply of red ones, all of the same size. On the ground, a row of $m$ squares has been marked in chalk as place-holders. Maker and Breaker now take turns in placing a block either directly on one of these squares, or on top of another block already in place, in such a way that the height of each column never exceeds $n$. Maker places the first block. + +Maker bets that he can form a green row, i.e. all $m$ blocks at a certain height are green. Breaker bets that he can prevent Maker from achieving this. Determine all pairs $(m, n)$ of positive integers for which Maker can make sure he wins the bet. + +## Solution + +Answer: Maker has a winning strategy if $m>1$ and $n>1$ are both odd, or if $m=1$. + +Let us refer to the positions of the blocks in the wall by coordinates $(x, y)$ where $x \in\{0,1, \ldots, m-1\}$ refers to the column and $y \in\{0,1, \ldots, n-1\}$ to the height of the block. Consider the different cases according to the parity of the parameters. In addition, there are some exceptional trivial cases. + +1) If $m=1$, then Maker trivially wins by the first move. +2) If $m>1$, but $n=1$, then Breaker obviously can break the only row. +3) Suppose $m$ is even. Then Breaker has a defensive strategy based on the horizontal reflection, i.e. if Maker places a block in $(x, y)$, then Breaker places a block in $(m-1-x, y)$. Note that this move is always available for Breaker, because $m$ is even. It is clear that this reflection strategy breaks all the green rows. +4) Suppose then $n$ is even but $m>1$ is odd. Then Breaker has the same defensive stra-tegy as above based on the horizontal reflection, with one modification: Whenever Maker places a block in the middle column, Breaker does too. Since $n$ is even, this middle column does not influence the rest of the construction. Hence this reflection strategy breaks all the green rows as above. +5) Suppose both $m$ and $n$ are odd, $m>1$ and $n>1$. Maker's strategy is the following: Maker starts with $(0,0)$. Maker pairs the positions $(2 i-1,0)$ and $(2 i, 0), i=1,2, \ldots, \frac{m-1}{2}$, so that if Breaker places a red block in one of the positions, Maker places a green block in the other position; otherwise Maker does not use the bottom row. Maker's reply to Breaker's $(x, y)$ with $y>0$ is $(x, y+1)$. This strategy builds a green row at the height 2 . + +Problem 11. Let $H$ and $I$ be the orthocentre and incentre, respectively, of an acute angled triangle $A B C$. The circumcircle of the triangle $B C I$ intersects the segment $A B$ at the point $P$ different from $B$. Let $K$ be the projection of $H$ onto $A I$ and $Q$ the reflection of $P$ in $K$. Show that $B, H$ and $Q$ are collinear. + +## Solution + +Solution 1: Let $H^{\prime}$ be the reflection of $H$ in $K$. The reflection about the point $K$ sends $Q$ to $P$, and the line $B H$ to the line through $H^{\prime}$ and orthogonal to $A C$. The reflection about the line $A I$ sends $P$ to $C$, and the line through $H^{\prime}$ orthogonal to $A C$ to the line through $H$ orthogonal to $A B$, but this is just $B H$. Since composition of the two reflections sends $B, H$ and $Q$ to the same line, it follows that $B, H$ and $Q$ are collinear. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-06.jpg?height=537&width=768&top_left_y=1556&top_left_x=655) + +Solution 2: Let $\alpha=\frac{1}{2} \angle B A C, \beta=\frac{1}{2} \angle C B A$, and $\gamma=\frac{1}{2} \angle A C B$. Clearly then $\alpha+\beta+\gamma=90^{\circ}$, which yields $\angle B I C=180^{\circ}-\beta-\gamma=$ $90^{\circ}+\alpha$. From this we get $\angle C P A=180^{\circ}-\angle B P C=180^{\circ}-\angle B I C=90^{\circ}-\alpha$, so triangle $A P C$ is isosceles. + +Now since $A I$ is the anglebisector of $\angle P A C$ it must also be the perpendicular bisector of $C P$. Hence $C K=P K=Q K$ so triangle $K C Q$ is isosceles. Additionally $A I$ bisects $P Q$ so $A I$ is the midline of triangle $P C Q$ parallel to $C Q$. Since $K H$ is perpendicular to $A I$, it is also perpendicular to $C Q$, so we may then conclude by symmetry that $H C Q$ is also isosceles. Moreover $\angle Q C A=\angle I A C=\alpha$, and $\angle A C H=90^{\circ}-2 \alpha$, so $\angle Q C H=\alpha+90^{\circ}-2 \alpha=90^{\circ}-\alpha$, which means that triangles $H C Q$ and $A P C$ are similar. In particular we have $\angle C H Q=2 \alpha$. Since also + +$$ +180^{\circ}-\angle B H C=\angle H C B+\angle C B H=90^{\circ}-2 \beta+90^{\circ}-2 \gamma=2 \alpha +$$ + +it follows that $B, H$, and $Q$ are collinear. + +To prove that $Q$ always lies outside of triangle $A B C$ one could do the following: Since $P$ lies on $A B$, angle $C$ is larger than angle $B$ in triangle $A B C$. Thus angle $A D B$ is obtuse, where $D$ is the intersection point between $A I$ and $B C$. As $Q C$ and $A I$ are parallel, angle $Q C B$ is obtuse. Thus $Q$ lies outside of triangle $A B C$. + +Problem 12. Line $\ell$ touches circle $S_{1}$ in the point $X$ and circle $S_{2}$ in the point $Y$. We draw a line $m$ which is parallel to $\ell$ and intersects $S_{1}$ in a point $P$ and $S_{2}$ in a point $Q$. Prove that the ratio $X P / Y Q$ does not depend on the choice of $m$. + +## Solution + +Let $T$ be the second intersection point of $P Q$ and $S_{1}$ and $R$ be the second intersection point of $P Q$ and $S_{2}$. Let $\angle P X T=\alpha$, $\angle R Y Q=\beta$. It is evident that $P X=X T, R Y=Y Q$. Calculate the ratio area ${ }_{P X T} /$ area $_{R Y Q}$ by two different ways. First, + +$$ +\frac{\operatorname{area}_{P X T}}{\operatorname{area}_{R Y Q}}=\frac{X P^{2} \sin \alpha}{Y Q^{2} \sin \beta} +$$ + +Second, + +Equating these expressions we obtain + +$$ +\frac{\operatorname{area}_{P X T}}{\operatorname{area}_{R Y Q}}=\frac{P T}{R Q}=\frac{2 R_{1} \sin \alpha}{2 R_{2} \sin \beta} +$$ + +$$ +\frac{X P}{Y Q}=\sqrt{\frac{R_{1}}{R_{2}}} +$$ + +Problem 13. Let $A B C$ be a triangle in which $\angle A B C=60^{\circ}$. Let $I$ and $O$ be the incentre and circumcentre of $A B C$, respectively. Let $M$ be the midpoint of the arc $B C$ of the circumcircle of $A B C$, which does not contain the point $A$. Determine $\angle B A C$ given that $M B=O I$. + +## Solution + +Since $\angle A B C=60^{\circ}$, we have $\angle A I C=\angle A O C=120^{\circ}$. Let $I^{\prime}, O^{\prime}$ be the points symmetric to $I, O$ with respect to $A C$, respectively. Then $I^{\prime}$ and $O^{\prime}$ lie on the circumcircle of $A B C$. Since $O^{\prime} I^{\prime}=O I=M B$, the angles determined by arcs $O^{\prime} I^{\prime}$ and $M B$ are equal. It follows that $\angle M A B=\angle I^{\prime} A O^{\prime}$. + +Now, denoting $\angle B A C=\alpha$, we have + +$$ +\angle I^{\prime} A O^{\prime}=\angle I A O=|\angle I A C-\angle O A C|=\left|\frac{\alpha}{2}-30^{\circ}\right| +$$ + +It follows that $\frac{\alpha}{2}=\angle M A B=\angle I^{\prime} A O^{\prime}=\left|\frac{\alpha}{2}-30^{\circ}\right|$, i.e. $\alpha=30^{\circ}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-07.jpg?height=554&width=560&top_left_y=1590&top_left_x=745) + +Problem 14. Let $P$ be a point inside the acute angle $\angle B A C$. Suppose that $\angle A B P=\angle A C P=90^{\circ}$. The points $D$ and $E$ are on the segments $B A$ and $C A$, respectively, such that $B D=B P$ and $C P=C E$. The points $F$ and $G$ are on the segments $A C$ and $A B$, respectively, such that $D F$ is perpendicular to $A B$ and $E G$ is perpendicular to $A C$. Show that $P F=P G$. + +## Solution + +As $\triangle P B D$ is an isosceles right triangle $\angle G D P=\angle B D P=45^{\circ}$. Similarly $\angle P E C=45^{\circ}$, and thus $\angle P E G=45^{\circ}$. Therefore $P G D E$ is cyclic. As $\angle G D F$ and $\angle G E F$ are right $E F G D$ is cyclic. Therefore $D G P F E$ is a cyclic pentagon. Therefore $\angle G F P=\angle G E P=45^{\circ}$. Similarly $\angle F G P=45^{\circ}$. Therefore $\triangle F P G$ is a (right) isosceles triangle. + +![](https://cdn.mathpix.com/cropped/2024_04_17_6a5543a8a260575a56cdg-08.jpg?height=477&width=623&top_left_y=258&top_left_x=725) + +Remark: It can be shown given two intersecting lines $l$ and $m$, not perpendicular to one another and an point $P$. there exist unique points $F$ and $G$ on $l$ and $m$ respectively such that $\triangle F P G$ is an right isosceles triangle using similar constructions to above. + +Problem 15. Let $n \geq 3$ be an integer. What is the largest possible number of interior angles greater than $180^{\circ}$ in an $n$-gon in the plane, given that the $n$-gon does not intersect itself and all its sides have the same length? + +## Solution + +Answer: 0 if $n=3,4$ and $n-3$ for $n \geq 5$. + +If $n=3,4$ then any such $n$-gon is a triangle, resp. a rhombus, therefore the answer is 0 . + +If $n=5$ then consider a triangle with side lengths 2,2,1. Now move the vertex between sides of length 2 towards the opposite side by 0.0000001 units. Consider the triangle as a closed physical chain of links of length 1 that are aluminium tubes and through them is a closed rubber string. So deform the chain on a level surface so that links of the chain move towards the inside of the triangle, by fixing the vertices of the triangle to the surface. Geometrically, the links which are on sides of length 2 are now distinct chords of a large circle, attached to each other by their endpoints. + +If $n>5$ then first consider a triangle of integer sides lengths, with sides of as equal lengths as possible, so that the sum of side lengths is $n$. Imagine a closed aluminium chain on a rubber string, as in the previous case. Now move two of the vertices of the triangle towards the third one be 0.00000001 units each. Again consider the chain on a level surface and deform it so that its links move towards the interior of the triangle. Geometrically each side of a triangle is deformed into consecutive equal-length chords of a large circle with centre far away from the original triangle. + +For $n \geq 5$ this gives an example of $n-3$ interior angles of more than $180^{\circ}$. + +To see that $n-2$ or more such angles is not possible, note than the sum of interior angles of any $n$-gon (that does not cut itself) is equal to $(n-2) 180^{\circ}$, but already the sum of the 'large' angles would be greater than that if there were at least $n-2$ of 'large' angles of size greater than $180^{\circ}$. + +Problem 16. Is it possible for any group of people to choose a positive integer $N$ and assign a positive integer to each person in the group such that the product of two persons' numbers is divisible by $N$ if and only if they are friends? + +## Solution + +Answer: Yes, this is always possible. + +Consider a graph with a vertex for each person in the group. For each pair of friends we join the corresponding vertices by a red edge. If a pair are not friends, we join their vertices with a blue edge. + +Let us label blue edges with different primes $p_{1}, \ldots, p_{k}$. To a vertex $A$ we assign the number $n(A)=\frac{P^{2}}{P(A)}$, where $P=$ $p_{1} p_{2} \ldots p_{k}$, and $P(A)$ is the product of the primes on all blue edges starting from $A$ (for the empty set the product of all its elements equals 1). Now take $N=P^{3}$. + +Let us check that all conditions are satisfied. If vertices $A$ and $B$ are connected by a red edge, then $P(A)$ and $P(B)$ are coprime, hence $P(A) P(B) \mid P$ and $P^{3} \left\lvert\, n(A) n(B)=\frac{P^{4}}{P(A) P(B)}\right.$. If vertices $A$ and $B$ are connected by a blue edge labelled with a prime $q$, then $q^{2}$ divides neither $n(A)$ nor $n(B)$. Hence $q^{3}$ does not divide $n(A) n(B)$. + +Problem 17. Determine whether the equation + +$$ +x^{4}+y^{3}=z !+7 +$$ + +has an infinite number of solutions in positive integers. + +## Solution + +We consider the equation modulo 13 since both 3 and 4 divides $12=13-1$. Now $x^{4} \bmod 13 \in\{0,1,3,9\}$ and $y^{3} \bmod 13 \in$ $\{0,1,5,8,12\}$. We can verify that $x^{4}+y^{3} \not \equiv 7 \bmod 13$. However $z !+7 \equiv 7 \bmod 13$ if $z \geq 13$, what leads to a conclusion that this equation has no solutions with $z \geq 13$, what proves that it has finite number of solutions. + +Problem 18. Let $p>3$ be a prime and let $a_{1}, a_{2}, \ldots, a_{\frac{p-1}{2}}$ be a permutation of $1,2, \ldots, \frac{p-1}{2}$. For which $p$ is it always possible to determine the sequence $a_{1}, a_{2}, \ldots, a_{\frac{p-1}{2}}$ if for all $i, j \in\left\{1,2, \ldots, \frac{p-1}{2}\right\}$ with $i \neq j$ the residue of $a_{i} a_{j}$ modulo $p$ is known? + +## Solution + +Answer: For all primes $p>5$. + +When $p=5$ it is clear that it is not possible to determine $a_{1}$ and $a_{2}$ from the residue of $a_{1} a_{2}$ modulo 5 . + +Assume that $p>5$. Now $\frac{p-1}{2} \geq 3$. For all $i \in\left\{1,2, \ldots, \frac{p-1}{2}\right\}$ it is possible to choose $j, k \in\left\{1,2, \ldots, \frac{p-1}{2}\right\}$ such that $i, j$ and $k$ are different. Thus we know + +$$ +a_{i}^{2} \equiv\left(a_{i} a_{j}\right)\left(a_{i} a_{k}\right)\left(a_{j} a_{k}\right)^{-1}(\bmod p) . +$$ + +The equation $x^{2} \equiv a(\bmod p)$ has exactly one solution in $\left\{1,2, \ldots, \frac{p-1}{2}\right\}$, and hence it is possible to determine $a_{i}$ for all $i$. + +Problem 19. For an integer $n \geq 1$ let $a(n)$ denote the total number of carries which arise when adding 2017 and $n \cdot 2017$. The first few values are given by $a(1)=1, a(2)=1, a(3)=0$, which can be seen from the following: + +| 001 | 001 | 000 | +| :---: | :---: | :---: | +| 2017 | 4034 | 6051 | +| +2017 | +2017 | +2017 | +| $=4034$ | $=6051$ | $=8068$ | + +Prove that + +$$ +a(1)+a(2)+\ldots+a\left(10^{2017}-2\right)+a\left(10^{2017}-1\right)=10 \cdot \frac{10^{2017}-1}{9} +$$ + +## Solution + +Solution 1: Let $k(m)$ be the residue of $m$ when divided by $10^{k}$. There is a carry at the digit representing $10^{k}$ exactly when $k(2017)+k(n \cdot 2017)>10^{k}$. Thus the number of 10-, 100-, 1000- and 10000-carries are, respectively, + +$$ +\left\lfloor\frac{7 \cdot 10^{2017}}{10}\right\rfloor,\left\lfloor\frac{17 \cdot 10^{2017}}{100}\right\rfloor,\left\lfloor\frac{17 \cdot 10^{2017}}{1000}\right\rfloor,\left\lfloor\frac{2017 \cdot 10^{2017}}{10000}\right\rfloor +$$ + +and similarly for the rest of the carries. Thus + +$$ +\begin{aligned} +\sum_{n=1}^{10^{2017}-1} a(n) & =7 \cdot 10^{2016}+17 \cdot 10^{2015}+\ldots+2017+201+20+2 \\ +& =(2+0+1+7) \cdot 10^{2016}+(2+0+1+7) \cdot 10^{2015}+\ldots+(2+0+1+7)=10 \cdot \frac{10^{2017}-1}{9} +\end{aligned} +$$ + +Solution 2: Let $s(n)$ denote the digit sum of $n$. Then we claim the following. + +Lemma. We have + +$$ +s(n+m)=s(n)+s(m)-9 a(n, m) +$$ + +where $a(n, m)$ denotes the total number of carries, which arises when adding $n$ and $m$. + +Proof: We proceed by induction on the maximal number of digits $k$ of $n$ and $m$. + +If both $n$ and $m$ are single digit numbers then we have just two cases. If $n+m<10$, then we have no carries and clearly $s(n+m)=n+m=s(n)+s(m)$. If on the other hand $n+m=10+k \geq 10$, then + +$$ +s(n+m)=1+k=1+(n+m-10)=s(n)+s(m)-9 +$$ + +Assume that the claim holds for all pair with at most $k$ digits each. Let $n=n_{1}+a \cdot 10^{k+1}$ and $m=m_{1}+b \cdot 10^{k+1}$ where $n_{1}$ og $m_{1}$ are at most $k$ digit numbers. If there is no carry at the $k+1$ th digit, then $a(n, m)=a\left(n_{1}, m_{1}\right)$ and thus + +$$ +\begin{gathered} +s(n+m)=s\left(n_{1}+m_{1}\right)+a+b \\ +=s\left(n_{1}\right)+a+s\left(m_{1}\right)+b-9 a\left(n_{1}, m_{1}\right)=s(n)+s(m)-9 a(n, m) +\end{gathered} +$$ + +If there is a carry then $a(n, m)=1+a\left(n_{1}, m_{1}\right)$ and thus + +$$ +s(n+m)=s\left(n_{1}+m_{1}\right)+a+b-9 +$$ + +$$ +=s\left(n_{1}\right)+a+s\left(m_{1}\right)+b-9\left(a\left(n_{1}, m_{1}\right)+1\right)=s(n)+s(m)-9 a(n, m) +$$ + +This finishes the induction and we are done. + +Now observe that $s\left(2017 \cdot 10^{2017}\right)=2+1+7=10$. We now use (1) a total of $10^{2017}-1$ times which yields + +$$ +\begin{aligned} +10 & =s\left(2017 \cdot 10^{2017}\right)=s\left(2017 \cdot\left(10^{2017}-1\right)+2017\right) \\ +& =s\left(2017 \cdot\left(10^{2017}-1\right)\right)+s(2017)-9 \cdot a\left(10^{2017}-1\right) \\ +& \vdots \\ +& =s(2017)+s(2017) \cdot\left(10^{2017}-1\right)-9 \cdot \sum_{n=1}^{10^{2017}-1} a(n) \\ +& =10 \cdot 10^{2017}-9 \cdot \sum_{n=1}^{10^{2017}-1} a(n) +\end{aligned} +$$ + +Thus we arrive at + +$$ +\sum_{n=1}^{10^{2017}-1} a(n)=10 \cdot \frac{10^{2017}-1}{9} +$$ + +Problem 20. Let $S$ be the set of all ordered pairs $(a, b)$ of integers with $0<2 a<2 b<2017$ such that $a^{2}+b^{2}$ is a multiple of 2017. Prove that + +$$ +\sum_{(a, b) \in S} a=\frac{1}{2} \sum_{(a, b) \in S} b +$$ + +## Solution + +Let $A=\{a:(a, b) \in S\}$ and $B=\{b:(a, b) \in S\}$. The claim is equivalent to + +$$ +2 \sum_{a \in A} a=\sum_{b \in B} b +$$ + +Assume that for some $x, y, z \in\{1,2, \ldots, 1008\}$ both, $x^{2}+y^{2}$ and $x^{2}+z^{2}$, are multiples of 2017. By + +$$ +\left(x^{2}+y^{2}\right)-\left(x^{2}+z^{2}\right)=y^{2}-z^{2}=(y+z)(y-z) \equiv 0(\bmod 2017), +$$ + +$01008$, then $g(a)=f(a)-a<(f(a)-a)+(2017-2 f(a))=$ $2017-(a+f(a))=h(a)$. Consequently, $g(a) \in A$ with $f(g(a))=h(a)$. + +It remains to show that $g$ is injective. Assume that $g\left(a_{1}\right)=g\left(a_{2}\right)$ for some $a_{1}, a_{2} \in A$, i.e., + +$$ +b_{1}-a_{1}=b_{2}-a_{2}, +$$ + +where $b_{i}=f\left(a_{i}\right)$ for $i=1,2$. Clearly, we also have $h\left(a_{1}\right)=h\left(a_{2}\right)$ then. If $h\left(a_{1}\right)=a_{1}+b_{1}$ and $h\left(a_{2}\right)=a_{2}+b_{2}$, then subtracting (3) from $a_{1}+b_{1}=a_{2}+b_{2}$ gives $a_{1}=a_{2}$. Similarly, if $h_{1}\left(a_{1}\right)=2017-\left(a_{1}+b_{1}\right)$ and $h_{2}=2017-\left(a_{2}+b_{2}\right)$, then we obtain $a_{1}=a_{2}$. Finally, if $h\left(a_{1}\right)=a_{1}+b_{1}$ and $h_{2}=2017-\left(a_{2}+b_{2}\right)$, then $2\left(a_{1}+b_{2}\right)=2017$, a contradiction. + +Remark: The proof as given above obviously works for any prime congruent to 1 modulo 4 in the place of 2017. With a little more effort, one can show that the statement is true for any positive odd $n$ (vacuously, if $n$ has a prime factor congruent to 3 modulo 4). + diff --git a/BalticWay/md/en-bw18sol.md b/BalticWay/md/en-bw18sol.md new file mode 100644 index 0000000000000000000000000000000000000000..8d054f711b0bff3e9618e5599b36cab7efb74386 --- /dev/null +++ b/BalticWay/md/en-bw18sol.md @@ -0,0 +1,441 @@ +# 1 Algebra + +1. A finite collection of positive real numbers (not necessarily distinct) is balanced if each number is less than the sum of the others. Find all $m \geq 3$ such that every balanced finite collection of $m$ numbers can be split into three parts with the property that the sum of the numbers in each part is less than the sum of the numbers in the two other parts. + +## Solution. + +Answer: The partition is always possible precisely when $m \neq 4$. + +For $m=3$ it is trivially possible, and for $m=4$ the four equal numbers $g, g, g, g$ provide a counter-example. Henceforth, we assume $m \geq 5$. + +Among all possible partitions $A \sqcup B \sqcup C=\{1, \ldots, m\}$ such that + +$$ +S_{A} \leq S_{B} \leq S_{C}, +$$ + +select one for which the difference $S_{C}-S_{A}$ is minimal. If there are several such, select one so as to maximise the number of elements in $C$. We will show that $S_{C}x$. Choosing $y$ so that $x^{2}+y^{2}=\frac{p^{2}}{q^{2}}$, we deduce + +$$ +\frac{p^{2}}{q^{2}}=f\left(\frac{p^{2}}{q^{2}}\right)=f\left(x^{2}+y^{2}\right)=f(x)^{2}+f(y)^{2} \geq f(x)^{2} +$$ + +hence $f(x) \leq \frac{p}{q}$. Next, select a (positive) rational number $\frac{r}{s}<\sqrt{x}$, i.e. $\frac{r^{2}}{s^{2}}p$. Thus $p^{2}=(k+2 m)(k-2 m)$, and since $p$ is prime we get $p^{2}=k+2 m$ and $k-2 m=1$. Hence $k=\frac{p^{2}+1}{2}$ and + +$$ +n=\frac{p+\frac{p^{2}+1}{2}}{2}=\left(\frac{p+1}{2}\right)^{2} +$$ + +is the only possible value of $n$. In this case we have + +$$ +\sqrt{n^{2}-p n}=\sqrt{\left(\frac{p+1}{2}\right)^{4}-p\left(\frac{p+1}{2}\right)^{2}}=\frac{p+1}{2} \sqrt{\left(\frac{p^{2}+1}{2}\right)^{2}-p}=\frac{p+1}{2} \cdot \frac{p-1}{2} . +$$ + +17. Prove that for any positive integers $p, q$ such that $\sqrt{11}>\frac{p}{q}$, the following inequality holds: + +$$ +\sqrt{11}-\frac{p}{q}>\frac{1}{2 p q} +$$ + +Solution. + +We can assume that $p$ and $q$ are coprime, and since both sides of first inequality are positive, we can change it to $11 q^{2}>p^{2}$. The same way we can change second inequality: + +$$ +11 p^{2} q^{2}>p^{4}+p^{2}+\frac{1}{4} +$$ + +To see this one holds, we will prove stronger one: + +$$ +11 p^{2} q^{2} \geq p^{4}+2 p^{2} \text {. } +$$ + +Indeed, dividing this inequality by $p^{2}$ we get $11 q^{2} \geq p^{2}+2$, and since we already know that $11 q^{2}>p^{2}$ we only have to see, that $11 q^{2}$ can't be equal to $p^{2}+1$. Since we know that the only reminders of squares $(\bmod 11)$ are $0,1,3,4,5$ and $9, p^{2}+1$ can't be divisible by 11 , and therefore $11 q^{2} \neq p^{2}+1$. + +18. Let $n \geq 3$ be an integer such that $4 n+1$ is a prime number. Prove that $4 n+1$ divides $n^{2 n}-1$. + +Solution. + +Since $p:=4 n+1$ is a prime number, each non-zero remainder modulo $p$ possesses a unique multiplicative inverse. Since $-4 \cdot n \equiv 1 \bmod p$, we have $n \equiv(-4)^{-1} \bmod p$, from which we deduce that $n \equiv-\left(2^{-1}\right)^{2}$. Consequently, + +$$ +n^{2 n}-1 \equiv\left(-\left(2^{-1}\right)^{2}\right)^{2 n}-1 \equiv\left(2^{-1}\right)^{4 n}-1 \equiv 0 \bmod p +$$ + +by Fermat's Little Theorem. + +19. An infinite set $B$ consisting of positive integers has the following property. For each $a, b \in B$ with $a>b$ the number $\frac{a-b}{(a, b)}$ belongs to $B$. Prove that $B$ contains all positive integers. Here $(a, b)$ is the greatest common divisor of numbers $a$ and $b$. + +Solution. + +If $d$ is g.c.d. of all the numbers in set $B$, let $A=\{b / d: b \in B\}$. Then for each $a, b \in A(a>b)$ we have + +$$ +\frac{a-b}{d(a, b)} \in A +$$ + +Observe that g.c.d of the set $A$ equals 1 , therefore we can find a finite subset $A_{1} \in A$ for which the $\operatorname{gcd} A_{1}=1$. We may think that the sum of elements of $A_{1}$ is minimal possible. Choose numbers $a, b \in A_{1}(a>b)$ and replace $a$ in the set $A_{1}$ with $\frac{a-b}{d(a, b)}$. The g.c.d. of the obtained set equals 1 . But the sum of numbers decreases by this operations that contradicts minimality of $A_{1}$. + +Thus, $A_{1}=\{1\}$. Therefore all the numbers in the set $A$ have residue 1 modulo $d$. Take an arbitrary $a=k d+1 \in A$ and $b=1$. Then $k \in A$ by $(*)$ and hence $k=d s+1$. But $(k, k d+1)=1$, therefore $\frac{k d+1-d s-1}{d}=k-s=(d-1) s+1 \in A$, so $s$ is divisible by $d$. But $s \in A$, therefore $s-1$ is also divisible by $d$, hence $d=1$ (that means that $B=A$ ). Thus we have checked that if $a=k d+1=k+1 \in A$ then $a-1=k \in A$. Then all non-negative integers belong to $A$ because it is infinite. + +20. Find all the triples of positive integers $(a, b, c)$ for which the number + +$$ +\frac{(a+b)^{4}}{c}+\frac{(b+c)^{4}}{a}+\frac{(c+a)^{4}}{b} +$$ + +is an integer and $a+b+c$ is a prime. + +## Solution. + +Answer $(1,1,1),(1,2,2),(2,3,6)$. + +Let $p=a+b+c$, then $a+b=p-c, b+c=p-a, c+a=p-b$ and + +$$ +\frac{(p-c)^{4}}{c}+\frac{(p-a)^{4}}{a}+\frac{(p-b)^{4}}{b} +$$ + +is a non-negative integer. By expanding brackets we obtain that the number $p^{4}\left(\frac{1}{a}+\frac{1}{b}+\frac{1}{c}\right)$ is integer, too. But the numbers $a, b, c$ are not divisible by $p$, therefore the number $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}$ is (non negative) integer. That is possible for the triples $(1,1,1),(1,2,2),(2,3,6)$ only. + diff --git a/BalticWay/md/en-bw19eng.md b/BalticWay/md/en-bw19eng.md new file mode 100644 index 0000000000000000000000000000000000000000..e988f7f3f01be7314b55bb891b5e32cc0abfcec2 --- /dev/null +++ b/BalticWay/md/en-bw19eng.md @@ -0,0 +1,97 @@ +Problem 1. For all non-negative real numbers $x, y, z$ with $x \geq y$, prove the inequality + +$$ +\frac{x^{3}-y^{3}+z^{3}+1}{6} \geq(x-y) \sqrt{x y z} +$$ + +Problem 2. Let $\left(F_{n}\right)$ be the sequence defined recursively by $F_{1}=F_{2}=1$ and $F_{n+1}=F_{n}+F_{n-1}$ for $n \geq 2$. Find all pairs of positive integers $(x, y)$ such that + +$$ +5 F_{x}-3 F_{y}=1 +$$ + +Problem 3. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that + +$$ +f\left(x f(y)-y^{2}\right)=(y+1) f(x-y) +$$ + +holds for all $x, y \in \mathbb{R}$. +Problem 4. Determine all integers $n$ for which there exist an integer $k \geq 2$ and positive integers $x_{1}, x_{2}, \ldots, x_{k}$ so that + +$$ +x_{1} x_{2}+x_{2} x_{3}+\ldots+x_{k-1} x_{k}=n \quad \text { and } \quad x_{1}+x_{2}+\ldots+x_{k}=2019 +$$ + +Problem 5. The $2 m$ numbers + +$$ +1 \cdot 2,2 \cdot 3,3 \cdot 4, \ldots, 2 m(2 m+1) +$$ + +are written on a blackboard, where $m \geq 2$ is an integer. A move consists of choosing three numbers $a, b, c$, erasing them from the board and writing the single number + +$$ +\frac{a b c}{a b+b c+c a} . +$$ + +After $m-1$ such moves, only two numbers will remain on the blackboard. Supposing one of these is $\frac{4}{3}$, show that the other is larger than 4. + +Problem 6. Alice and Bob play the following game. They write the expressions $x+y, x-y, x^{2}+x y+y^{2}$ and $x^{2}-x y+y^{2}$ each on a separate card. The four cards are shuffled and placed face down on a table. One of the cards is turned over, revealing the expression written on it, after which Alice chooses any two of the four cards, and gives the other two to Bob. All cards are then revealed. Now Alice picks one of the variables $x$ and $y$, assigns a real value to it, and tells Bob what value she assigned and to which variable. Then Bob assigns a real value to the other variable. + +Finally, they both evaluate the product of the expressions on their two cards. Whoever gets the larger result, wins. Which player, if any, has a winning strategy? + +Problem 7. Find the smallest integer $k \geq 2$ such that for every partition of the set $\{2,3, \ldots, k\}$ into two parts, at least one of these parts contains (not necessarily distinct) numbers $a, b$ and $c$ with $a b=c$. + +Problem 8. There are 2019 cities in the country of Balticwayland. Some pairs of cities are connected by non-intersecting bidirectional roads, each road connecting exactly 2 cities. It is known that for every pair of cities $A$ and $B$ it is possible to drive from $A$ to $B$ using at most 2 roads. There are 62 cops trying to catch a robber. The cops and robber all know each others' locations at all times. Each night, the robber can choose to stay in her current city or move to a neighbouring city via a direct road. Each day, each cop has the same choice of staying or moving, and they coordinate their actions. The robber is caught if she is in the same city as a cop at any time. Prove that the cops can always catch the robber. + +Problem 9. For a positive integer $n$, consider all nonincreasing functions $f:\{1, \ldots, n\} \rightarrow\{1, \ldots, n\}$. Some of them have a fixed point (i.e. a $c$ such that $f(c)=c$ ), some do not. Determine the difference between the sizes of the two sets of functions. + +Remark. A function $f$ is nonincreasing if $f(x) \geq f(y)$ holds for all $x \leq y$. +Problem 10. There are 2019 points given in the plane. A child wants to draw $k$ (closed) discs in such a manner, that for any two distinct points there exists a disc that contains exactly one of these two points. What is the minimal $k$, such that for any initial configuration of points it is possible to draw $k$ discs with the above property? + +Problem 11. Let $A B C$ be a triangle with $A B=A C$. Let $M$ be the midpoint of $B C$. Let the circles with diameters $A C$ and $B M$ intersect at points $M$ and $P$. Let $M P$ intersect $A B$ at $Q$. Let $R$ be a point on $A P$ such that $Q R \| B P$. Prove that $C P$ bisects $\angle R C B$. + +Problem 12. Let $A B C$ be a triangle and $H$ its orthocenter. Let $D$ be a point lying on the segment $A C$ and let $E$ be the point on the line $B C$ such that $B C \perp D E$. Prove that $E H \perp B D$ if and only if $B D$ bisects $A E$. + +Problem 13. Let $A B C D E F$ be a convex hexagon in which $A B=A F, B C=C D, D E=E F$ and $\angle A B C=$ $\angle E F A=90^{\circ}$. Prove that $A D \perp C E$. + +Problem 14. Let $A B C$ be a triangle with $\angle A B C=90^{\circ}$, and let $H$ be the foot of the altitude from $B$. The points $M$ and $N$ are the midpoints of the segments $A H$ and $C H$, respectively. Let $P$ and $Q$ be the second points of intersection of the circumcircle of the triangle $A B C$ with the lines $B M$ and $B N$, respectively. The segments $A Q$ and $C P$ intersect at the point $R$. Prove that the line $B R$ passes through the midpoint of the segment $M N$. + +Problem 15. Let $n \geq 4$, and consider a (not necessarily convex) polygon $P_{1} P_{2} \ldots P_{n}$ in the plane. Suppose that, for each $P_{k}$, there is a unique vertex $Q_{k} \neq P_{k}$ among $P_{1}, \ldots, P_{n}$ that lies closest to it. The polygon is then said to be hostile if $Q_{k} \neq P_{k \pm 1}$ for all $k$ (where $P_{0}=P_{n}, P_{n+1}=P_{1}$ ). +(a) Prove that no hostile polygon is convex. +(b) Find all $n \geq 4$ for which there exists a hostile $n$-gon. + +Problem 16. For a positive integer $N$, let $f(N)$ be the number of ordered pairs of positive integers $(a, b)$ such that the number + +$$ +\frac{a b}{a+b} +$$ + +is a divisor of $N$. Prove that $f(N)$ is always a perfect square. +Problem 17. Let $p$ be an odd prime. Show that for every integer $c$, there exists an integer $a$ such that + +$$ +a^{\frac{p+1}{2}}+(a+c)^{\frac{p+1}{2}} \equiv c \quad(\bmod p) . +$$ + +Problem 18. Let $a, b$, and $c$ be odd positive integers such that $a$ is not a perfect square and + +$$ +a^{2}+a+1=3\left(b^{2}+b+1\right)\left(c^{2}+c+1\right) \text {. } +$$ + +Prove that at least one of the numbers $b^{2}+b+1$ and $c^{2}+c+1$ is composite. +Problem 19. Prove that the equation $7^{x}=1+y^{2}+z^{2}$ has no solutions over positive integers. +Problem 20. Let us consider a polynomial $P(x)$ with integer coefficients satisfying + +$$ +P(-1)=-4, \quad P(-3)=-40, \quad \text { and } \quad P(-5)=-156 . +$$ + +What is the largest possible number of integers $x$ satisfying + +$$ +P(P(x))=x^{2} ? +$$ + diff --git a/BalticWay/md/en-bw20sol.md b/BalticWay/md/en-bw20sol.md new file mode 100644 index 0000000000000000000000000000000000000000..4d954103e09fa933db0c0384e0c8e58a5be24f98 --- /dev/null +++ b/BalticWay/md/en-bw20sol.md @@ -0,0 +1,770 @@ +# Baltic Way 2020 + +## Official solutions + +Problem 1. Let $a_{0}>0$ be a real number, and let + +$$ +a_{n}=\frac{a_{n-1}}{\sqrt{1+2020 \cdot a_{n-1}^{2}}}, \quad \text { for } n=1,2, \ldots, 2020 +$$ + +Show that $a_{2020}<\frac{1}{2020}$. + +Solution. + +Let $b_{n}=\frac{1}{a_{n}^{2}}$. Then $b_{0}=\frac{1}{a_{0}^{2}}$ and + +$$ +b_{n}=\frac{1+2020 \cdot a_{n-1}^{2}}{a_{n-1}^{2}}=b_{n-1}\left(1+2020 \cdot \frac{1}{b_{n-1}}\right)=b_{n-1}+2020 . +$$ + +Hence $b_{2020}=b_{0}+2020^{2}=\frac{1}{a_{0}^{2}}+2020^{2}$ and $a_{2020}^{2}=\frac{1}{\frac{1}{a_{0}^{2}}+2020^{2}}<\frac{1}{2020^{2}}$ which shows that $a_{2020}<\frac{1}{2020}$. + +Problem 2. Let $a, b, c$ be positive real numbers such that $a b c=1$. Prove that + +$$ +\frac{1}{a \sqrt{c^{2}+1}}+\frac{1}{b \sqrt{a^{2}+1}}+\frac{1}{c \sqrt{b^{2}+1}}>2 . +$$ + +Solution. + +Denote $a=\frac{x}{y}, b=\frac{y}{z}, c=\frac{z}{x}$. Then + +$$ +\frac{1}{a \sqrt{c^{2}+1}}=\frac{1}{\frac{x}{y} \sqrt{\frac{z^{2}}{x^{2}}+1}}=\frac{y}{\sqrt{z^{2}+x^{2}}} \geqslant \frac{2 y^{2}}{x^{2}+y^{2}+z^{2}} +$$ + +where the last inequality follows from the AM-GM inequality + +$$ +y \sqrt{x^{2}+z^{2}} \leqslant \frac{y^{2}+\left(x^{2}+z^{2}\right)}{2} . +$$ + +If we do the same estimation also for the two other terms of the original inequality then we get + +$$ +\frac{1}{a \sqrt{c^{2}+1}}+\frac{1}{b \sqrt{a^{2}}+1}+\frac{1}{c \sqrt{b^{2}+1}} \geqslant \frac{2 y^{2}}{x^{2}+y^{2}+z^{2}}+\frac{2 z^{2}}{x^{2}+y^{2}+z^{2}}+\frac{2 x^{2}}{x^{2}+y^{2}+z^{2}}=2 . +$$ + +Equality holds only if $y^{2}=x^{2}+z^{2}, z^{2}=x^{2}+y^{2}$ and $x^{2}=y^{2}+z^{2}$ what is impossible. + +Problem 3. A real sequence $\left(a_{n}\right)_{n=0}^{\infty}$ is defined recursively by $a_{0}=2$ and the recursion formula + +$$ +a_{n}= \begin{cases}a_{n-1}^{2} & \text { if } a_{n-1}<\sqrt{3} \\ \frac{a_{n-1}^{2}}{3} & \text { if } a_{n-1} \geqslant \sqrt{3}\end{cases} +$$ + +Another real sequence $\left(b_{n}\right)_{n=1}^{\infty}$ is defined in terms of the first by the formula + +$$ +b_{n}= \begin{cases}0 & \text { if } a_{n-1}<\sqrt{3} \\ \frac{1}{2^{n}} & \text { if } a_{n-1} \geqslant \sqrt{3}\end{cases} +$$ + +valid for each $n \geqslant 1$. Prove that + +$$ +b_{1}+b_{2}+\cdots+b_{2020}<\frac{2}{3} +$$ + +Solution. + +The first step is to prove, using induction, the formula + +$$ +a_{n}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n}\right)}} . +$$ + +The base case $n=0$ is trivial. Assume the formula is valid for $a_{n-1}$, that is, + +$$ +a_{n-1}=\frac{2^{2^{n-1}}}{3^{2^{n-1}\left(b_{1}+b_{2}+\cdots+b_{n-1}\right)}} . +$$ + +If now $a_{n-1}<\sqrt{3}$, then $b_{n}=0$, and so + +$$ +a_{n}=a_{n-1}^{2}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n-1}\right)}}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n-1}+b_{n}\right)}} +$$ + +whereas if $a_{n-1} \geqslant \sqrt{3}$, then $b_{n}=\frac{1}{2^{n}}$, and so + +$$ +a_{n}=\frac{a_{n-1}^{2}}{3}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n-1}\right)+1}}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n-1}+b_{n}\right)}} . +$$ + +This completes the induction. + +Next, we inductively establish the inequality $a_{n} \geqslant 1$. The base case $n=0$ is again trivial. Suppose $a_{n-1} \geqslant 1$. If $a_{n-1}<\sqrt{3}$, then + +$$ +a_{n}=a_{n-1}^{2} \geqslant 1^{2}=1, +$$ + +whereas if $a_{n-1} \geqslant \sqrt{3}$, then + +$$ +a_{n}=\frac{a_{n-1}^{2}}{3} \geqslant \frac{(\sqrt{3})^{2}}{3}=1 +$$ + +and the induction is complete. + +From + +$$ +1 \leqslant a_{n}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n}\right)}}=\left(\frac{2}{3^{b_{1}+b_{2}+\cdots+b_{n}}}\right)^{2^{n}}, +$$ + +we may then draw the conclusion + +$$ +3^{b_{1}+b_{2}+\cdots+b_{n}} \leqslant 2 . +$$ + +Since $3^{2 / 3}>2$ (and the function $x \mapsto 3^{x}$ is strictly increasing), we must have + +$$ +b_{1}+b_{2}+\cdots+b_{n}<\frac{2}{3} +$$ + +for all $n$, and we are finished. + +Remark. Using only slightly more work, it may be proved that + +$$ +1 \leqslant a_{n}=\frac{2^{2^{n}}}{3^{2^{n}\left(b_{1}+b_{2}+\cdots+b_{n}\right)}}<3 +$$ + +which entails + +$$ +1^{\frac{1}{2^{n}}} \leqslant \frac{2}{3^{b_{1}+b_{2}+\cdots+b_{n}}}<3^{\frac{1}{2^{n}}} +$$ + +for all $n$, hence + +$$ +3^{b_{1}+b_{2}+\cdots}=2 \text {. } +$$ + +The problem thus provides an algorithm for calculating + +$$ +b_{1}+b_{2}+\cdots=\log _{3} 2 \approx 0.63 +$$ + +in binary. + +Problem 4. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ so that + +$$ +f(f(x)+x+y)=f(x+y)+y f(y) +$$ + +for all real numbers $x, y$. + +Solution 1. + +Answer: $f(x)=0$ for all $x$. + +We first notice that if there exists a number $\alpha$ so that $f(\alpha)=0$, then $f(\alpha+y)=$ $f(f(\alpha)+\alpha+y)=f(\alpha+y)+y f(y)$ for all real $y$. Hence $y f(y)=0$ for all $y$, meaning that $f(y)=0$ for all $y \neq 0$. We are therefore done if we can show that $f(0)=0$, as then $f(x)=0$ for all $x$, which is a solution. + +Substituting $y=0$ in the equation yields that: + +$$ +f(f(x)+x)=f(x) \quad \forall x +$$ + +Substituting $y=f(x)$ in the equation yields that: + +$$ +f(f(x)+x+f(x))=f(x+f(x))+f(x) f(f(x)) +$$ + +Let $z=x+f(x)$. Then: + +$$ +\begin{aligned} +f(x) & =f(x+f(x))=f(z)=f(f(z)+z) \\ +& =f(f(x+f(x))+x+f(x)) \\ +& =f(f(x)+x+f(x)) \\ +& =f(x+f(x))+f(x) f(f(x)) \\ +& =f(x)+f(x) f(f(x)) +\end{aligned} +$$ + +Hence $f(x) f(f(x))=0$ for all $x$. Letting $x=0$ in (1), we get that $f(f(0))=f(0)$, which means that $f(0)^{2}=f(0) f(f(0))=0$. But then we must have $f(0)=0$. + +## Solution 2. + +Substitute $x=0$ and $y=-1$. We obtain $f(f(0)-1)=f(-1)+(-1) \cdot f(-1)=0$. + +Substitute $x=f(0)-1$. Then $f(x)=0$ and therefore $f(f(x)+x+y)$ and $f(x+y)$ cancel out. We obtain $0=y f(y)$ for all $y$. It follows that if $y \neq 0$ then $f(y)=0$. + +Now, substitute $x=y=0$. We obtain $f(f(0))=f(0)$. Substituting $y=f(0)$ to $0=y f(y)$ yields $f(0) f(f(0))=0$, which means $f(0)^{2}=0$, and finally $f(0)=0$. + +Therefore $f(x)=0$ for all $x$, which clearly satisfies the equation. + +Problem 5. Find all real numbers $x, y, z$ so that + +$$ +\begin{aligned} +x^{2} y+y^{2} z+z^{2} & =0 \\ +z^{3}+z^{2} y+z y^{3}+x^{2} y & =\frac{1}{4}\left(x^{4}+y^{4}\right) +\end{aligned} +$$ + +Solution. + +Answer: $x=y=z=0$. + +$y=0 \Longrightarrow z^{2}=0 \Longrightarrow z=0 \Longrightarrow \frac{1}{4} x^{4}=0 \Longrightarrow x=0 . x=y=z=0$ is a solution, so assume that $y \neq 0$. Then $z=0 \Longrightarrow x^{2} y=0 \Longrightarrow x=0 \Longrightarrow \frac{1}{4} y^{4}=0$, which is a contradiction. Hence $z \neq 0$. Now we solve the quadratic (first) equation w.r.t. $x, y$, and $z$. + +$$ +\begin{aligned} +& x= \pm \frac{\sqrt{-4 y^{3} z-4 y z^{2}}}{2 y} \\ +& y=\frac{-x^{2} \pm \sqrt{x^{4}-4 z^{3}}}{2 z} \\ +& z=\frac{-y^{2} \pm \sqrt{y^{4}-4 x^{2} y}}{2} +\end{aligned} +$$ + +The discriminants must be non-negative. + +$$ +\begin{gathered} +-4 y^{3} z-4 y z^{2} \geqslant 0 \\ +x^{4}-4 z^{3} \geqslant 0 \\ +y^{4}-4 x^{2} y \geqslant 0 +\end{gathered} +$$ + +Adding the inequalities we get + +$$ +\begin{gathered} +y^{4}-4 x^{2} y+x^{4}-4 z^{3}-4 y^{3} z-4 y z^{2} \geqslant 0 \\ +\frac{1}{4}\left(x^{4}+y^{4}\right) \geqslant z^{3}+z^{2} y+z y^{3}+x^{2} y +\end{gathered} +$$ + +But equation 2 says that $\frac{1}{4}\left(x^{4}+y^{4}\right)=z^{3}+z^{2} y+z y^{3}+x^{2} y$. This is only possible if all of the inequalities are in fact equalities, so we have + +$$ +\begin{gathered} +-4 y^{3} z-4 y z^{2}=0 \\ +x^{4}-4 z^{3}=0 \\ +y^{4}-4 x^{2} y=0 +\end{gathered} +$$ + +This means that $x= \pm \frac{\sqrt{0}}{2 y}=0 \Longrightarrow y=\frac{-0^{2} \pm \sqrt{0}}{2 z}=0$, which is a contradiction. Hence the only solution is $x=y=z=0$. + +Problem 6. Let $n>2$ be a given positive integer. There are $n$ guests at Georg's bachelor party and each guest is friends with at least one other guest. Georg organizes a party game among the guests. Each guest receives a jug of water such that there are no two guests with the same amount of water in their jugs. All guests now proceed simultaneously as follows. Every guest takes one cup for each of his friends at the party and distributes all the water from his jug evenly in the cups. He then passes a cup to each of his friends. Each guest having received a cup of water from each of his friends pours the water he has received into his jug. What is the smallest possible number of guests that do not have the same amount of water as they started with? + +Solution. + +Answer: 2 . + +If there are guests $1,2, \ldots, n$ and guest $i$ is friends with guest $i-1$ and $i+1$ modulo $n$ (e.g. guest 1 and guest $n$ are friends). Then if guest $i$ has $i$ amount of water in their jug at the start of the game, then only guest 1 and $n$ end up with a different amount of water than they started with. + +To show that there always will be at least two guests with a different amount of water at the end of the game than they started with, let $x_{i}$ and $d_{i}$ be the amount of water and number of friends, respectively, that guest $i$ has. Define $z_{v}=x_{v} / d_{v}$ and assume without loss of generality that the friendship graph of the party is connected. Since every friend has at least one friend, there must exist two guests $a$ and $b$ at the party with the same number of friends by the pigeonhole principle. They must satisfy $z_{a} \neq z_{b}$. Thus, the sets + +$$ +S=\left\{c \mid z_{c}=\min _{d} z_{d}\right\} \text { and } T=\left\{c \mid z_{c}=\max _{d} z_{d}\right\} +$$ + +are non-empty and disjoint. Since we assumed the friendship graph to be connected, there exists a guest $c \in S$ that has a friend $d$ not in $S$. Let $F$ be the friends of $c$ at the party. Then the amount of water in $c$ 's cup at the end of the game is + +$$ +\sum_{f \in F} z_{f} \geqslant z_{d}+\left(d_{c}-1\right) z_{c}>d_{c} \cdot z_{c}=x_{c} +$$ + +Thus, $c$ ends up with a different amount of water at the end of the game. Similarly, there is a guest in $T$ that ends up with a different amount of water at the end of the game than what they started with. + +Problem 7. A mason has bricks with dimensions $2 \times 5 \times 8$ and other bricks with dimensions $2 \times 3 \times 7$. She also has a box with dimensions $10 \times 11 \times 14$. The bricks and the box are all rectangular parallelepipeds. The mason wants to pack bricks into the box filling its entire volume and with no bricks sticking out. Find all possible values of the total number of bricks that she can pack. + +Solution. + +Answer: 24. + +Let the number of $2 \times 5 \times 8$ bricks in the box be $x$, and the number of $2 \times 3 \times 7$ bricks $y$. We must figure out the sum $x+y$. The volume of the box is divisible by 7 , and so is the volume of any $2 \times 3 \times 7$ brick. The volume of a $2 \times 5 \times 8$ brick is not divisible by 7 , which means that $x$ must be divisible by 7 . + +The volume of the box is $10 \cdot 11 \cdot 14$. The volume of the $2 \times 5 \times 8$ bricks in the box is $x \cdot 2 \cdot 5 \cdot 8=80 x$. Since this volume cannot exceed the volume of the box, we must have + +$$ +x \leqslant \frac{10 \cdot 11 \cdot 14}{80}=\frac{11 \cdot 7}{4}=\frac{77}{4}<20 . +$$ + +Since $x$ was divisible by 7 , and certainly nonnegative, we conclude that $x$ must be 0,7 or 14 . Let us explore each of these possibilities separately. + +If we had $x=0$, then the volume of the $2 \times 3 \times 7$ bricks, which is $y \cdot 2 \cdot 3 \cdot 7$, would be equal to the volume of the box, which is $10 \cdot 11 \cdot 14$. However, this is not possible since the volume of the $2 \times 3 \times 7$ bricks is divisible by three whereas the volume of the box is not. Thus $x$ must be 7 or 14 . + +If we had $x=7$, then equating the total volume of the bricks with the volume of the box would give + +$$ +7 \cdot 2 \cdot 5 \cdot 8+y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14 +$$ + +so that + +$$ +y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14-7 \cdot 2 \cdot 5 \cdot 8=1540-560=980 . +$$ + +However, again the left-hand side, the volume of the $2 \times 3 \times 7$ bricks, is divisible by three, whereas the right-hand side, 980, is not. Thus we cannot have have $x=7$ either, and the only possibility is $x=14$. + +Since $x=14$, equating the volumes of the bricks and the box gives + +$$ +14 \cdot 2 \cdot 5 \cdot 8+y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14 +$$ + +which in turn leads to + +$$ +y \cdot 2 \cdot 3 \cdot 7=10 \cdot 11 \cdot 14-14 \cdot 2 \cdot 5 \cdot 8=1540-1120=420 +$$ + +so that + +$$ +y=\frac{420}{2 \cdot 3 \cdot 7}=\frac{420}{42}=10 +$$ + +Thus the number of bricks in the box can only be $14+10=24$. Finally, for completeness, let us observe that 14 bricks with dimensions $2 \times 5 \times 8$ can be used to fill a volume with dimensions $10 \times 8 \times 14$, and 10 bricks with dimensions $2 \times 3 \times 7$ can be used to fill a volume with dimensions $10 \times 3 \times 14$, so that these 24 bricks can indeed be packed in the box. + +Problem 8. Let $n$ be a given positive integer. A restaurant offers a choice of $n$ starters, $n$ main dishes, $n$ desserts and $n$ wines. A merry company dines at the restaurant, with each guest choosing a starter, a main dish, a dessert and a wine. No two people place exactly the same order. It turns out that there is no collection of $n$ guests such that their orders coincide in three of these aspects, but in the fourth one they all differ. (For example, there are no $n$ people that order exactly the same three courses of food, but $n$ different wines.) What is the maximal number of guests? + +## Solution. + +Answer: The maximal number of guests is $n^{4}-n^{3}$. + +The possible menus are represented by quadruples + +$$ +(a, b, c, d), \quad 1 \leqslant a, b, c, d \leqslant n . +$$ + +Let us count those menus satisfying + +$$ +a+b+c+d \not \equiv 0 \quad(\bmod n) +$$ + +The numbers $a, b, c$ may be chosen arbitrarily ( $n$ choices for each), and then $d$ is required to satisfy only $d \not \equiv-a-b-c$. Hence there are + +$$ +n^{3}(n-1)=n^{4}-n^{3} +$$ + +such menus. + +If there are $n^{4}-n^{3}$ guests, and they have chosen precisely the $n^{4}-n^{3}$ menus satisfying $a+b+c+d \not \equiv 0(\bmod n)$, we claim that the condition of the problem is fulfilled. So suppose there is a collection of $n$ people whose orders coincide in three aspects, but differ in the fourth. With no loss of generality, we may assume they have ordered exactly the same food, but $n$ different wines. This means they all have the same value of $a, b$ and $c$, but their values of $d$ are distinct. A contradiction arises since, given $a, b$ and $c$, there are only $n-1$ values available for $d$. + +We now show that for $n^{4}-n^{3}+1$ guests (or more), it is impossible to obtain the situation stipulated in the problem. The $n^{3}$ sets + +$$ +M_{a, b, c}=\{(a, b, c, d) \mid 1 \leqslant d \leqslant n\}, \quad 1 \leqslant a, b, c \leqslant n +$$ + +form a partition of the set of possible menus, totalling $n^{4}$. When the number of guests is at least $n^{4}-n^{3}+1$, there are at most $n^{3}-1$ unselected menus. Therefore, there exists a set $M_{a, b, c}$ which contains no unselected menus. That is, all the $n$ menus in $M_{a, b, c}$ have been selected, and the condition of the problem is violated. + +Problem 9. Each vertex $v$ and each edge $e$ of a graph $G$ are assigned numbers $f(v) \in\{1,2\}$ and $f(e) \in\{1,2,3\}$, respectively. Let $S(v)$ be the sum of numbers assigned to the edges incident to $v$ plus the number $f(v)$. We say that an assignment $f$ is cool if $S(u) \neq S(v)$ for every pair $(u, v)$ of adjacent (i.e. connected by an edge) vertices in $G$. Prove that for every graph there exists a cool assignment. + +## Solution. + +Let $v_{1}, v_{2}, \ldots, v_{n}$ be any ordering of the vertices of $G$. Initially each vertex assigned number 1 , and each edge assigned number 2. One may imagine that there is a chip lying on each vertex, while two chips are lying on each edge. We are going to refine this assignment so as to get a cool one by performing the following greedy procedure. To explain what we do in the $i$ th step, denote by $x_{1}, x_{2}, \ldots, x_{k}$ denote all neighbours of $v_{i}$ with lower index, and let $e_{j}=v_{i} x_{j}$, with $j=1,2, \ldots, k$, denote the corresponding backward edges. For each edge $e_{j}$ we have two possibilities: + +(a) if there is only one chip on $x_{j}$, then we may move one chip from $e_{j}$ to $x_{j}$ or do nothing; + +(b) if there are two chips on $x_{j}$ we may move one chip from $x_{j}$ to $e_{j}$ or do nothing. + +Notice that none of the sums $S\left(x_{j}\right)$ may change as a result of such action. Also, any action on each edge may change the total sum for $v_{i}$ just by one. Hence there are $k+1$ possible values for $S\left(v_{i}\right)$. So, at least one combination of chips gives a sum which is different from each of $S\left(x_{j}\right)$. We fix this combination and go to the next step. + +To see that this algorithm ends in a desired configuration, note the following: + +- by the definition of the steps, no vertex value ever leaves the set $\{1,2\}$; +- each edge $v_{m} v_{i}$ with $m1024=2^{10}$, meaning that $\frac{\pi}{2020^{2}}>\frac{2^{2}}{2^{20}}=\frac{1}{2^{18}}$. + +Comment. In fact, it also holds for $N=20$, but this requires some more estimation work to show by hand. Also, there is a winning strategy for $N=22$, where the square is dissected into right isosceles triangles of successively smaller sizes. This can evidently always be done exactly by choosing $P_{k}$ outside the square. It also seems possible to do this for $P_{k}$ restricted to the interior of the square, but is harder to write up precisely. + +Problem 11. Let $A B C$ be a triangle with $A B>A C$. The internal angle bisector of $\angle B A C$ intersects the side $B C$ at $D$. The circles with diameters $B D$ and $C D$ intersect the circumcircle of $\triangle A B C$ a second time at $P \neq B$ and $Q \neq C$, respectively. The lines $P Q$ and $B C$ intersect at $X$. Prove that $A X$ is tangent to the circumcircle of $\triangle A B C$. + +## Solution 1. + +The key observation is that the circumcircle of $\triangle D P Q$ is tangent to $B C$. This can be proved by angle chasing: + +$$ +\begin{aligned} +\measuredangle B D P & =90^{\circ}-\measuredangle P B D=90^{\circ}-\measuredangle P B C=90^{\circ}-\left(180^{\circ}-\measuredangle C Q P\right) \\ +& =\measuredangle C Q P-90^{\circ}=\measuredangle D Q P . +\end{aligned} +$$ + +Now let the tangent to the circumcircle of $\triangle A B C$ at $A$ intersect $B C$ at $Y$. It is well-known (and easy to show) that $Y A=Y D$. This implies that $Y$ lies on the radical axis of the circumcircles of $\triangle A B C$ and $\triangle P D Q$, which is the line $P Q$. Thus $Y \equiv X$, and the claim follows. + +Solution 2. + +Apply an inversion with center $D$. Let $A^{\prime}$ denote the image of point $A$, etc. Then $\measuredangle C^{\prime} B^{\prime} A^{\prime}=$ $\measuredangle D B^{\prime} A^{\prime}=\measuredangle B A D=\measuredangle D A C=\measuredangle A^{\prime} C^{\prime} D=\measuredangle A^{\prime} C^{\prime} B^{\prime}$, which means that the triangle $\triangle A^{\prime} B^{\prime} C^{\prime}$ is isosceles at $A^{\prime}$. The images of the circles with diameters $B D$ and $C D$ are the lines perpendicular to $B^{\prime} C^{\prime}$ through $B^{\prime}$ and $C^{\prime}$, respectively, and $P^{\prime}, Q^{\prime}$ are the second intersections of these lines with the circumcircle of $\triangle A^{\prime} B^{\prime} C^{\prime}$. + +Now let $\rho$ denote the reflection with respect to the perpendicular bisector of $B^{\prime} C^{\prime}$. By symmetry, $\rho$ maps the circumcircle of $\triangle A^{\prime} B^{\prime} C^{\prime}$ to itself and swaps $B^{\prime}, C^{\prime}$, thus it follows that $\rho$ swaps $P^{\prime}$ and $Q^{\prime}$. The point $X^{\prime}$ is the second intersection of the circumcircle of $\triangle D P^{\prime} Q^{\prime}$ with $B^{\prime} C^{\prime}$. Since $\rho$ maps the line $B^{\prime} C^{\prime}$ to itself, this implies that $\rho$ swaps $D$ and $X^{\prime}$. By symmetry, this yields that the circumcircles of $\triangle A^{\prime} B^{\prime} C^{\prime}$ and $\triangle A^{\prime} D X^{\prime}$ are tangent at $A^{\prime}$, which is what we needed to show. + +## Solution 3. + +Define $Y$ as in the first solution. Since $Y D^{2}=Y A^{2}=Y B \cdot Y C$, it follows that the inversion with center $Y$ and radius $Y D$ swaps $B$ and $C$. Since inversion preserves angles, this implies that the circles with diameters $B D$ and $C D$ are mapped to each other. Moreover, the circumcircle of $\triangle A B C$ is mapped to itself. This implies that $P$ and $Q$ are swapped under the inversion, and therefore $P, Q, Y$ are collinear. + +Problem 12. Let $A B C$ be a triangle with circumcircle $\omega$. The internal angle bisectors of $\angle A B C$ and $\angle A C B$ intersect $\omega$ at $X \neq B$ and $Y \neq C$, respectively. Let $K$ be a point on $C X$ such that $\angle K A C=90^{\circ}$. Similarly, let $L$ be a point on $B Y$ such that $\angle L A B=90^{\circ}$. Let $S$ be the midpoint of $\operatorname{arc} C A B$ of $\omega$. Prove that $S K=S L$. + +Solution 1. + +W.l.o.g. let $A B3$ is a prime. Richard is the first one to choose. A number which has been chosen by one of the players cannot be chosen again by either of the players. Every number chosen by Richard is multiplied with the next number chosen by Kaarel. Kaarel wins the game if at any moment after his turn the sum of all of the products calculated so far is divisible by $p$. Richard wins if this does not happen, i.e. the players run out of numbers before any of the sums is divisible by $p$. Can either of the players guarantee their victory regardless of their opponent's moves and if so, which one? + +## Solution 1. + +Answer: Yes, Kaarel. + +Let us split the numbers in the set to the following pairs: $(1, p-1),(2, p-2), \ldots,\left(\frac{p-1}{2}, \frac{p+1}{2}\right)$. If Richard chooses some number $a$, then let Kaarel choose the other number from the pair i.e. $p-a$. This forces Richard to choose a number from a pair in which both of the numbers have not been chosen yet and hence Kaarel can make his desired move. The residues modulo $p$ of the products are of the form $-a^{2}$. The residue of the sum of all the products is congruent to $-\left(1^{2}+2^{2}+\ldots+\left(\frac{p-1}{2}\right)^{2}\right)$. For every natural number $n$, we have $1^{2}+2^{2}+\ldots+n^{2}=\frac{n(n+1)(2 n+1)}{6}$, therefore $1^{2}+2^{2}+\ldots+\left(\frac{p-1}{2}\right)^{2}=\frac{(p-1) p(p+1)}{24}$. This must be an integer and as $p$ and 24 are coprime, $\frac{(p-1) p(p+1)}{24}$ must be divisible by $p$. Therefore, when the last number is chosen from the set, the sum of the products is divisible by $p$. + +Solution 2. + +If Richard initially chooses some number $x$, then Kaarel chooses $p-x$ as above (distinct from $x$ as $p$ is odd). Since $p-1>2$, there are still numbers left, so the game continues. + +If next Richard chooses $y$ as his second number, then Kaarel wins by choosing the unique number $1 \leqslant a \leqslant p-1$ congruent to $x^{2} \cdot y^{-1}$ modulo $p$. In order for Kaarel's second move to be legal, we must confirm that $a$ is different from $x,-x$ and $y$ modulo $p$. + +If $a \equiv x(\bmod p)$, then $y \equiv x(\bmod p)$ contradicting Richards second move. If $a \equiv-x$ $(\bmod p)$, then $y \equiv-x(\bmod p)$ also contradicting Richards second move. Finally, if $a \equiv y$ $(\bmod p)$, then $x^{2} \equiv y^{2}(\bmod p)$ implying $y \equiv \pm x(\bmod p)$ with the same contradictions once more. + +We conclude that $a$ is distinct from the previous numbers, and $x \cdot(p-x)+y \cdot a \equiv 0(\bmod p)$, so Kaarel wins. + +Problem 17. For a prime number $p$ and a positive integer $n$, denote by $f(p, n)$ the largest integer $k$ such that $p^{k} \mid n$ !. Let $p$ be a given prime number and let $m$ and $c$ be given positive integers. Prove that there exist infinitely many positive integers $n$ such that $f(p, n) \equiv c$ $(\bmod m)$. + +Solution 1. + +We start by noting that + +$$ +f(p, n)=\left\lfloor\frac{n}{p}\right\rfloor+\left\lfloor\frac{n}{p^{2}}\right\rfloor+\left\lfloor\frac{n}{p^{3}}\right\rfloor+\ldots +$$ + +which is the well-known Legendre Formula. Now, if we choose + +$$ +n=p^{a_{1}}+p^{a_{2}}+\cdots+p^{a_{k}} +$$ + +for positive integers $a_{1}>a_{2}>\cdots>a_{k}$ to be determined, this formula immediately shows that + +$$ +\begin{aligned} +f(p, n) & =\left(p^{a_{1}-1}+p^{a_{1}-2}+\cdots+p+1\right)+\left(p^{a_{2}-1}+p^{a_{2}-2}+\cdots+p+1\right)+\ldots \\ +& =\frac{p^{a_{1}}-1}{p-1}+\frac{p^{a_{2}}-1}{p-1}+\ldots +\end{aligned} +$$ + +We thus consider the numbers $\left(p^{a}-1\right) /(p-1)$. If we can show that there is a residue class $C$ $(\bmod m)$ which is coprime to $m$ occuring infinitely often among these numbers, we will be done since we can choose $a_{1}, \ldots, a_{k}$ with $k C \equiv c(\bmod m)$ arbitrarily among these numbers. Now, how to find such a number $C$ ? + +To this end, write $m=p^{t} \cdot m^{\prime}$ with $p \nmid m^{\prime}$. Since $p^{a}$ is certainly periodic modulo $m^{\prime} \cdot(p-1)$, the sequence $\left(p^{a}-1\right) /(p-1)$ is periodic modulo $m^{\prime}$ with some period $d$ and hence for $a \equiv 1(\bmod d)$, the numbers are always $1\left(\bmod m^{\prime}\right)$. Moreover, for $a \geq t$, all the numbers are equal to $\left(p^{t}-1\right) /(p-1)$ modulo $p^{t}$ and hence by the Chinese Remainder Theorem, all the numbers $\left(p^{a}-1\right) /(p-1)$ for $a \geq t$ and $a \equiv 1(\bmod d)$ are in the same residue class $C$ $(\bmod m)$, with $C$ coprime to $m$, as desired. + +## Solution 2. + +We denote $v_{p}(n)$ for the largest power of $p$ dividing $n$. + +We start with a lemma. + +Lemma. For any prime $q$ and modulus $m^{\prime}$ not divisible by $q$, there exists infinitely many powers $q^{n}$ of $q$ such that $v_{p}\left(q^{n} !\right) \equiv 1\left(\bmod m^{\prime}\right)$. + +Proof. Define $a_{k}=v_{q}\left(q^{k} !\right)$. We then have $a_{k+1}=q a_{k}+1$. This sequence is eventually periodic modulo $m^{\prime}$. It must actually be periodic starting from 0 , as $a_{i} \equiv a_{i+T}\left(\bmod m^{\prime}\right)$ implies $q a_{i-1} \equiv q a_{i+T-1}\left(\bmod m^{\prime}\right)$ and therefore $a_{i-1} \equiv a_{i+T-1}\left(\bmod m^{\prime}\right)$, since $q \nmid m^{\prime}$. Thus, for infinitely many $n$ we have $a_{n} \equiv a_{1}=1\left(\bmod m^{\prime}\right)$. + +We now turn to solving the problem. Write $m=p^{t} m^{\prime}$, where $p \nmid m^{\prime}$. The sequence $v_{p}(p !), v_{p}\left(p^{2} !\right), v_{p}\left(p^{3} !\right), \ldots$ is eventually constant modulo $p^{t}$. Denote this constant by $C$. Since $p \nmid C$, by the Chinese remainder theorem there exists a positive integer $s$ such that $C s \equiv c$ $\left(\bmod p^{t}\right)$ and $s \equiv c\left(\bmod m^{\prime}\right)$. Now, choose + +$$ +n=p^{b_{1}}+p^{b_{2}}+\ldots+p^{b_{s}} +$$ + +where $b_{i}$ are distinct positive integers such that $v_{p}\left(p_{i}^{b} !\right) \equiv 1\left(\bmod m^{\prime}\right)($ possible by the lemma) and large enough such that $v_{p}\left(p_{i}^{b} !\right) \equiv C\left(\bmod p^{t}\right)$. We have + +$$ +v_{p}(n !)=v_{p}\left(p_{1}^{b} !\right)+\ldots+v_{p}\left(p^{b_{s}} !\right) \equiv C s \equiv c \quad\left(\bmod p^{t}\right) +$$ + +and + +$$ +v_{p}(n !)=v_{p}\left(p_{1}^{b} !\right)+\ldots+v_{p}\left(p^{b_{s}} !\right) \equiv s \equiv c \quad\left(\bmod m^{\prime}\right) +$$ + +which proves $v_{p}(n !) \equiv c(\bmod m)$. Since there are infinitely many of possible choices $n$, we are done. + +Comment. IMO shortlist 2007 N7 asks to prove that for given $d$ and primes $p_{1}, \ldots, p_{k}$ there exists infinitely many integers $n$ such that $d \mid v_{p_{i}}(n !)$ for all $i$. While the IMO shortlist problem is of similar flavor, it would seem that it is more difficult than the problem above, and the methods are a bit different. (There is no clear way to use prime powers in the IMO SL problem similarly to the solution above.) + +Comment. As a vast generalization of the problem above and the IMO shortlist problem, one could ask whether the following holds: For any modulus $m$ and distinct primes $p_{1}, \ldots, p_{k}$, the function + +$$ +n \rightarrow\left(v_{p_{1}}(n !) \quad(\bmod m), v_{p_{2}}(n !) \quad(\bmod m), \ldots, v_{p_{k}}(n !) \quad(\bmod m)\right) +$$ + +(viewed as a function $\mathbb{Z}_{+} \rightarrow\left(\mathbb{Z}_{m}\right)^{k}$ ) is equidistributed. The author of the problem believes this generalization to hold, but he has no proof. + +Problem 18. Let $n \geqslant 1$ be a positive integer. We say that an integer $k$ is a fan of $n$ if $0 \leqslant k \leqslant n-1$ and there exist integers $x, y, z \in \mathbb{Z}$ such that + +$$ +\begin{aligned} +x^{2}+y^{2}+z^{2} & \equiv 0 \quad(\bmod n) ; \\ +x y z & \equiv k \quad(\bmod n) . +\end{aligned} +$$ + +Let $f(n)$ be the number of fans of $n$. Determine $f(2020)$. + +Solution. + +Answer: $f(2020)=f(4) \cdot f(5) \cdot f(101)=1 \cdot 1 \cdot 101=101$. + +To prove our claim we show that $f$ is multiplicative, that is, $f(r s)=f(r) f(s)$ for coprime numbers $r, s \in \mathbb{N}$, and that + +(i) $f(4)=1$, + +(ii) $f(5)=1$, + +(iii) $f(101)=101$. + +The multiplicative property follows from the Chinese Remainder Theorem. + +(i) Integers $x, y$ and $z$ satisfy $x^{2}+y^{2}+z^{2} \equiv 0 \bmod 4$ if and only if they are all even. In this case $x y z \equiv 0 \bmod 4$. Hence 0 is the only fan of 4 . + +(ii) Integers $x, y$ and $z$ satisfy $x^{2}+y^{2}+z^{2} \equiv 0 \bmod 5$ if and only if at least one of them is divisible by 5 . In this case $x y z \equiv 0 \bmod 5$. Hence 5 is the only fan of 5 . + +(iii) We have $9^{2}+4^{2}+2^{2}=81+16+4=101$. Hence $(9 x)^{2}+(4 x)^{2}+(2 x)^{2}$ is divisible by 101 for every integer $x$. Hence the residue of $9 x \cdot 4 x \cdot 2 x=72 x^{3}$ upon division by 101 is a fan of 101 for every $x \in \mathbb{Z}$. If we substitute $x=t^{67}$, then $x^{3}=t^{201} \equiv t \bmod 101$. Since 72 is coprime to 101 , the number $72 x^{3} \equiv 72 t$ can take any residue modulo 101 . + +Note: In general for $p \not \equiv 1(\bmod 3)$, we have $f(p)=p$ as soon as we have at least one non-zero fan. + +Problem 19. Denote by $d(n)$ the number of positive divisors of a positive integer $n$. Prove that there are infinitely many positive integers $n$ such that $|\sqrt{3} \cdot d(n)|$ divides $n$. + +Solution 1. + +Note that $\lfloor\sqrt{3} \cdot 8\rfloor=13$. Therefore all numbers with 8 divisors that are divisible by 13 satisfy the condition. There are infinitely many of those, for example, all numbers in the form $13 p^{3}$, where $p$ is a prime different from 13 . + +## Solution 2. + +Based on the solution by the Finnish team: Instead of finding infinitely many solutions with $d(n)=2^{3}$, we prove that every power $2^{k}, k \geqslant 0$, has at least one solution with $d(n)=2^{k}$. + +Let $k \geqslant 0$ be given, and let $p_{1}, p_{2}, \ldots$ be the sequence of all prime numbers. We then write the prime factorization of $\left\lfloor 2^{k} \sqrt{3}\right\rfloor$ as + +$$ +\left\lfloor 2^{k} \sqrt{3}\right\rfloor=\prod_{i=1}^{\infty} p_{i}^{b_{i}} +$$ + +with $b_{i} \geqslant 0$ and only finitely many $b_{i}$ different from 0 . + +Since $\sqrt{3}<2$, we have + +$$ +2^{k+1}>\left\lfloor 2^{k} \sqrt{3}\right\rfloor=\prod_{i=1}^{\infty} p_{i}^{b_{i}} \geqslant \prod_{i=1}^{\infty} 2^{b_{i}}=2^{\sum_{i=1}^{\infty} b_{i}} +$$ + +and from this we conclude $\sum_{i=1}^{\infty} b_{i} \leqslant k$. We know that $m+1 \leqslant 2^{m}$ for any integer $m \geqslant 0$, and this brings us a further estimate + +$$ +\sum_{i=1}^{\infty}\left\lceil\log _{2}\left(b_{i}+1\right)\right\rceil \leqslant \sum_{i=1}^{\infty} b_{i} \leqslant k +$$ + +By increasing values if necessary, we can choose a sequence of non-negative integers $a_{1}, a_{2}, \ldots$ such that $a_{i} \geqslant\left\lceil\log _{2}\left(b_{i}+1\right)\right\rceil$ for all $i$, and $\sum_{i=1}^{\infty} a_{i}=k$. [Editor's note: In fact, unless $\sum_{i=1}^{\infty}\left\lceil\log _{2}\left(b_{i}+1\right)\right\rceil=k$ already, we have an infinite choice of such sequences - each leading to a distinct $n$ with the required properties.] We now define + +$$ +n=\prod_{i=1}^{\infty} p_{i}^{2^{a_{i}}-1} +$$ + +which is a valid product since all but finitely many $a_{i}$ are equal to zero. By construction we have $2^{a_{i}}-1 \geqslant b_{i}$ for all $i$, so $\left\lfloor 2^{k} \sqrt{3}\right\rfloor$ divides $n$. Finally, the number of divisors in $n$ can be calculated as + +$$ +d(n)=\prod_{i=1}^{\infty}\left(\left(2^{a_{i}}-1\right)+1\right)=\prod_{i=1}^{\infty} 2^{a_{i}}=2^{\sum_{i=1}^{\infty} a_{i}}=2^{k} +$$ + +so $n$ satisfies that $\lfloor d(n) \sqrt{3}\rfloor=\left\lfloor 2^{k} \sqrt{3}\right\rfloor$ divides $n$. + +Solution 3. + +Based on the solution by the Norwegian team: In this third solution, instead of letting $d(n)$ be a power of 2 , we prove that there a infinitely many solutions with $n=2^{k}$. + +Consider the sequence $a_{i}=\lfloor i \sqrt{3}\rfloor$ for $i \geqslant 1$. If $k \geqslant 3$, then $(k+1) \sqrt{3}<2(k+1) \leqslant 2^{k}$. Consequently, whenever $a_{k+1}=2^{m}$ and $k \geqslant 3$, we get + +$$ +\left\lfloor d\left(2^{k}\right) \sqrt{3}\right\rfloor=\lfloor(k+1) \sqrt{3}\rfloor=a_{k+1}=2^{m} \mid 2^{k} +$$ + +so $n=2^{k}$ satisfies the properties of the problem. It is therefore sufficient to prove that the integer sequence $a_{i}=\lfloor i \sqrt{3}\rfloor$ contains infinitely many powers of 2 . Since $\sqrt{3}>1$, the sequence is strictly increasing, and since $\sqrt{3}<2$, we have + +$$ +a_{i+1}-a_{i}=\lfloor(i+1) \sqrt{3}\rfloor-\lfloor i \sqrt{3}\rfloor<(i+1) \sqrt{3}-(i \sqrt{3}-1)=\sqrt{3}+1<3 . +$$ + +Hence the sequence jump by at most 2 at each step. + +Suppose for contradiction that the sequence constains only finitely many powers of two, say the largest is $2^{N}$. Then for every $m>N$ we can find a unique index $k$ such that $a_{k}=2^{m}-1$ and $a_{k+1}=2^{m}+1$. + +Define $d_{i}=i \sqrt{3}-a_{i}$ to be the fractional part for each $i$, so that $0 \leqslant d_{i}<1$. For $k$ as above we then have + +$$ +\begin{aligned} +k \sqrt{3}-\left(2^{m}-1\right) & =d_{k} \geqslant 0, \\ +(k+1) \sqrt{3}-\left(2^{m}+1\right) & =d_{k+1} \geqslant 0, \\ +\text { and thus }(2 k+1) \sqrt{3}-2^{m+1} & =d_{k}+d_{k+1} \geqslant 0 +\end{aligned} +$$ + +If $d_{k}+d_{k+1}<1$, we would have $a_{2 k+1}=2^{m+1}$ contrary to our assumptions, hence $1 \leqslant d_{k}+d_{k+1}<2$ and consequently $a_{2 k+1}=2^{m+1}+1$ and $a_{2 k}=2^{m+1}-1$. + +Since $a_{2 k}=2^{m+1}-1$, we have a recursive expression for $d_{2 k}$ as well: + +$$ +d_{2 k}=2 k \sqrt{3}-\left(2^{m+1}-1\right)=2\left(d_{k}+2^{m}-1\right)-\left(2^{m+1}-1\right)=2 d_{k}-1 . +$$ + +We can now repeat the process with $2 k$ and $2 k+1$ in place of $k$ and $k+1$ in order to prove the following statements by induction for all $j \geqslant 0$ : + +- $a_{2^{j} k}=2^{m+j}-1$ and $a_{2^{j} k+1}=2^{m+j}+1$ +- $d_{2^{j} k}=2^{j} d_{k}-\left(2^{j}-1\right)=2^{j}\left(d_{k}-1\right)+1$ + +Finally, since $d_{k}-1<0$, the second property implies that $d_{2 j k}$ tends to $-\infty$ as $j$ tends to $\infty$. This clearly contradicts that $d_{2^{j} k} \geqslant 0$ for all $k$ and $j$, hence we conclude that the sequence $a_{i}$ contains infinitely many powers of 2 as required. + +Problem 20. Let $A$ and $B$ be sets of positive integers with $|A| \geq 2$ and $|B| \geq 2$. Let $S$ be a set consisting of $|A|+|B|-1$ numbers of the form $a b$ where $a \in A$ and $b \in B$. Prove that there exist pairwise distinct $x, y, z \in S$ such that $x$ is a divisor of $y z$. + +Solution 1. + +We use induction on $k=|A|+|B|-1$. + +For $k=3$ we have $|A|=|B|=2$. Let $A=\{x, y\}, B=\{z, t\}$. Then $S$ consists of three numbers from the set $\{x z, y z, x t, y t\}$. Relabelling the elements of $A$ and $B$ if necessary, we can assume without loss of generality that the missing number is $y t$. Then $x z, x t, y z \in S$ and $x z \mid x t \cdot y z$ which concludes the base case of induction. + +For the inductive step, suppose the thesis holds for some $k-1 \geq 3$. Since $k=|A|+|B|-1 \geq$ 4, we have that $\max (|A|,|B|) \geq 3$, WLOG assume $|B| \geq 3$. Since the set $S$ consists of $k=|A|+|B|-1>|A|$ elements, by pigeonhole principle there exists a number $x \in A$ which appears as the first of the two factors of at least two elements of $S$. So, there exist $y, z \in B$ with $x y, x z \in S$. If there exists $t \in A \backslash\{x\}$ such that $t y \in S$ and $t y \neq x z$, then we are done because $x y \mid x z \cdot t y$. If there exists no such $t$ then apply the inductive hypothesis to the sets $A$, $B \backslash\{y\}$ and $S \backslash\{x y\}$ - note here that every element of $S \backslash\{x y\}$ still has the form $a b$ for $a \in A$ and $b \in B \backslash\{y\}$. + +Solution 2. + +Based on the solution by the Latvian team: We construct a bipartite graph $G$ where the elements of $A$ form one class of vertices, and the elements of $B$ form the other class of vertices. For each element $s \in S$ write $s=a b$ with $a \in A$ and $b \in B$ then put a single edge between $a$ and $b$ in $G$ (if $s$ decomposes as $a b$ in multiple ways, only place an edge for one of these decompositions). Now suppose $G$ has a path of length 3, i.e. + +![](https://cdn.mathpix.com/cropped/2024_04_17_1f79a54e4415f3c7d303g-17.jpg?height=135&width=930&top_left_y=1857&top_left_x=563) + +then $x \mid y z$ and since each element of $S$ only labels one edge, $x, y$ and $z$ are distinct. It is thus sufficient to show that if $|A|,|B| \geqslant 2$ and $|S|=|A|+|B|-1$, then $G$ has a path of length 3 . We shall prove the contrapositive statement: If $|S|=|A|+|B|-1$ and $G$ has no path of length 3 , then $|A|=1$ or $|B|=1$. + +Suppose $G$ is bipartite and has no path of length 3, then in particular $G$ has no cycles, so $G$ is a forest (a collection of trees). The number of trees in a forest can be calculated as + +$$ +\# \text { vertices }-\# \text { edges }=(|A|+|B|)-(|A|+|B|-1)=1 +$$ + +hence $G$ is a single tree. If $G$ is a tree and has not path of length 3, then $G$ has to be a star graph. A bipartite star graph necessarily has the central vertex in one class and all the leaves in the other class, hence either $|A|=1$ or $|B|=1$ as required. + diff --git a/BalticWay/md/en-bw21sol.md b/BalticWay/md/en-bw21sol.md new file mode 100644 index 0000000000000000000000000000000000000000..fea9f7d241df5dc59f39a24aa9654d0018bec9a3 --- /dev/null +++ b/BalticWay/md/en-bw21sol.md @@ -0,0 +1,805 @@ +# Baltic Way + +Problem 1. Let $n$ be a positive integer. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ that satisfy the equation + +$$ +(f(x))^{n} f(x+y)=(f(x))^{n+1}+x^{n} f(y) +$$ + +for all $x, y \in \mathbb{R}$. + +Solution. The functions we are looking for are $f: \mathbb{R} \rightarrow \mathbb{R}, f(x)=0$ and $f: \mathbb{R} \rightarrow \mathbb{R}, f(x)=x$. For $n$ even $f: \mathbb{R} \rightarrow \mathbb{R}, f(x)=-x$ is also a solution. + +Throughout the solution, $P\left(x_{0}, y_{0}\right)$ will denote the substitution of $x_{0}$ and $y_{0}$ for $x$ and $y$, respectively, in the given equation. + +$P(x, 0)$ for $x \neq 0$ gives + +$$ +f(x)^{n+1}=f(x)^{n+1}+x^{n} f(0) +$$ + +and therefore + +$$ +f(0)=\frac{f(x)^{n+1}-f(x)^{n+1}}{x^{n}}=0 . +$$ + +$P(x,-x)$ for $x \neq 0$ gives + +$$ +0=f(x)^{n} f(0)=f(x)^{n+1}+x^{n} f(-x) +$$ + +and therefore + +$$ +f(-x)=-\frac{f(x)^{n+1}}{x^{n}} +$$ + +Applying this identity twice, we get + +$$ +f(x)=f(-(-x))=-\frac{f(-x)^{n+1}}{(-x)^{n}}=-\frac{\left(-\frac{f(x)^{n+1}}{x^{n}}\right)^{n+1}}{(-x)^{n}}=\frac{f(x)^{n^{2}+2 n+1}}{x^{n^{2}+2 n}} +$$ + +which after rearranging yields + +$$ +f(x)\left(x^{n^{2}+2 n}-f(x)^{n^{2}+2 n}\right)=0 . +$$ + +If there exists an $a \neq 0$ for which $f(a)=0$, then $P(a, y)$ yields + +$$ +0=a^{n} f(y) +$$ + +which means that $f(y)=0$ for all $y \in \mathbb{R}$. This is a solution to the equation for all $n$. + +If instead $f(x) \neq 0$ for all $x \neq 0$, then we have + +$$ +x^{n^{2}+2 n}=f(x)^{n^{2}+2 n} . +$$ + +If $n$ is odd, then so is $n(n+2)=\left(n^{2}+2 n\right)$, meaning $f(x)=x$ for all $x \in \mathbb{R}$. This is a solution to the equation. + +## Baltic Way + +If $n$ is even, then so is $n(n+2)=\left(n^{2}+2 n\right)$, meaning $f(x)= \pm x$ for all $x \in \mathbb{R}$. Both $f(x)=x$ and $f(x)=-x$ are solutions to the equation. In all other cases there must exist $x, y \neq 0$ such that $f(x)=x$ and $f(y)=-y$. Then $P(x, y)$ yields + +$$ +x^{n} f(x+y)=x^{n+1}-x^{n} y +$$ + +which after dividing by $x^{n} \neq 0$ yields + +$$ +f(x+y)=x-y . +$$ + +Since $(f(x))^{2}=x^{2}$ for all $x \in \mathbb{R}$, we have $(x+y)^{2}=(x-y)^{2}$. That is $4 x y=0$ which is impossible as $x, y \neq 0$. + +There are therefore no more solutions to the equation. + +Problem 2. Let $a, b, c$ be the side lengths of a triangle. Prove that + +$$ +\sqrt[3]{\left(a^{2}+b c\right)\left(b^{2}+c a\right)\left(c^{2}+a b\right)}>\frac{a^{2}+b^{2}+c^{2}}{2} . +$$ + +Solution. We claim that + +$$ +a^{2}+b c>\frac{a^{2}+b^{2}+c^{2}}{2} +$$ + +which will finish the proof. Note that the claimed inequality is equivalent to + +$$ +\begin{aligned} +a^{2}+b c>\frac{a^{2}+b^{2}+c^{2}}{2} & \Longleftrightarrow 2 a^{2}+2 b c>a^{2}+b^{2}+c^{2} \\ +& \Longleftrightarrow a^{2}>(b-c)^{2} \Longleftrightarrow a>|b-c|, +\end{aligned} +$$ + +which holds due to the assumption of $a, b, c$ being side lengths of a triangle. + +Problem 3. Determine all infinite sequences $\left(a_{1}, a_{2}, \ldots\right)$ of positive integers satisfying + +$$ +a_{n+1}^{2}=1+(n+2021) a_{n} +$$ + +for all $n \geq 1$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-03.jpg?height=183&width=365&top_left_y=134&top_left_x=180) + +BALTIC WAY + +REYKJAVÍK$\cdot$ 2021 + +## Baltic Way + +Reykjavík, November 11th - 15th +Solutions + +Solution. Clearly $\left(a_{n}\right)_{n=1}^{\infty}=(n+2019)_{n=1}^{\infty}$ is a solution. We claim that it is the only one. Assume $\left(a_{n}\right)_{n=1}^{\infty}$ is a solution. Let $\left(b_{n}\right)_{n=1}^{\infty}=\left(a_{n}-n\right)_{n=1}^{\infty}$. We claim: + +1) If $b_{n}<2019$, then $2019>b_{n+1}>b_{n}$. +2) If $b_{n}>2019$, then $2019x$ if $x>4$, so the pair $(x, f(x))$ cannot be a solution in this case either. + +Suppose that $(x, y) \in \mathbb{R}^{2}$ is a solution. According to the previous remark $x \in[0,4]$, and similarly, $y \in[0,4]$. Hence we may write $x=2+2 r$ and $y=2+2 s$ with $r, s \in[-1,1]$. After substitution and simplification, the equation $x=y(3-y)^{2}$ transforms into the equation $r=4 s^{3}-3 s$. Recall the trigonometric identities for threefold angles. If $s=\cos (\alpha)$ for some $\alpha \in \mathbb{R}$, then $r=4 \cos ^{3}(\alpha)-$ $3 \cos (\alpha)=\cos (3 \alpha)$. In the same way $s=4 r^{3}-3 r=\cos (9 \alpha)$. + +We can deduce that $9 \alpha=2 \pi m+\alpha$ or $9 \alpha=2 \pi l-\alpha$ for some integers $m$ and $l$. In the former case we have $8 \alpha=2 \pi m$, so that $m \in\{0,1,2,3,4\}$, and the corresponding possible pairs of solutions can be found in Figure 1. In the former case we have $10 \alpha=2 \pi l$, so that $l \in\{0,1,2,3,4,5\}$, where $l=0$ and $l=5$ result in angles that we have already considered in the first case. We consider the other options in Figure 2 taking into account the well-known identities $\cos (\pi / 5)=(1+\sqrt{5}) / 4$ and $\cos (3 \pi / 5)=(1-\sqrt{5}) / 4$. + +## Baltic Way + +Reykjavík, November 11th - 15th + +Solutions + +| $m$ | $8 \alpha$ | $\alpha$ | $r$ | $s$ | $x$ | $y$ | $x+y$ | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| 0 | 0 | 0 | 1 | 1 | 4 | 4 | 8 | +| 1 | $2 \pi$ | $\pi / 4$ | $\sqrt{2} / 2$ | $-\sqrt{2} / 2$ | $2+\sqrt{2}$ | $2-\sqrt{2}$ | 4 | +| 2 | $4 \pi$ | $\pi / 2$ | 0 | 0 | 2 | 2 | 4 | +| 3 | $6 \pi$ | $3 \pi / 4$ | $-\sqrt{2} / 2$ | $\sqrt{2} / 2$ | $2-\sqrt{2}$ | $2+\sqrt{2}$ | 4 | +| 4 | $8 \pi$ | $\pi$ | -1 | -1 | 0 | 0 | 0 | + +Figure 1: Pairs of solutions and their sums + +| $l$ | $10 \alpha$ | $\alpha$ | $r$ | $s$ | $x$ | $y$ | $x+y$ | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| 1 | $2 \pi$ | $\pi / 5$ | $(1+\sqrt{5}) / 4$ | $(1-\sqrt{5}) / 4$ | $(5+\sqrt{5}) / 2$ | $(5-\sqrt{5}) / 2$ | 5 | +| 2 | $4 \pi$ | $2 \pi / 5$ | $(-1+\sqrt{5}) / 4$ | $(-1-\sqrt{5}) / 4$ | $(3+\sqrt{5}) / 2$ | $(3-\sqrt{5}) / 2$ | 3 | +| 3 | $6 \pi$ | $3 \pi / 5$ | $(1-\sqrt{5}) / 4$ | $(1+\sqrt{5}) / 4$ | $(5-\sqrt{5}) / 2$ | $(5+\sqrt{5}) / 2$ | 5 | +| 4 | $8 \pi$ | $4 \pi / 5$ | $(-1-\sqrt{5}) / 4$ | $(-1+\sqrt{5}) / 4$ | $(3-\sqrt{5}) / 2$ | $(3+\sqrt{5}) / 2$ | 3 | + +Figure 2: Pairs of solutions and their sums + +Problem 6. Let $n$ be a positive integer and $t$ be a non-zero real number. Let $a_{1}, a_{2}, \ldots, a_{2 n-1}$ be real numbers (not necessarily distinct). Prove that there exist distinct indices $i_{1}, i_{2}, \ldots, i_{n}$ such that, for all $1 \leq k, l \leq n$, we have $a_{i_{k}}-a_{i_{l}} \neq t$. + +Solution. Let $G=(V, E)$ be a graph with vertex set $V=\{1,2, \ldots, 2 n-1\}$ and edge set $E=$ $\left\{\{i, j\}:\left|a_{i}-a_{j}\right|=t\right\}$. + +Note that $G$ has no odd cycles. Indeed, if $j_{1}, \ldots, j_{2 k+1}$ is a cycle, then for all $\ell=1,3,5, \ldots, 2 k-1$ the number $a_{j_{\ell}}$ differs from $a_{j_{\ell+2}}$ by $2 t$ or 0 . Hence $a_{j_{1}}$ differs from $a_{j_{2 k+1}}$ by an even multiple of $t$. Therefore there is no edge between $j_{1}$ and $j_{2 k+1}$ contradicting the assumption that $j_{1}, \ldots, j_{2 k+1}$ is a cycle. + +Since $G$ has no odd cycles, it is bipartite. Therefore $V$ can be split into two disjoint sets $V_{1}, V_{2}$ such that there is no edge between any two vertices of $V_{1}$ and there are no edges between any two vertices in $V_{2}$. Since $V$ has $2 n-1$ elements, one of the sets $V_{1}, V_{2}$ has at least $n$ elements. Without loss of generality assume that $V_{1}$ has at least $n$ elements. Then for $k=1,2, \ldots, n$ simply define $i_{k}$ to be the $k$-th least element of $V_{1}$. + +Problem 7. Let $n>2$ be an integer. Anna, Edda and Magni play a game on a hexagonal board tiled with regular hexagons, with $n$ tiles on each side. The figure shows a board with 5 tiles on each side. The central tile is marked. + +## Baltic Way + +Reykjavík, November 11th - 15th + +Solutions + +The game begins with a stone on a tile in one corner of the board. Edda and Magni are on the same team, playing against Anna, and they win if the stone is on the central tile at the end of any player's turn. Anna, Edda and Magni take turns moving the stone: Anna begins, then Edda and then Magni, and so on. + +The rules for each player's turn are: + +- Anna has to move the stone to an adjacent tile, in any direction. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-08.jpg?height=386&width=425&top_left_y=495&top_left_x=1438) + +- Edda has to move the stone straight by two tiles in any of the 6 possible directions. +- Magni has a choice of passing his turn, or moving the stone straight by three tiles in any of the 6 possible directions. + +Find all $n$ for which Edda and Magni have a winning strategy. + +Solution. We colour the board in three colours in such a way that no neighbouring tiles are of the same colour. We can give each hexagon a coordinate using $\overrightarrow{e_{1}}=(1,0)$ and $\overrightarrow{e_{2}}=\left(\cos \left(120^{\circ}, \sin \left(120^{\circ}\right)\right)=\right.$ $\left(\frac{-1}{2}, \frac{\sqrt{3}}{2}\right)$ as basis. Let the central tile be the origin. Then each hexagon has center at $a \cdot \overrightarrow{e_{1}}+b \cdot \overrightarrow{e_{2}},(a, b) \in$ $\mathbb{Z}^{2}$. The tuple $(a, b)$ is the coordinate for a given hexagon its neighbours are $(a+1, b),(a+1, b+1)$, $(a, b+1),(a-1, b),(a-1, b-1)$ and $(a, b-1)$. We colour the hexagon with coordinates $(a, b)$ with colour number $(a+b)(\bmod 3)$. It is clear that neighbouring hexagons do not share a colour. (In fact this is the only three colouring of a hexagonal tiling). See figure 3 . + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-08.jpg?height=437&width=502&top_left_y=1712&top_left_x=777) + +Figure 3: Three colouring of the hexagonal tiling for 5 hexagons on each side + +We see that if $n \equiv 1(\bmod 3)$, the stone begins in a tile in the same colour as the central tile, let that colour be grey. By regarding a few cases, we see that whatever Anna does, Edda and Magni can end + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-09.jpg?height=180&width=363&top_left_y=133&top_left_x=181) + +BALTIC WAY + +REYKJAVÍK$\cdot$ 2021 + +## Baltic Way + +Reykjavík, November 11th - 15th +Solutions + +their turns by getting the stone to a prescribed grey tile of the closest grey tiles. Therefore they can get the stone to the central tile. + +If $n \not \equiv 1(\bmod 3)$, the stone does not begin on the same grey colour as the central tile. Say the stone begins on a white tile, and say the third colour is black. Anna can always move the stone to a grey tile that is not on the same horizontal/diagonal line as the central tile. Then Anna moves the stone to a white or black tile. After Magni moves the stone is still again on a white/black tile. Anna can continue this indefinitely, with the stone never reaching the central tile. + +Problem 8. We are given a collection of $2^{2^{k}}$ coins, where $k$ is a non-negative integer. Exactly one coin is fake. We have an unlimited number of service dogs. One dog is sick but we do not know which one. A test consists of three steps: select some coins from the collection of all coins; choose a service dog; the dog smells all of the selected coins at once. A healthy dog will bark if and only if the fake coin is amongst them. Whether the sick dog will bark or not is random. + +Devise a strategy to find the fake coin, using at most $2^{k}+k+2$ tests, and prove that it works. + +Solution. Number the coins by $2^{k}$-digit binary numbers from $\overbrace{00 \ldots 0}^{\text {length } 2^{k}}$ to $\overbrace{11 \ldots 1}^{\text {length } 2^{k}}$. Let $A_{i}$ be the set of coins which have 0 in $i$-th position of the binary number. The first $2^{k}$ tests we perform with the help of $2^{k}$ different dogs. In the $i$-th test we determine whether the set $A_{i}$ contains the fake coin. With out loss of generality we may assume that the dogs determined that all the digits in the number of the fake coin are 0 's. Due to the possible presence of the sick dog in these tests, it means in fact that the binary number of the fake coin contains at most one 1 . + +$$ +\text { length } 2^{k} +$$ + +In the next test we let a new dog determine whether the coin $00 \ldots 0$ is genuine. If the new dog barks then the coin is really fake, for otherwise two dogs had given us a false answer. If the new dog does not bark we find a dog we have not used before to test the suspected coin. + +(i) If the last two dogs disagree one of them must be sick and hence the first $k$ dogs must be healthy. length $2^{k}$ + +In this case the coin $\overbrace{00 \ldots 0}$ is the fake one. + +(ii) If the last two dogs agree (by not barking) it follows that both of them are healthy. The reason is that if one of the last two dogs was sick and did not bark, it would mean that the first $k$ dogs were length $2^{k}$ + +healthy, implying that the coin $00 \ldots 0$ is fake, but then the other of the last two dogs is healthy and did not bark at the fake coin, a contradiction. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-10.jpg?height=180&width=365&top_left_y=133&top_left_x=180) + +## Baltic Way + +Reykjavík, November 11th - 15th +Solutions + +Therefore one of the first $2^{k}$ dogs gave a wrong verdict. In this case we have $2^{k}$ possible candidates for the fake coin. We can find the fake coin using the last dog and $k$ tests using binary search. + +It follows that no more than $2^{k}+k+2$ tests are needed. + +Problem 9. We are given 2021 points on a plane, no three of which are collinear. Among any 5 of these points, at least 4 lie on the same circle. Is it necessarily true that at least 2020 of the points lie on the same circle? + +Solution. The answer is positive. + +Let us first prove a lemma that if 4 points $A, B, C, D$ all lie on circle $\Gamma$ and some two points $X, Y$ do not lie on $\Gamma$, then these 6 points are pairs of intersections of three circles, circle $\Gamma$ and two other circles. Indeed, according to the problem statement there are 4 points among $A, B, C, X, Y$ which are concyclic. These 4 points must include points $X$ and $Y$ because if one of them is not, then the other one must lie on $\Gamma$. Without loss of generality, take $A, B, X, Y$ to lie on the same circle. Similarly for points $A, C, D, X, Y$ there must be 4 points which are concyclic. Analogously, they must include points $X$ and $Y$. Point $A$ cannot be one of them because two circles cannot have more than two common points. Therefore, points $C, D, X, Y$ are concyclic which proves the lemma. + +Let us first solve the problem for the case for which there exist 5 points which lie on one circle $\Gamma$. Label these points $A, B, C, D, E$. Let us assume that there exists two points which do not lie on $\Gamma$, label them $X$ and $Y$. According to the previously proven lemma, points $A, B, C, D, X, Y$ must be the pairwise intersections of 3 circles. Without loss of generality, let the intersections of $\Gamma$ with one of the other circles be $A$ and $B$ and with the other circle $C$ and $D$. Similarly, $A, B, C, E, X, Y$ must be the pairwise intersections of three circles one of which is $\Gamma$. This is not possible as none of the points $A, B, C$ lies on the circumcircle of triangle $E X Y$. This contradiction shows that at most 1 point can lie outside circle $\Gamma$, i.e. at least 2020 points lie on circle $\Gamma$. + +It remains to look at the case for which no 5 points lie on the same circle. Let $A, B, C, D, E$ be arbitrary 5 points. Without loss of generality, let $A, B, C, D$ be concyclic and $E$ a point not on this circle. According to the lemma, for every other point $F$ and points $A, B, C, D, E$, the 6 points are the intersections of circle $\Gamma$ and some two other circles. But in total, there are 3 such points because one of the two circles must go through $E$ and some 2 points out of $A, B, C, D$, while the other circle must go through point $E$ and the other two points out of $A, B, C, D$. There are only three partitions of $A, B, C, D$ into two sets. There is a contradiction, as there are $2021>5+3$ points in total. + +Problem 10. John has a string of paper where $n$ real numbers $a_{i} \in[0,1]$, for all $i \in\{1, \ldots, n\}$, are written in a row. Show that for any given $k\min \left(S_{1}, \ldots, S_{k}\right)+1$, let $S_{q}$ be the pieces with minimum sum of elements nearest to $S_{p}$ (ties broken arbitrarily) and let $S_{h}$ be the next pieces to $S_{q}$ between $S_{p}$ and $S_{q}$ (it is non empty by the choice of $S_{q}$ ). Then either $p$ $\min \left(S_{1}, \ldots, S_{k}\right)+1$. It is clear also that $\max \left(S_{1}, \ldots, S_{k}\right)$ does not increase during the algorithm. + +Note also that in step (3) the pieces $S_{h}$ may become empty. Then, in the next iteration of the algorithm, $q=h$ will be chosen since $\min \left(S_{1}, \ldots, S_{k}\right)=S_{h}=0$ and in step (3) $S_{h}^{\star}$ will become non empty (but one of its neighbours may become empty, etc.). + +Claim: In the algorithm above, Step (3) is repeated at most $k n$ times with $S_{p}$ being the same maximal pieces in $S^{\star}$ and in $S$. + +Proof. Let $s_{i}$ be the number of elements in $i$-th pieces. Then the number + +$$ +\sum_{i=1}^{k}|i-p| s_{i} +$$ + +takes positive integral values and is always less than $k n$. It is clear that this number decreases during the algorithm. + +## Baltic Way + +Thus after at most $k n$ iteration of (3), the algorithm decreases the value of $S_{p}$ and so goes to (1). Consequently it decreases either the number of pieces with maximal sums or $\max \left(S_{1}, \ldots, S_{k}\right)$. As there are only finitely many ways to split the sum onto pieces, the algorithm eventually terminates at (2). + +When the algorithm teminates, we are left with a sequence $S=\left(S_{1}, S_{2}, \ldots, S_{k}\right)$ where the piece $S_{p}$ with maximum sum is such that $S_{p} \leq \min \left(S_{1}, \ldots, S_{k}\right)+1$. If there is an empty piece $S_{h}$ in the sequence, then the sum of any piece is in $[0,1]$. We can for any empty piece create a cut in any place between numbers where there was not previously a cut, and discard the empty pieces. This is possible since the cuts are $k \leq n-1$, and $n-1$ is the number of places in between numbers. This operation will only possibly decrease the maximum sum, and still all sums will be in $[0,1]$, so all conditions are satisfied. + +Solution 2. This problem can be solved by finding a certain graph having a directed path of length $k$. For real $x$ let $\left(V_{x}, E_{x}\right)$ be a directed graph having vertices $V_{x}=\{0,1, \ldots, n\}$. If $i, j \in V_{x}$ we have a directed edge $(i, j) \in V_{x}$ iff $i \leq j$ and $\sum_{l=i+1}^{j} \in[x, x+1]$. + +Suppose that for some $x \in \mathbb{R}$ there exist such a graph $\left(V_{x}, E_{x}\right)$ such that there exist a path of length $k$ from vertex 0 to vertex $n$. Let $0=v_{0}, v_{1}, \ldots, v_{k}=n$ be an path of length $k$. If we cut the paper string between numbers $v_{i}$ and $v_{i}+1$ for $i \in\{1, \ldots, k-1\}$ we have that the sum of the $i$-th part is $a_{v_{i-1}+1}+\ldots+a_{v_{i}} \in[x, x+1]$. In particular the sum of the number of each piece does not differ from the sum of any other piece by more than 1 . + +It is therefore evident that the statement of the problem is equivalent to the existence of a real $x$ such that there exists a path of length $k$ form vertex 0 to vertex $n$ in graph $\left(E_{x}, V_{x}\right)$. + +For a real $x$ let $s_{x}$ be the least vertex in $\left(V_{x}, E_{x}\right)$ such that there exists a path of length $k$ from 0 to $s_{x}$ and let $t_{x}$ be the greatest, provided that such a path exists. It is not difficult to prove (by induction on $k$ ) that for each vertex $v \in E_{x}$ such that $s_{x} \leq v \leq t_{x}$ there exists a path of length $k$ for 0 to $v$. + +Start with $x=0$. As $x$ increases both $s_{x}$ and $t_{x}$ increase. As there are only finitely many different sums formed by taking a subset of the $a_{i}$-s it follows that the graph $\left(V_{x}, E_{x}\right)$ changes at discrete values of $x$. It is not hard to see that if the graph makes one change between reals $x_{1}1$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-21.jpg?height=183&width=363&top_left_y=134&top_left_x=184) + +## Baltic Way + +Reykjavík, November 11th - 15th +Solutions + +Remark. Note that $(a+b i)(x+y i)=(a x-b y)+(a y+b x) i$. Finding a solution to the system of equations is therefore equivalent to finding a factorization of $s+t i$ in Gaussian integers $\mathbb{Z}[i]$ with non-negative real and imaginary component. It is known that the Gaussian integers form a Euclidean domain and hence a unique factorization domain. The form for primes in $\mathbb{Z}[i]$ has been thoroughly studied. + +Problem 17. Distinct positive integers $a, b, c, d$ satisfy + +$$ +\left\{\begin{array}{l} +a \mid b^{2}+c^{2}+d^{2}, \\ +b \mid a^{2}+c^{2}+d^{2}, \\ +c \mid a^{2}+b^{2}+d^{2}, \\ +d \mid a^{2}+b^{2}+c^{2}, +\end{array}\right. +$$ + +and none of them is larger than the product of the three others. What is the largest possible number of primes among them? + +Solution. At first we note that the given condition is equivalent to $a, b, c, d \mid a^{2}+b^{2}+c^{2}+d^{2}$. + +It is possible that three of the given numbers are primes, for example for $a=2, b=3, c=13$ and $d=26$. In this case $2^{2}+3^{2}+13^{2}+26^{2}=13 \cdot 66$ which is divisible by all four given numbers. Furthermore we will show that it is impossible that all four of them are primes. + +Let us assume that $a, b, c$ and $d$ are primes. As the sum $a^{2}+b^{2}+c^{2}+d^{2}$ is divisible by each of them then it is divisible also by their product $a b c d$. If one of the primes is equal to 2 , then we obtain a contradiction: the sum of four squares is odd, but its divisor $a b c d$ is even. Therefore all four primes are odd, and $a^{2}+b^{2}+c^{2}+d^{2}=0(\bmod 4)$. Hence $a^{2}+b^{2}+c^{2}+d^{2}$ is divisible by $4 a b c d$ which leads to a contradiction as it is easy to see that $a^{2}+b^{2}+c^{2}+d^{2}<4 a b c d$. Indeed, this is equivalent to + +$$ +\frac{a}{b c d}+\frac{b}{a c d}+\frac{c}{a b d}+\frac{d}{a b c}<4 +$$ + +which is true as none of the numbers exceed the product of three three other and equality can hold only for the largest of the four. + +Problem 18. Find all integer triples $(a, b, c)$ satisfying the equation + +$$ +5 a^{2}+9 b^{2}=13 c^{2} +$$ + +## Baltic Way + +Solutions + +Solution. Observe that $(a, b, c)=(0,0,0)$ is a solution. Assume that the equation has a solution $\left(a_{0}, b_{0}, c_{0}\right) \neq(0,0,0)$. Let $d=\operatorname{gcd}\left(a_{0}, b_{0}, c_{0}\right)>0$. Let $(a, b, c)=\left(a_{0} / d, b_{0} / d, c_{0} / d\right)$. Then $\operatorname{gcd}(a, b, c)$ $=1$. From $5 a_{0}{ }^{2}+9 b_{0}{ }^{2}=13 c_{0}{ }^{2}$ it follows that: + +$$ +5 a^{2}+9 b^{2}=5\left(\frac{a_{0}}{d}\right)^{2}+9\left(\frac{b_{0}}{d}\right)^{2}=\frac{5 a_{0}{ }^{2}+9 b_{0}{ }^{2}}{d^{2}}=\frac{13 c_{0}{ }^{2}}{d^{2}}=13\left(\frac{c_{0}}{d}\right)^{2}=13 c^{2} +$$ + +hence $(a, b, c)$ is also a solution. + +As $\left(a_{0}, b_{0}, c_{0}\right) \neq(0,0,0)$ it follows that $(a, b, c) \neq(0,0,0)$. Consider the equation modulo 5. It follows that $4 b^{2} \equiv 5 a^{2}+9 b^{2}=13 c^{2} \equiv 3 c^{2}(\bmod 5)$, that is $4 b^{2} \equiv 3 c^{2}(\bmod 5)$. Multiplying by 4 gives: + +$$ +b^{2} \equiv 16 b^{2}=4 \cdot 4 b^{2} \equiv 4 \cdot 3 c^{2}=12 c^{2} \equiv 2 \cdot c^{2} \quad(\bmod 5) +$$ + +If $5 \mid c$ then $2 c^{2} \equiv 2 \cdot 0^{2}=0(\bmod 5)$ and therefore $a^{2} \equiv 0(\bmod 5)$, that is $5 \mid b^{2}$. As 5 is prime it follows that $5 \mid b$. Hence 5 divides $b$ and $c$. It follows that $5^{2} \mid 13 c^{2}-9 b^{2}=5 a^{2}$. Consequently 5 divides $a^{2}$. As 5 is prime, $5 \mid a$. This means that 5 divides $a, b$ and $c$ contradicting the fact that $\operatorname{gcd}(a, b, c)=1$. We conclude that $5 \mid c$ does not hold. + +As $5 \mid c$ does not hold and 5 is a prime it follows that $c$ and 5 are relative prime. Therefore there exists $x \in \mathbb{Z}$ such that $c \cdot x \equiv 1(\bmod 5)$. Multiplying by $x^{2}$ gives: + +$$ +(b \cdot x)^{2}=b^{2} \cdot x^{2} \equiv 2 \cdot c^{2} \cdot x^{2}=2 \cdot(c \cdot x)^{2} \equiv 2 \cdot 1^{2}=2 +$$ + +That is $y^{2} \equiv 2(\bmod 5)$ where $y=b \cdot x$. As $y^{2} \equiv 2(\bmod 5)$ it follows that $y$ and 5 are relative prime. By Fermat's little theorem it follows that $y^{4} \equiv 1(\bmod 5)$. Hence: + +$$ +1 \equiv y^{4}=\left(y^{2}\right)^{2} \equiv 2^{2}=4 \quad(\bmod 5) +$$ + +but $1 \not \equiv 4(\bmod 5)$ so we have a contradiction. We conclude that the equation $5 a^{2}+9 b^{2}=13 c^{2}$ has no solution besides the solution $(a, b, c)=(0,0,0)$. + +Problem 19. Find all polynomials $p$ with integer coefficients such that the number $p(a)-p(b)$ is divisible by $a+b$ for all integers $a, b$, provided that $a+b \neq 0$. + +Solution. The polynomials we are looking for are those whose every odd-degree term has zero coefficient. + +Let $P(x)=P_{0}(x)+P_{1}(x)$, where $P_{0}$ and $P_{1}$ are polynomials whose all non-zero terms have either even or odd degree, respectively. + +Then we can write $P_{0}(x)=Q\left(x^{2}\right)$, where polynomial $Q$ is obtained from polynomial $P_{0}$ by dividing degrees of all non-zero terms by 2 . Now, for any integers $a, b$ the number $P_{0}(a)-P_{0}(b)=Q\left(a^{2}\right)-Q\left(b^{2}\right)$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_e27e300a283338a2e031g-23.jpg?height=180&width=363&top_left_y=133&top_left_x=181) + +BALTIC WAY + +REYKJAVÍK$\cdot$ 2021 + +## Baltic Way + +Reykjavík, November 11th - 15th +Solutions + +is divisible by $a^{2}-b^{2}$, and hence also by $a+b$. Thus, if every odd-degree term of $P$ has zero coefficient, then the condition of the problem is satisfied. + +On the other hand, if polynomial $P$ satisfies the condition of the problem, then also $P-P_{0}=P_{1}$ must satisfy it. Note that for every real $x, P_{1}(-x)=-P_{1}(x)$, i.e. $P_{1}$ is an odd function. By substituting $b$ by $-b$ in the condition of the problem we obtain that $a-b \mid P_{1}(a)+P_{1}(b)$ holds for any distinct integers $a$ and $b$. Since also $a-b \mid P_{1}(a)-P_{1}(b)$, then for any integers $a$, $b$ we have $a-b \mid 2 P_{1}(a)$. But for any $a$ there exists such $b$ that $|a-b|>2 P_{1}(a)$. From this we conclude that $P_{1}(a)=0$ for any integer $a$. Altogether we have $P=P_{0}$, i.e. coefficients of all odd-degree terms are zero. + +Problem 20. Let $n \geq 2$ be an integer. Given numbers $a_{1}, a_{2}, \ldots, a_{n} \in\{1,2,3, \ldots, 2 n\}$ such that $\operatorname{lcm}\left(a_{i}, a_{j}\right)>2 n$ for all $1 \leq i2 n$. In particular $b_{i} \neq b_{j}$. It follows that the map $\{1,2, \ldots, n\} \rightarrow\{n+1, n+2, \ldots, 2 n\}, i \mapsto b_{i}$ is injective. As both sets $\{1,2, \ldots, n\}$ and $\{n+1, n+2, \ldots, 2 n\}$ have the same finite cardinality it follows that the map is also a surjection and hence a bijection. In particular $b_{1} b_{2} \cdots b_{n}=(n+1)(n+2) \cdots(2 n)$ by associativity and commutativity. + +As each $a_{i} \mid b_{i}$ it follows that + +$$ +a_{1} a_{2} \cdots a_{n} \mid b_{1} b_{2} \cdots b_{n}=(n+1)(n+2) \cdots(2 n) +$$ + +as desired. + diff --git a/BalticWay/md/en-bw22eng.md b/BalticWay/md/en-bw22eng.md new file mode 100644 index 0000000000000000000000000000000000000000..36c5fa39312d2e89712190a6c47fce5b2bc1e446 --- /dev/null +++ b/BalticWay/md/en-bw22eng.md @@ -0,0 +1,93 @@ +# Baltic Way + +Time allowed: 4 hours and 30 minutes. +During the first 30 minutes, questions may be asked. +Tools for writing and drawing are the only ones allowed. +Problem 1. Let $\mathbb{R}^{+}$denote the set of positive real numbers. Assume that $f: \mathbb{R}^{+} \rightarrow \mathbb{R}^{+}$is a function satisfying the equations + +$$ +f\left(x^{3}\right)=f(x)^{3} \text { and } f(2 x)=f(x) +$$ + +for all $x \in \mathbb{R}^{+}$. Find all possible values of $f(\sqrt[2022]{2})$. +Problem 2. We define a sequence of natural numbers by the initial values $a_{0}=a_{1}=a_{2}=1$ and the recursion + +$$ +a_{n}=\left\lfloor\frac{n}{a_{n-1} a_{n-2} a_{n-3}}\right\rfloor +$$ + +for all $n \geq 3$. Find the value of $a_{2022}$. +Problem 3. We call a two-variable polynomial $P(x, y)$ secretly one-variable, if there exist polynomials $Q(x)$ and $R(x, y)$ such that $\operatorname{deg}(Q) \geq 2$ and $P(x, y)=Q(R(x, y))$ (e.g. $x^{2}+1$ and $x^{2} y^{2}+1$ are secretly one-variable, but $x y+1$ is not). + +Prove or disprove the following statement: If $P(x, y)$ is a polynomial such that both $P(x, y)$ and $P(x, y)+1$ can be written as the product of two non-constant polynomials, then $P$ is secretly one-variable. + +Note: All polynomials are assumed to have real coefficients. +Problem 4. The positive real numbers $x, y$ and $z$ satisfy $x y+y z+z x=1$. Prove that + +$$ +2\left(x^{2}+y^{2}+z^{2}\right)+\frac{4}{3}\left(\frac{1}{x^{2}+1}+\frac{1}{y^{2}+1}+\frac{1}{z^{2}+1}\right) \geq 5 +$$ + +Problem 5. Let $\mathbb{R}$ denote the set of real numbers. Determine all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $f(0)+1=f(1)$, and for any real numbers $x$ and $y$, + +$$ +f(x y-x)+f(x+f(y))=y f(x)+3 . +$$ + +Problem 6. Mattis is hosting a badminton tournament for 40 players on 20 courts numbered from 1 to 20. The players are distributed with 2 players on each court. In each round a winner is determined on each court. Afterwards, the player who lost on court 1, and the player who won on court 20 stay in place. For the remaining 38 players, the winner on court $i$ moves to court $i+1$ and the loser moves to court $i-1$. The tournament continues until every player has played every other player at least once. What is the minimal number of rounds the tournament can last? + +Problem 7. The writer Arthur has $n \geq 1$ co-authors who write books with him. Each book has a list of authors including Arthur himself. No two books have the same set of authors. At a party with all his co-author, each co-author writes on a note how many books they remember having written with Arthur. Inspecting the numbers on the notes, they discover that the numbers written down are the first $n$ Fibonacci numbers (defined by $F_{1}=F_{2}=1$ and $F_{k+2}=F_{k+1}+F_{k}$ ). For which $n$ is it possible that none of the co-authors had a lapse of memory? + +## Baltic Way + +Problem 8. For a natural number $n \geq 3$, we draw $n-3$ internal diagonals in a non self-intersecting, but not necessarily convex, $n$-gon, cutting the $n$-gon into $n-2$ triangles. It is known that the value (in degrees) of any angle in any of these triangles is a natural number and no two of these angle values are equal. What is the largest possible value of $n$ ? + +Problem 9. Five elders are sitting around a large bonfire. They know that Oluf will put a hat of one of four colours (red, green, blue or yellow) on each elder's head, and after a short time for silent reflection each elder will have to write down one of the four colours on a piece of paper. Each elder will only be able to see the colour of their two neighbours' hats, not that of their own nor that of the remaining two elders' hats, and they also cannot communicate after Oluf starts putting the hats on. + +Show that the elders can devise a strategy ahead of time so that at most two elders will end up writing down the colour of their own hat. + +Problem 10. A natural number $a$ is said to be contained in the natural number $b$ if it is possible to obtain $a$ by erasing some digits from $b$ (in their decimal representations). For example, 123 is contained in 901523, but not contained in 3412. + +Does there exist an infinite set of natural numbers such that no number in the set is contained in any other number from the set? + +Problem 11. Let $A B C$ be a triangle with circumcircle $\Gamma$ and circumcentre $O$. The circle with centre on the line $A B$ and passing through the points $A$ and $O$ intersects $\Gamma$ again in $D$. Similarly, the circle with centre on the line $A C$ and passing through the points $A$ and $O$ intersects $\Gamma$ again in $E$. Prove that $B D$ is parallel with $C E$. + +Problem 12. An acute-angled triangle $A B C$ has altitudes $A D, B E$ and $C F$ (where $D, E$ and $F$ lie on the sides $B C, C A$ and $A B$, respectively). Let $Q$ be an interior point of the segment $A D$, and let the circumcircles of the triangles $Q D F$ and $Q D E$ meet the line $B C$ again at points $X$ and $Y$, respectively. Prove that $B X=C Y$. + +Problem 13. Let $A B C D$ be a cyclic quadrilateral with $A B1+\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. + diff --git a/BalticWay/md/en-bw24sol.md b/BalticWay/md/en-bw24sol.md new file mode 100644 index 0000000000000000000000000000000000000000..1a5895db6ee941648f2c4f80e56b5636a950ecf0 --- /dev/null +++ b/BalticWay/md/en-bw24sol.md @@ -0,0 +1,652 @@ +1. Let $\alpha$ be a non-zero real number. Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that + +$$ +x f(x+y)=(x+\alpha y) f(x)+x f(y) +$$ + +for all $x, y \in \mathbb{R}$. +Answer: $f(x)=c x^{2}$ for any real constant $c$ if $\alpha=2 ; f(x)=0$ otherwise. +Solution 1: Let $P(x, y)$ denote the assertion of the given functional equation. Note that $P(1,0)$ is $f(1)=f(1)+f(0)$ which implies + +$$ +f(0)=0 +$$ + +Applying this result to $P(x,-x)$ and $P(-x, x)$ where $x \neq 0$ we get: + +$$ +\begin{aligned} +& 0=(1-\alpha) x f(x)+x f(-x) \\ +& 0=(\alpha-1) x f(-x)-x f(x) +\end{aligned} +$$ + +By adding (1) and (2) and simplifying, we get $0=\alpha x f(-x)-\alpha x f(x)$ which implies + +$$ +f(x)=f(-x) +$$ + +for all $x \neq 0$. Since $f(0)=0=f(-0)$, we can conclude that $f$ is even. Therefore (1) simplifies to + +$$ +0=x f(x)(2-\alpha) +$$ + +which implies that if $\alpha \neq 2$ then $f(x)=0$ for all $x \in \mathbb{R}$. It is easy to check that this function works. Now let us consider the case $\alpha=2$. The initial functional equation becomes + +$$ +x f(x+y)=(x+2 y) f(x)+x f(y) +$$ + +which can be rewritten as + +$$ +x f(x+y)-(x+y) f(x)=y f(x)+x f(y) +$$ + +Note that the right hand side is symmetric with respect to $x$ and $y$. From this we can deduce that $x f(x+y)-(x+y) f(x)=y f(x+y)-(x+y) f(y)$ where factorizing yields + +$$ +(x-y) f(x+y)=(x+y)(f(x)-f(y)) . +$$ + +By replacing $y$ with $-y$ and using the fact that $f$ is even, we get + +$$ +(x+y) f(x-y)=(x-y)(f(x)-f(y)) +$$ + +Taking $x=\frac{z+1}{2}$ and $y=\frac{z-1}{2}$ in both (3) and 4, we get + +$$ +\begin{aligned} +f(z) & =z\left(f\left(\frac{z+1}{2}\right)-f\left(\frac{z-1}{2}\right)\right) \\ +z f(1) & =f\left(\frac{z+1}{2}\right)-f\left(\frac{z-1}{2}\right) +\end{aligned} +$$ + +respectively. Equations (5) and (6) together yield $f(z)=z \cdot z f(1)=z^{2} f(1)$ which must hold for all $z \in \mathbb{R}$. + +Thus, the only possible functions that satisfy the given relation for $\alpha=2$ are $f(x)=c x^{2}$ for some real constant $c$. It is easy to check that they indeed work. + +Solution 2: Multiplying the given equation by $y$ gives + +$$ +x y f(x+y)=(x+\alpha y) y f(x)+x y f(y) +$$ + +which is equivalent to + +$$ +x y(f(x+y)-f(x)-f(y))=\alpha y^{2} f(x) +$$ + +The left-hand side of this equation is symmetric in $x$ and $y$. Hence the right-hand side must also stay the same if we swap $x$ and $y$, i.e., + +$$ +\alpha y^{2} f(x)=\alpha x^{2} f(y) +$$ + +As $\alpha \neq 0$, this implies + +$$ +y^{2} f(x)=x^{2} f(y) +$$ + +Setting $y=1$ in this equation immediately gives $f(x)=c x^{2}$ where $c=f(1)$. Plugging $f(x)=c x^{2}$ into the original equation gives + +$$ +c x(x+y)^{2}=c(x+\alpha y) x^{2}+c x y^{2} +$$ + +where terms can be rearranged to obtain + +$$ +c x(x+y)^{2}=c x\left(x^{2}+\alpha x y+y^{2}\right) +$$ + +If $c=0$ then (7) is satisfied. Hence for every $\alpha$, the function $f(x)=0$ is a solution. If $c \neq 0$ then (7) is satisfied if and only if $\alpha=2$. Hence in the case $\alpha=2$, all functions $f(x)=c x^{2}$ (where $c \neq 0$ ) are also solutions. +2. Let $\mathbb{R}^{+}$be the set of all positive real numbers. Find all functions $f: \mathbb{R}^{+} \rightarrow \mathbb{R}^{+}$such that + +$$ +\frac{f(a)}{1+a+c a}+\frac{f(b)}{1+b+a b}+\frac{f(c)}{1+c+b c}=1 +$$ + +for all $a, b, c \in \mathbb{R}^{+}$that satisfy $a b c=1$. +Answer: $f(x)=k x+1-k$ where $k$ is any real number such that $0 \leq k \leq 1$. +Solution: Note that $\frac{1}{1+a+c a}=b c \cdot \frac{1}{1+c+b c}$ since $a b c=1$. Similarly, + +$$ +\frac{1}{1+b+a b}=a c \cdot \frac{1}{1+a+c a}=c \cdot \frac{1}{1+c+b c} +$$ + +So the initial equality becomes $\frac{b c f(a)+c f(b)+f(c)}{1+c+b c}=1$ which yields + +$$ +b c f\left(\frac{1}{b c}\right)+c f(b)+f(c)=1+c+b c +$$ + +Taking $a=b=c=1$ in (8) gives $f(1)+f(1)+f(1)=3$ which implies $f(1)=1$. Using this fact after substituting $c=1$ into 8 yields $b f\left(\frac{1}{b}\right)+f(b)=1+b$, so $b f\left(\frac{1}{b}\right)=1+b-f(b)$ for all $b \in \mathbb{R}^{+}$. Applying this in (8) gives $1+b c-f(b c)+c f(b)+f(c)=1+c+b c$, so + +$$ +c f(b)+f(c)=c+f(b c) +$$ + +Swapping $b$ and $c$ here gives + +$$ +b f(c)+f(b)=b+f(b c) +$$ + +Subtracting the last equality from the second last one and rearranging the terms gives + +$$ +c f(b)-f(b)+f(c)-b f(c)=c-b +$$ + +Substituting $c=2$ into (9) gives $f(b)+f(2)-b f(2)=2-b$, so $f(b)=b(f(2)-1)+2-f(2)$. Denoting $f(2)-1=k$, we get $f(b)=k b+1-k$ for all $b \in \mathbb{R}^{+}$. +Note that if $k<0$, then for large enough $b$ the value of $f(b)$ would become negative. If $k>1$, then for small enough $b$ the value of $f(b)$ would become negative. Therefore $k \in[0,1]$. After substituting $f(x)=k x+1-k$ into 8e can see that it is satisfied. Hence this function satisfies the original equality for all $a, b, c \in \mathbb{R}^{+}$such that $a b c=1$. +3. Positive real numbers $a_{1}, a_{2}, \ldots, a_{2024}$ are written on the blackboard. A move consists of choosing two numbers $x$ and $y$ on the blackboard, erasing them and writing the number $\frac{x^{2}+6 x y+y^{2}}{x+y}$ on the blackboard. After 2023 moves, only one number $c$ will remain on the blackboard. Prove that + +$$ +c<2024\left(a_{1}+a_{2}+\ldots+a_{2024}\right) +$$ + +Solution: Note that by GM-HM we have + +$$ +\frac{x^{2}+6 x y+y^{2}}{x+y}=x+y+\frac{4 x y}{x+y}=x+y+2 \cdot \frac{2}{\frac{1}{x}+\frac{1}{y}} \leq x+y+2 \sqrt{x y}=(\sqrt{x}+\sqrt{y})^{2} +$$ + +which means that + +$$ +\sqrt{\frac{x^{2}+6 x y+y^{2}}{x+y}} \leq \sqrt{x}+\sqrt{y} +$$ + +Therefore after each move the sum of square roots of all numbers on the blackboard decreases or stays the same. This implies that + +$$ +\sqrt{c} \leq \sqrt{a_{1}}+\sqrt{a_{2}}+\ldots+\sqrt{a_{2024}} +$$ + +By QM-AM we have + +$$ +\sqrt{a_{1}}+\sqrt{a_{2}}+\ldots+\sqrt{a_{2024}} \leq 2024 \sqrt{\frac{a_{1}+a_{2}+\ldots+a_{2024}}{2024}} +$$ + +Hence $c \leq 2024\left(a_{1}+a_{2}+\ldots+a_{2024}\right)$. +It remains to show that the equality cannot hold. Suppose, for the sake of contradiction, that + +$$ +c=2024\left(a_{1}+a_{2}+\ldots+a_{2024}\right) +$$ + +For this to occur, all the inequalities used must be equalities. Note that the last equality holds if and only if $a_{1}=a_{2}=\cdots=a_{2024}$. Also to reach the equality we must have $x=y$ at each move, so that the sum of square roots of all numbers on the blackboard stays the same all the time. So the square root of the number occurring 2024 times on the blackboard in the beginning is $\frac{\sqrt{c}}{2024}$, and choosing two copies of any number $x$ with square root $\sqrt{x}$ yields a number with square root $2 \sqrt{x}$ after the move. Hence the square root of any number occurring on the blackboard during the process must be of the form $\frac{\sqrt{c}}{2024} \cdot 2^{k}$ for a natural number $k$. But the square root of the number in the blackboard in the end is $\sqrt{c}$ which is not of this form since 2024 is not a power of 2 . The contradiction shows that the equality cannot be achieved and we are done. +4. Find the largest real number $\alpha$ such that, for all non-negative real numbers $x, y$ and $z$, the following inequality holds: + +$$ +(x+y+z)^{3}+\alpha\left(x^{2} z+y^{2} x+z^{2} y\right) \geq \alpha\left(x^{2} y+y^{2} z+z^{2} x\right) . +$$ + +Answer: $6 \sqrt{3}$. +Solution: Without loss of generality, $x$ is the largest amongst the three variables. By moving $\alpha\left(x^{2} z+y^{2} x+z^{2} y\right)$ to the right-hand side and factoring, we get the equivalent inequality + +$$ +(x+y+z)^{3} \geq \alpha(x-y)(x-z)(y-z) +$$ + +If $z>y$, then the right-hand side is non-positive, so we can assume $x \geq y \geq z$. +Note that + +$$ +\begin{aligned} +x+y+z & \geq x+y-2 z \\ +& =\frac{1}{\sqrt{3}}(x-y)+\left(1-\frac{1}{\sqrt{3}}\right)(x-z)+\left(1+\frac{1}{\sqrt{3}}\right)(y-z) \\ +& \geq 3 \sqrt[3]{\frac{2}{3 \sqrt{3}}(x-y)(x-z)(y-z)} . +\end{aligned} +$$ + +Cubing both sides gives $(x+y+z)^{3} \geq 6 \sqrt{3}(x-y)(x-z)(y-z)$. The equality holds when $z=0$ and $x=y(2+\sqrt{3})$. So $\alpha=6 \sqrt{3}$. +5. Find all positive real numbers $\lambda$ such that every sequence $a_{1}, a_{2}, \ldots$ of positive real numbers satisfying + +$$ +a_{n+1}=\lambda \cdot \frac{a_{1}+a_{2}+\ldots+a_{n}}{n} +$$ + +for all $n \geq 2024^{2024}$ is bounded. +Remark: A sequence $a_{1}, a_{2}, \ldots$ of positive real numbers is bounded if there exists a real number $M$ such that $a_{i}1$ every such sequence is unbounded. Note that $a_{n}=\lambda \cdot \frac{a_{1}+a_{2}+\ldots+a_{n-1}}{n-1}$ implies + +$$ +\frac{a_{n}(n-1)}{\lambda}=a_{1}+a_{2}+\ldots+a_{n-1} +$$ + +for all $n>2024^{2024}$. Therefore + +$$ +\begin{aligned} +a_{n+1} & =\lambda \cdot \frac{a_{1}+a_{2}+\ldots+a_{n}}{n} \\ +& =\lambda\left(\frac{a_{1}+a_{2}+\ldots+a_{n-1}}{n}+\frac{a_{n}}{n}\right) \\ +& =\lambda\left(\frac{a_{n}(n-1)}{\lambda n}+\frac{a_{n}}{n}\right) \\ +& =a_{n}\left(\frac{n-1}{n}+\frac{\lambda}{n}\right) \\ +& =a_{n}\left(1+\frac{\lambda-1}{n}\right) +\end{aligned} +$$ + +Hence for all $n>2024^{2024}$ and positive integers $k$ we have + +$$ +a_{n+k}=a_{n} \cdot\left(1+\frac{\lambda-1}{n}\right)\left(1+\frac{\lambda-1}{n+1}\right) \ldots\left(1+\frac{\lambda-1}{n+k-1}\right) . +$$ + +This implies that + +$$ +\begin{aligned} +\frac{a_{n+k}}{a_{n}} & =\left(1+\frac{\lambda-1}{n}\right)\left(1+\frac{\lambda-1}{n+1}\right) \ldots\left(1+\frac{\lambda-1}{n+k-1}\right) \\ +& >\frac{\lambda-1}{n}+\frac{\lambda-1}{n+1}+\ldots+\frac{\lambda-1}{n+k-1} \\ +& =(\lambda-1) \cdot\left(\frac{1}{n}+\frac{1}{n+1}+\ldots+\frac{1}{n+k-1}\right) . +\end{aligned} +$$ + +As the sequence $\left(1+\frac{1}{2}+\frac{1}{3}+\ldots+\frac{1}{m}\right)_{m \geq 1}$ is unbounded and $\lambda-1>0$, the ratio $\frac{a_{n+k}}{a_{n}}$ is unbounded, implying that the sequence $\left(a_{n}\right)_{n \geq 1}$ is also unbounded. +Now it remains to show that for all $\lambda \leq 1$ every such sequence is bounded. To this end, define $M=\max \left(a_{1}, a_{2}, \ldots, a_{20242024}\right)$. We will show by induction on $n$ that $a_{n} \leq M$ for all $n$. This holds trivially for $n=1,2, \ldots, 2024^{2024}$. For the induction step, assume the desired inequality for some $n \geq 2024^{2024}$ and note that + +$$ +a_{n+1}=\lambda \cdot \frac{a_{1}+a_{2}+\ldots+a_{n}}{n} \leq \frac{a_{1}+a_{2}+\ldots+a_{n}}{n} \leq \max \left(a_{1}, a_{2}, \ldots, a_{n}\right)=M +$$ + +The required result follows. +6. A labyrinth is a system of 2024 caves and 2023 non-intersecting (bidirectional) corridors, each of which connects exactly two caves, where each pair of caves is connected through some sequence of corridors. Initially, Erik is standing in a corridor connecting some two caves. In a move, he can walk through one of the caves to another corridor that connects that cave to a third cave. However, when doing so, the corridor he was just in will magically disappear and get replaced by a new one connecting the end of his new corridor to the beginning of his old one (i.e., if Erik was in a corridor connecting caves $a$ and $b$ and he walked through cave $b$ into a corridor that connects caves $b$ and $c$, then the corridor between caves $a$ and $b$ will disappear and a new corridor between caves $a$ and $c$ will appear). + +Since Erik likes designing labyrinths and has a specific layout in mind for his next one, he is wondering whether he can transform the labyrinth into that layout using these moves. Prove that this is in fact possible, regardless of the original layout and his starting position there. +Solution: Throughout the solution, we denote a corridor directly connecting caves $a$ and $b$ by $a b$. +First we show that Erik can reverse his moves. Indeed, consider three caves $a, b, c$ such that $a b$ and $b c$ are corridors, and assume that Erik stands in the corridor $a b$. He can then perform the moves $a b \rightarrow b c \rightarrow c a \rightarrow a b$ in succession (Fig. 1\} note that after each move, the edge he is about to walk to in the sequence has just appeared as a consequence of his last move). But this will take him back to where he started as well as make sure that the layout of the labyrinth has not changed. Hence after performing the first move, he can "undo" it by performing the remaining two moves in this sequence. +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-05.jpg?height=163&width=701&top_left_y=2397&top_left_x=729) + +Figure 1 +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-06.jpg?height=170&width=518&top_left_y=172&top_left_x=820) + +Figure 2 + +This means that it is enough to show that Erik can turn any layout into the star shape (i.e., a layout with one central cave that all the remaining caves are directly connected to), since if he can get from any layout to the star shape he can also get from the star shape to any layout. Let us prove this by induction on the number $n$ of caves. + +For $n=3$, any allowed layout has the star shape, so let us assume $n \geq 4$. It is easy to see that there has to exist at least two caves, each of which being connected to only one other cave. These caves cannot be directly connected to each other (otherwise they could not be connected to other caves). Hence one of these two caves, say $v$, is such that Erik is not initially standing in the only corridor adjacent to it. By the induction hypothesis, Erik can then perform some sequence of moves that will transform the labyrinth excluding $v$ into the star shape with $n-1$ caves. Let the central cave of the star be $c$ and assume that Erik is standing in the corridor $c w$. We have to consider three cases for how $v$ is connected to other caves: + +- The cave $v$ is directly connected to $c$. In this case we already have the star shape with $n$ caves, and so we are done. +- The cave $v$ is directly connected to $w$. In this case Erik can make the moves $c w \rightarrow w v \rightarrow v c$ (Fig. 2). Then the resulting layout has the star shape. +- The cave $v$ is directly connected to some other non-central cave $u$. In this case Erik can make the moves + +$$ +w c \rightarrow c u \rightarrow u w \rightarrow u v \rightarrow v w \rightarrow w c \rightarrow w u \rightarrow u c +$$ + +(Fig. 3). Then the resulting layout has the star shape. +In all cases, we have shown that we can turn the labyrinth into the star shape. So we are done by induction. +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-06.jpg?height=230&width=1400&top_left_y=1644&top_left_x=379) + +Figure 3 + +A $45 \times 45$ grid has had the central unit square removed. For which positive integers $n$ is it possible to cut the remaining area into $1 \times n$ and $n \times 1$ rectangles? +Answer: 1, 2, 11, 22, 23. +Solution: Clearly, any $n$ that works must be a divisor of the number $45^{2}-1=2024$ of unit squares. Furthermore, it must not be greater than 45 , or else we cannot fit any $1 \times n$ rectangles in the grid. This leaves the options $n=1, n=2, n=4, n=8, n=11, n=22, n=23$ and $n=44$. Note that any divisor $d$ of a length $n$ that works also works, since we can just divide each of the $1 \times n$ and $n \times 1$ pieces into $1 \times d$ and $d \times 1$ pieces. + +For $n=22$, we can cover the grid as in Fig. 4. By the above, this shows that $n=1, n=2$ and $n=11$ all work. + +For $n=23$, we can cover the grid as in Fig. 5 . +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-07.jpg?height=689&width=692&top_left_y=175&top_left_x=319) + +Figure 4 +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-07.jpg?height=689&width=689&top_left_y=175&top_left_x=1140) + +Figure 5 + +The remaining possibilities are $n=4, n=8$ and $n=44$. All of these are divisible by 4 , and hence if any of them work $n=4$ would also have to work. However, $n=4$ does not work. Indeed, color gray all rows with row numbers congruent to 1 or 2 modulo 4 (Fig. 6). Then any $1 \times 4$ or $4 \times 1$ piece will cover an even number of gray squares. But there is an odd number of gray squares in total, since the number of gray rows is odd, as well as the length of any row, and the center square is white as it is in row 23 . So it is impossible to cover all of them. + +Consequently, $n=1,2,11,22,23$ are the only values that work. +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-07.jpg?height=686&width=692&top_left_y=1390&top_left_x=728) + +Figure 6 +8. Let $a, b, n$ be positive integers such that $a+b \leq n^{2}$. Alice and Bob play a game on an (initially uncoloured) $n \times n$ grid as follows: + +- First, Alice paints $a$ cells green. +- Then, Bob paints $b$ other (i.e. uncoloured) cells blue. + +Alice wins if she can find a path of non-blue cells starting with the bottom left cell and ending with the top right cell (where a path is a sequence of cells such that any two consecutive ones have a common side), otherwise Bob wins. Determine, in terms of $a, b$ and $n$, who has a winning strategy. Answer: If $a \geq \min (2 b, 2 n-1)$, Alice wins, otherwise Bob wins. +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-08.jpg?height=413&width=426&top_left_y=179&top_left_x=501) + +Figure 7 +![](https://cdn.mathpix.com/cropped/2024_11_22_358eef26f8d72df36f1eg-08.jpg?height=413&width=418&top_left_y=179&top_left_x=1227) + +Figure 8 + +Solution: If $a \geq 2 n-1$, Alice can win, for example by painting all the cells in the leftmost column and the topmost row green, ensuring that there will be a green path (Fig. 77). +If $2 n-1>a \geq 2 b$, Alice can also win. Indeed, note that $n>b$, so Alice can make sure to color (at least) the bottommost $b$ cells in the leftmost column and the rightmost $b$ cells in the topmost row green. There are now $b+1$ disjoint paths from some green square in the leftmost column to some green square in the topmost row (Fig. 8d), so there is no way for Bob to block all of the paths. +If however $a<\min (2 b, 2 n-1)$, Bob wins. Indeed, note that $\min (2 b, 2 n-1)$ is the number of all descending diagonals of length at most $b$. Hence after Alice has made her move, there must still be some of these diagonals with no green cells in it. Bob can color all cells in it blue and win. +Hence Alice wins iff $a \geq \min (2 b, 2 n-1)$. +9. Let $S$ be a finite set. For a positive integer $n$, we say that a function $f: S \rightarrow S$ is an $n$-th power if there exists some function $g: S \rightarrow S$ such that + +$$ +f(x)=\underbrace{g(g(\ldots g(x) \ldots))}_{g \text { applied } n \text { times }} +$$ + +for each $x \in S$. +Suppose that a function $f: S \rightarrow S$ is an $n$-th power for each positive integer $n$. Is it necessarily true that $f(f(x))=f(x)$ for each $x \in S$ ? +Answer: Yes. +Solution 1: Since $S$ is finite, there is a finite set of all functions $\left\{g_{1}, g_{2}, \ldots, g_{k}\right\}$ from $S$ to itself. Consider a function $F$ that assigns to each positive integer $n$ one of these functions such that $f$ is the $n$-th power of the function $F(n)$. So $F$ induces a partition of the set of all positive integers into sets $P_{i}$ consisting of all the integers $n$ such that $F(n)=g_{i}$. +For any positive integer $N$, consider the complete graph $K_{N}$ on $N$ vertices labeled 1 through $N$. We will colour the edges of $K_{N}$ in $k$ colours $C_{1}, C_{2}, \ldots, C_{k}$ according to the partition in the following way: If $|x-y|$ lies in $P_{i}$, colour the edge between $x$ and $y$ in the colour $C_{i}$. By Ramsey's theorem we can take $N$ to be large enough that there is a monochromatic triangle in $K_{N}$. This means that there are three integers $x, y$ and $z$ and an index $i$ for which $|x-y|,|y-z|,|z-x| \in P_{i}$. Hence there are three integers $a, b, c \in P_{i}$ such that $a+b=c$. +Therefore, some function $g_{i}: S \rightarrow S$ satisfies $f(x)=g_{i}^{a}(x)=g_{i}^{b}(x)=g_{i}^{a+b}(x)$ for each $x \in S$. Hence, $f(f(x))=g_{i}^{a}\left(g_{i}^{b}(x)\right)=g_{i}^{a+b}(x)=f(x)$ for each $x \in S$. +Remark: The fact that there is an index $i$ for which $P_{i}$ contains three integers $a, b, c$ such that $a+b=c$ is known as Schur's theorem. +Solution 2: Pick $x \in S$ arbitrarily and denote $y=f(x)$. We need to prove that $f(y)=y$. Let $n=|S|$ and consider the function $g: S \rightarrow S$ such that $f=g^{n!}$. As we must have $g^{n!}(x)=y$, the element $y$ must occur among the first $n$ terms of the sequence $x, g(x), g^{2}(x), \ldots$, i.e., $g^{k}(x)=y$ for +some $k1$ be a divisor of $n$, and assume that all divisors less than $d$ can be written on the desired form. If $m$ is even, we are done, and if $m$ is odd, we have + +$$ +d=(k+1)\left(k^{m-1}-k^{m-2}+\cdots+1\right) . +$$ + +Then, either $k+1=d$, meaning that $k^{m}=k$ so $k=1$ and $d=1^{2}+1$, or $k+1$ is a divisor of $n$ stricly less than $d$, so we can write $k+1=l^{2}+1$ for some integer $l$. Hence $d=\left(l^{2}\right)^{m}+1=\left(l^{m}\right)^{2}+1$. +Claim 2: If $n$ is powerless, then $n$ is square-free. +Proof: Suppose for contradiction that there is a prime $p$ such that $p^{2} \mid n$. Then by Claim 1 we may write $p^{2}=l^{2}+1$. As the difference of square numbers are sums of consecutive odd integers, this leaves only the solution $l=0, p=1$, a contradiction. +Claim 3: The only composite powerless positive integer is 10. +We will give two proofs for this claim. +Proof 1: Suppose $n$ is a composite powerless number with prime divisors $p2^{\frac{10001 \cdot 10002}{2}}$. Notice that by Bertrand's postulate, the biggest prime less than $d$ is at least $\frac{d}{2}$, the second biggest is at least $\frac{d}{4}$ etc., and 10001-th biggest is at least $\frac{d}{2^{10001}}$. So + +$$ +P \geq \frac{d}{2} \frac{d}{4} \cdots \frac{d}{2^{10001}}=\frac{d^{10001}}{2^{\frac{10001 \cdot 10002}{2}}} \geq d^{10000} +$$ + +Now note that the number of quadruples where $d<2^{\frac{10001 \cdot 10002}{2}}$ is finite, because all the number are bounded above by $d^{2024}$ and hence by $2^{\frac{10001 \cdot 10002}{2}} \cdot 2024$. When $d \geq 2^{\frac{10001 \cdot 10002}{2}}$ we have $a b c d \leq$ $d^{1+3 \cdot 2024}d$ (otherwise $a=b=c=d$ and $a^{a!}+b^{b!}-c^{c!}-d^{d!}=0$ ). Hence + +$$ +\begin{aligned} +d & >p=a^{a!}+b^{b!}-c^{c!}-d^{d!} \geq a^{a!}-d^{d!}=\left(a^{(d+1) \cdot \ldots \cdot a}\right)^{d!}-d^{d!} \\ +& \geq\left(a^{d+1}\right)^{d!}-d^{d!} \geq a^{d+1}-d>d^{d+1}-d>d^{2}-d=(d-1) d \geq d +\end{aligned} +$$ + +contradiction. Then in the last paragraph, there is no need to find two primes less than $d$ that do not divide $a b c d$, one is enough. +18. An infinite sequence $a_{1}, a_{2}, \ldots$ of positive integers is such that $a_{n} \geq 2$ and $a_{n+2}$ divides $a_{n+1}+a_{n}$ for all $n \geq 1$. Prove that there exists a prime which divides infinitely many terms of the sequence. +Solution: Assume that every prime divides only finitely many terms of the sequence. In particular this means that there exists an integer $N>1$ such that $2 \nmid a_{n}$ for all $n \geq N$. Let $M=\max \left(a_{N}, a_{N+1}\right)$ We will now show by induction that $a_{n} \leq M$ for all $n \geq N$. This is obvious for $n=N$ and $n=N+1$. Now let $n \geq N+2$ be arbitrary and assume that $a_{n-1}, a_{n-2} \leq M$. By the definition of $N$, it is clear that $a_{n-2}, a_{n-1}, a_{n}$ are all odd and so $a_{n} \neq a_{n-1}+a_{n-2}$, but we know that $a_{n} \mid a_{n-1}+a_{n-2}$ and therefore + +$$ +a_{n} \leq \frac{a_{n-1}+a_{n-2}}{2} \leq \max \left(a_{n-1}, a_{n-2}\right) \leq M +$$ + +by the induction hypothesis. This completes the induction. +This shows that the sequence is bounded and therefore there are only finitely many primes which divide a term of the sequence. However there are infinitely many terms, that all have a prime divisor, hence some prime must divide infinitely many terms of the sequence. +19. Does there exist a positive integer $N$ which is divisible by at least 2024 distinct primes and whose positive divisors $1=d_{1}1$ works). +- Induction step: Assume that the claim holds for $M$ prime divisors. Let $N$ be a positive integer with exactly $M$ prime divisors such that $f(N)$ is an integer. Pick a prime $p>N$. We claim that there is some choice of $\alpha$ such that $f\left(N \cdot p^{\alpha}\right)$ is an integer. Note that since $p>N$, the divisors of $N \cdot p^{\alpha}$ in the ascending order are + +$$ +\begin{aligned} +& d_{1}, d_{2}, \ldots, d_{k} \\ +& p d_{1}, p d_{2}, \ldots, p d_{k} \\ +& \ldots \ldots \ldots \ldots \ldots \ldots \ldots \\ +& p^{\alpha} d_{1}, p^{\alpha} d_{2}, \ldots, p^{\alpha} d_{k} +\end{aligned} +$$ + +Hence we get that + +$$ +f\left(N \cdot p^{\alpha}\right)=(\alpha+1) f(N)+\alpha \cdot \frac{p d_{1}}{d_{k}} +$$ + +The term $(\alpha+1) f(N)$ is an integer by the choice of $N$. If we pick $\alpha=N$ then $\alpha \cdot \frac{p d_{1}}{d_{k}}=N \cdot \frac{p}{N}=p$ is an integer, too. Thus $f\left(N \cdot p^{\alpha}\right)$ is an integer and we are done. +20. Positive integers $a, b$ and $c$ satisfy the system of equations + +$$ +\left\{\begin{aligned} +(a b-1)^{2} & =c\left(a^{2}+b^{2}\right)+a b+1 \\ +a^{2}+b^{2} & =c^{2}+a b +\end{aligned}\right. +$$ + +(a) Prove that $c+1$ is a perfect square. +(b) Find all such triples $(a, b, c)$. + +Answer: (b) $a=b=c=3$. + +## Solution 1: + +(a) Rearranging terms in the first equation gives + +$$ +a^{2} b^{2}-2 a b=c\left(a^{2}+b^{2}\right)+a b +$$ + +By substituting $a b=a^{2}+b^{2}-c^{2}$ into the right-hand side and rearranging the terms we get + +$$ +a^{2} b^{2}+c^{2}=(c+1)\left(a^{2}+b^{2}\right)+2 a b +$$ + +By adding $2 a b c$ to both sides and factorizing we get + +$$ +(a b+c)^{2}=(c+1)(a+b)^{2} +$$ + +Now it is obvious that $c+1$ has to be a square of an integer. +(b) Let us say $c+1=d^{2}$, where $d>1$ and is an integer. Then substituting this into the equation (10) and taking the square root of both sides (we can do that as all the terms are positive) we get + +$$ +a b+d^{2}-1=d(a+b) +$$ + +We can rearrange it to $(a-d)(b-d)=1$, which immediately tells us that either $a=b=d+1$ or $a=b=d-1$. Note that in either case $a=b$. Substituting this into the second equation of the given system we get $a^{2}=c^{2}$, implying $a=c$ (as $\left.a, c>0\right)$. + +- If $a=b=d-1$, then $a=c$ gives $d-1=d^{2}-1$, so $d=0$ or $d=1$, neither of which gives a positive $c$, so cannot be a solution. +- If $a=b=d+1$, then $a=c$ gives $d+1=d^{2}-1$, so $d^{2}-d-2=0$. The only positive solution is $d=2$ which gives $a=b=c=3$. Substituting it once again into both equations we indeed get a solution. + + +## Solution 2: + +(a) Substituting $a^{2}+b^{2}$ from the second equation to the first one gives + +$$ +(a b-1)^{2}=c\left(c^{2}+a b\right)+a b+1 +$$ + +Rearranging terms in the obtained equation gives + +$$ +(a b)^{2}-(c+3) a b-c^{3}=0 +$$ + +which we can consider as a quadratic equation in $a b$. Its discriminant is + +$$ +D=(c+3)^{2}+4 c^{3}=4 c^{3}+c^{2}+6 c+9=(c+1)\left(4 c^{2}-3 c+9\right)=(c+1)\left(4(c-1)^{2}+5(c+1)\right) +$$ + +To have solutions in integers, $D$ must be a perfect square. Note that $c+1$ and $4(c-1)^{2}+5(c+1)$ can have no common odd prime factors. Hence $\operatorname{gcd}\left(c+1,4(c-1)^{2}+5(c+1)\right)$ is a power of 2 , so $c+1$ and $4(c-1)^{2}+5(c+1)$ are either both perfect squares or both twice of some perfect squares. In the first case, we are done. In the second case, note that + +$$ +4(c-1)^{2}+5(c+1) \equiv 4(c-1)^{2}=(2(c-1))^{2} \quad(\bmod 5) +$$ + +so $4(c-1)^{2}+5(c+1)$ must be $0,1,4$ modulo 5 . On the other hand, twice of a perfect square is $0,2,3$ modulo 5 . Consequently, $c+1 \equiv 0(\bmod 5)$ and $4(c-1)^{2}+5(c+1) \equiv 0(\bmod 5)$, the latter of which implies $c-1 \equiv 0(\bmod 5)$. This leads to contradiction since $c-1$ and $c+1$ cannot be both divisible by 5 . +(b) By the solution of part (a), both $c+1$ and $4 c^{2}-3 c+9$ are perfect squares. However, due to $c>0$ we have $(2 c-1)^{2}=4 c^{2}-4 c+1<4 c^{2}-3 c+9$, and for $c>3$ we also have $(2 c)^{2}=4 c^{2}>4 c^{2}-3 c+9$. Thus $4 c^{2}-3 c+9$ is located between two consecutive perfect squares, which gives a contradiction with it being a square itself. +Out of $c=1,2,3$, only $c=3$ makes $c+1$ a perfect square. In this case, the quadratic equation $(a b)^{2}-(c+3) a b-c^{3}=0$ yields $a b=9$, so $a=1, b=9$ or $a=3, b=3$ or $a=9, b=1$. Out of those, only $a=3, b=3$ satisfies the equations. +Remark: Part (a) of the problem can be solved yet another way. By substituting $a^{2}+b^{2}$ from the second equation to the first one, we obtain + +$$ +(a b-1)^{2}=c\left(c^{2}+a b\right)+a b+1=c^{3}+1+a b c+a b=(c+1)\left(c^{2}-c+1+a b\right) +$$ + +Whenever an integer $n$ divides $c+1$, it also divides $a b-1$. Therefore $c \equiv-1(\bmod n)$ and $a b \equiv 1$ $(\bmod n)$. But then $c^{2}-c+1+a b \equiv 4(\bmod n)$, i.e., $n$ divides $c^{2}-c+1+a b-4$. Thus the greatest common divisor of $c+1$ and $c^{2}-c+1+a b$ divides 4 , i.e., it is either 1,2 or 4 . In the first and third case we are done. If their greatest common divisor is 2 , then clearly all three of $a, b, c$ are odd, so $a^{2} \equiv b^{2} \equiv c^{2} \equiv 1(\bmod 8)$. Thus from the second equation we have $a b=a^{2}+b^{2}-c^{2} \equiv 1$ $(\bmod 8)$, so $(a b-1)^{2}$ is divisible by 64 . Now, if $c \equiv 1(\bmod 4)$, then $c^{2}-c+1+a b \equiv 2(\bmod 4)$, which means that $(c+1)\left(c^{2}-c+1+a b\right) \equiv 4(\bmod 8)$, giving a contradiction with $(a b-1)^{2}$ being divisible by 64 . If instead $c \equiv 3(\bmod 4)$, then $c^{2}-c+1+a b \equiv 0(\bmod 4)$. This means that both $c+1$ and $c^{2}-c+1+a b$ are divisible by 4 , giving a contradiction with the assumption that their greatest common divisor is 2 . Therefore $c+1$ must be a perfect square. + diff --git a/BalticWay/md/en-bw90sol.md b/BalticWay/md/en-bw90sol.md new file mode 100644 index 0000000000000000000000000000000000000000..48fae008ab00ecb56b93ae09c244ad8ffa2110a7 --- /dev/null +++ b/BalticWay/md/en-bw90sol.md @@ -0,0 +1,164 @@ +# Baltic Way 1990 + +## Riga, November 24, 1990 + +## Problems and solutions + +1. Integers $1,2, \ldots, n$ are written (in some order) on the circumference of a circle. What is the smallest possible sum of moduli of the differences of neighbouring numbers? + +Solution. Let $a_{1}=1, a_{2}, \ldots, a_{k}=n, a_{k+1}, \ldots, a_{n}$ be the order in which the numbers $1,2, \ldots, n$ are written around the circle. Then the sum of moduli of the differences of neighbouring numbers is + +$$ +\begin{aligned} +& \left|1-a_{2}\right|+\left|a_{2}-a_{3}\right|+\cdots+\left|a_{k}-n\right|+\left|n-a_{k+1}\right|+\cdots+\left|a_{n}-1\right| \\ +& \geq\left|1-a_{2}+a_{2}-a_{3}+\cdots+a_{k}-n\right|+\left|n-a_{k+1}+\cdots+a_{n}-1\right| \\ +& =|1-n|+|n-1|=2 n-2 . +\end{aligned} +$$ + +This minimum is achieved if the numbers are written around the circle in increasing order. + +2. The squares of a squared paper are enumerated as follows: + +![](https://cdn.mathpix.com/cropped/2024_04_17_a668d2eee50487b1b875g-1.jpg?height=406&width=459&top_left_y=999&top_left_x=316) + +Devise a polynomial $p(m, n)$ of two variables $m, n$ such that for any positive integers $m$ and $n$ the number written in the square with coordinates $(m, n)$ will be equal to $p(m, n)$. + +Solution. Since the square with the coordinates $(m, n)$ is $n$th on the $(n+m-1)$-th diagonal, it contains the number + +$$ +P(m, n)=\sum_{i=1}^{n+m-2} i+n=\frac{(n+m-1)(n+m-2)}{2}+n +$$ + +3. Let $a_{0}>0, c>0$ and + +$$ +a_{n+1}=\frac{a_{n}+c}{1-a_{n} c}, \quad n=0,1, \ldots +$$ + +Is it possible that the first 1990 terms $a_{0}, a_{1}, \ldots, a_{1989}$ are all positive but $a_{1990}<0$ ? + +Solution. Obviously we can find angles $0<\alpha, \beta<90^{\circ}$ such that $\tan \alpha>0, \tan (\alpha+\beta)>0, \ldots$, $\tan (\alpha+1989 \beta)>0$ but $\tan (\alpha+1990 \beta)<0$. Now it suffices to note that if we take $a_{0}=\tan \alpha$ and $c=\tan \beta$ then $a_{n}=\tan (\alpha+n \beta)$. + +4. Prove that, for any real $a_{1}, a_{2}, \ldots, a_{n}$, + +$$ +\sum_{i, j=1}^{n} \frac{a_{i} a_{j}}{i+j-1} \geq 0 +$$ + +Solution. Consider the polynomial $P(x)=a_{1}+a_{2} x+\cdots+a_{n} x^{n-1}$. Then $P^{2}(x)=\sum_{k, l=1}^{n} a_{k} a_{l} x^{k+l-2}$ and $\int_{0}^{1} P^{2}(x) d x=\sum_{k, l=1}^{n} \frac{a_{k} a_{l}}{k+l-1}$. + +5. Let $*$ denote an operation, assigning a real number $a * b$ to each pair of real numbers ( $a, b)$ (e.g., $a * b=$ $a+b^{2}-17$ ). Devise an equation which is true (for all possible values of variables) provided the operation $*$ is commutative or associative and which can be false otherwise. + +Solution. A suitable equation is $x *(x * x)=(x * x) * x$ which is obviously true if $*$ is any commutative or associative operation but does not hold in general, e.g., $1-(1-1) \neq(1-1)-1$. + +6. Let $A B C D$ be a quadrangle, $|A D|=|B C|, \angle A+\angle B=120^{\circ}$ and let $P$ be a point exterior to the quadrangle such that $P$ and $A$ lie at opposite sides of the line $D C$ and the triangle $D P C$ is equilateral. Prove that the triangle $A P B$ is also equilateral. + +Solution. Note that $\angle A D C+\angle C D P+\angle B C D+\angle D C P=360^{\circ}$ (see Figure 1). Thus $\angle A D P=360^{\circ}-$ $\angle B C D-\angle D C P=\angle B C P$. As we have $|D P|=|C P|$ and $|A D|=|B C|$, the triangles $A D P$ and $B C P$ are congruent and $|A P|=|B P|$. Moreover, $\angle A P B=60^{\circ}$ since $\angle D P C=60^{\circ}$ and $\angle D P A=\angle C P B$. + +7. The midpoint of each side of a convex pentagon is connected by a segment with the intersection point of the medians of the triangle formed by the remaining three vertices of the pentagon. Prove that all five such segments intersect at one point. + +Solution. Let $A, B, C, D$ and $E$ be the vertices of the pentagon (in order), and take any point $O$ as origin. Let $M$ be the intersection point of the medians of the triangle $C D E$, and let $N$ be the midpoint of the segment $A B$. We have + +$$ +\overline{O M}=\frac{1}{3}(\overline{O C}+\overline{O D}+\overline{O E}) +$$ + +and + +$$ +\overline{O N}=\frac{1}{2}(\overline{O A}+\overline{O B}) +$$ + +The segment $N M$ may be written as + +$$ +\overline{O N}+t(\overline{O M}-\overline{O N}), \quad 0 \leq t \leq 1 +$$ + +Taking $t=\frac{3}{5}$ we get the point + +$$ +P=\frac{1}{5}(\overline{O A}+\overline{O B}+\overline{O C}+\overline{O D}+\overline{O E}), +$$ + +the centre of gravity of the pentagon. Choosing a different side of the pentagon, we clearly get the same point $P$, which thus lies on all such line segments. + +Remark. The problem expresses the idea of subdividing a system of five equal masses placed at the vertices of the pentagon into two subsystems, one of which consists of the two masses at the endpoints of the side under consideration, and one consisting of the three remaining masses. The segment mentioned in the problem connects the centres of gravity of these two subsystems, and hence it contains the centre of gravity of the whole system. + +8. Let $P$ be a point on the circumcircle of a triangle $A B C$. It is known that the base points of the perpendiculars drawn from $P$ onto the lines $A B, B C$ and $C A$ lie on one straight line (called a Simson line). Prove that the Simson lines of two diametrically opposite points $P_{1}$ and $P_{2}$ are perpendicular. + +Solution. Let $O$ be the circumcentre of the triangle $A B C$ and $\angle B$ be its maximal angle (so that $\angle A$ and $\angle C$ are necessarily acute). Further, let $B_{1}$ and $C_{1}$ be the base points of the perpendiculars drawn from the point $P$ to the sides $A C$ and $A B$ respectively and let $\alpha$ be the angle between the Simson line $l$ of point $P$ and the height $h$ of the triangle drawn to the side $A C$. It is sufficient to prove that $\alpha=\frac{1}{2} \angle P O B$. To show this, first note that the points $P, C_{1}, B_{1}, A$ all belong to a certain circle. Now we have to consider several sub-cases depending on the order of these points on that circle and the location of point $P$ on the circumcircle of triangle $A B C$. Figure 2 shows one of these cases - here we have $\alpha=\angle P B_{1} C_{1}=\angle P B_{1} C_{1}=$ $\angle P A B=\frac{1}{2} \angle P O B$. The other cases can be treated in a similar manner. + +![](https://cdn.mathpix.com/cropped/2024_04_17_a668d2eee50487b1b875g-2.jpg?height=277&width=297&top_left_y=2163&top_left_x=548) + +Figure 1 + +![](https://cdn.mathpix.com/cropped/2024_04_17_a668d2eee50487b1b875g-2.jpg?height=303&width=302&top_left_y=2144&top_left_x=934) + +Figure 2 + +![](https://cdn.mathpix.com/cropped/2024_04_17_a668d2eee50487b1b875g-2.jpg?height=277&width=265&top_left_y=2157&top_left_x=1324) + +Figure 3 + +9. Two equal triangles are inscribed into an ellipse. Are they necessarily symmetrical with respect either to the axes or to the centre of the ellipse? + +Solution. No, not necessarily (see Figure 3 where the two ellipses are equal). + +10. A segment $A B$ of unit length is marked on the straight line $t$. The segment is then moved on the plane so that it remains parallel to $t$ at all times, the traces of the points $A$ and $B$ do not intersect and finally the segment returns onto $t$. How far can the point $A$ now be from its initial position? + +Solution. The point $A$ can move any distance from its initial position - see Figure 4 and note that we can make the height $h$ arbitrarily small. + +![](https://cdn.mathpix.com/cropped/2024_04_17_a668d2eee50487b1b875g-3.jpg?height=175&width=869&top_left_y=484&top_left_x=639) + +Figure 4 + +11. Prove that the modulus of an integer root of a polynomial with integer coefficients cannot exceed the maximum of the moduli of the coefficients. + +Solution. For a non-zero polynomial $P(x)=a_{n} x^{n}+\cdots+a_{1} x+a_{0}$ with integer coefficients, let $k$ be the smallest index such that $a_{k} \neq 0$. Let $c$ be an integer root of $P(x)$. If $c=0$, the statement is obvious. If $c \neq 0$, then using $P(c)=0$ we get $a_{k}=-x\left(a_{k+1}+a_{k+2} x+\cdots+a_{n} x^{n-k-1}\right)$. Hence $c$ divides $a_{k}$, and since $a_{k} \neq 0$ we must have $|c| \leq\left|a_{k}\right|$. + +12. Let $m$ and $n$ be positive integers. Prove that $25 m+3 n$ is divisible by 83 if and only if $3 m+7 n$ is divisible by 83 . + +Solution. Use the equality $2 \cdot(25 x+3 y)+11 \cdot(3 x+7 y)=83 x+83 y$. + +13. Prove that the equation $x^{2}-7 y^{2}=1$ has infinitely many solutions in natural numbers. + +Solution. For any solution $(m, n)$ of the equation we have $m^{2}-7 n^{2}=1$ and + +$$ +1=\left(m^{2}-7 n^{2}\right)^{2}=\left(m^{2}+7 n^{2}\right)^{2}-7 \cdot(2 m n)^{2} . +$$ + +Thus $\left(m^{2}+7 n^{2}, 2 m n\right)$ is also a solution. Therefore it is sufficient to note that the equation $x^{2}-7 y^{2}=1$ has at least one solution, for example $x=8, y=3$. + +14. Do there exist 1990 relatively prime numbers such that all possible sums of two or more of these numbers are composite numbers? + +Solution. Such numbers do exist. Let $M=1990$ ! and consider the sequence of numbers $1+M, 1+2 M$, $1+3 M, \ldots$ For any natural number $2 \leq k \leq 1990$, any sum of exactly $k$ of these numbers (not necessarily different) is divisible by $k$, and hence is composite. number. It remains to show that we can choose 1990 numbers $a_{1}, \ldots, a_{1990}$ from this sequence which are relatively prime. Indeed, let $a_{1}=1+M$, $a_{2}=1+2 M$ and for $a_{1}, \ldots, a_{n}$ already chosen take $a_{n+1}=1+a_{1} \cdots a_{n} \cdot M$. + +15. Prove that none of the numbers + +$$ +F_{n}=2^{2^{n}}+1, \quad n=0,1,2, \ldots, +$$ + +is a cube of an integer. + +Solution. Assume there exist such natural numbers $k$ and $n$ that $2^{2^{n}}+1=k^{3}$. Then $k$ must be an odd number and we have $2^{2^{n}}=k^{3}-1=(k-1)\left(k^{2}+k+1\right)$. Hence $k-1=2^{s}$ and $k^{2}+k+1=2^{t}$ where $s$ and $t$ are some positive integers. Now $2^{2 s}=(k-1)^{2}=k^{2}-2 k+1$ and $2^{t}-2^{2 s}=3 k$. But $2^{t}-2^{2 s}$ is even while $3 k$ is odd, a contradiction. + +16. A closed polygonal line is drawn on squared paper so that its links lie on the lines of the paper (the sides of the squares are equal to 1). The lengths of all links are odd numbers. Prove that the number of links is divisible by 4 . + +Solution. There must be an equal number of horizontal and vertical links, and hence it suffices to show that the number of vertical links is even. Let's pass the whole polygonal line in a chosen direction and mark each vertical link as "up" or "down" according to the direction we pass it. As the sum of lengths of the "up" links is equal to that of the "down" ones and each link is of odd length, we have an even or odd number of links of both kinds depending on the parity of the sum of their lengths. + +17. In two piles there are 72 and 30 sweets respectively. Two students take, one after another, some sweets from one of the piles. Each time the number of sweets taken from a pile must be an integer multiple of the number of sweets in the other pile. Is it the beginner of the game or his adversary who can always assure taking the last sweet from one of the piles? + +Solution. Note that one of the players must have a winning strategy. Assume that it is the player making the second move who has it. Then his strategy will assure taking the last sweet also in the case when the beginner takes $2 \cdot 30$ sweets as his first move. But now, if the beginner takes $1 \cdot 30$ sweets then the second player has no choice but to take another 30 sweets from the same pile, and hence the beginner can use the same strategy to assure taking the last sweet himself. This contradiction shows that it must be the beginner who has the winning strategy. + +18. Positive integers $1,2, \ldots, 100,101$ are written in the cells of a $101 \times 101$ square grid so that each number is repeated 101 times. Prove that there exists either a column or a row containing at least 11 different numbers. + +Solution. Let $a_{k}$ denote the total number of rows and columns containing the number $k$ at least once. As $i \cdot(20-i)<101$ for any natural number $i$, we have $a_{k} \geq 21$ for all $k=1,2, \ldots, 101$. Hence $a_{1}+\cdots+a_{101} \geq 21 \cdot 101=2121$. On the other hand, assuming any row and any column contains no more than 10 different numbers we have $a_{1}+\cdots+a_{101} \leq 202 \cdot 10=2020$, a contradiction. + +19. What is the largest possible number of subsets of the set $\{1,2, \ldots, 2 n+1\}$ such that the intersection of any two subsets consists of one or several consecutive integers? + +Solution. Consider any subsets $A_{1}, \ldots, A_{s}$ satisfying the condition of the problem and let $A_{i}=$ $\left\{a_{i 1}, \ldots, a_{i, k_{i}}\right\}$ where $a_{i 1}<\cdots1$ such that $102^{1991}+103^{1991}=n^{m}$. + +Solution. Factorizing, we get + +$$ +102^{1991}+103^{1991}=(102+103)\left(102^{1990}-102^{1989} \cdot 103+102^{1988} \cdot 103^{2}-\cdots+103^{1990}\right), +$$ + +where $102+103=205=5 \cdot 41$. It suffices to show that the other factor is not divisible by 5 . Let $a_{k}=102^{k} \cdot 103^{1990-k}$, then $a_{k} \equiv 4(\bmod 5)$ if $k$ is even and $a_{k} \equiv-4(\bmod 5)$ if $k$ is odd. Thus the whole second factor is congruent to $4 \cdot 1991 \equiv 4(\bmod 5)$. + +3. There are 20 cats priced from $\$ 12$ to $\$ 15$ and 20 sacks priced from 10 cents to $\$ 1$ for sale (all prices are different). Prove that each of two boys, John and Peter, can buy a cat in a sack paying the same amount of money. + +Solution. The number of different possibilities for buying a cat and a sack is $20 \cdot 20=400$ while the number of different possible prices is $1600-1210+1=391$. Thus by the pigeonhole principle there exist two combinations of a cat and a sack costing the same amount of money. Note that the two cats (and also the two sacks) involved must be different as otherwise the two sacks (respectively, cats) would have equal prices. + +4. Let $p$ be a polynomial with integer coefficients such that $p(-n)0$ we have $0 \leq[x] \leq x$ and $0 \leq\{x\}<1$ which imply $f(x)[x]>x-1$ and $0 \leq\{x\}<1$ which imply $f(x)>x-1>1991 x$. Finally, if $-1\cos A+\cos B+\cos C +$$ + +Solution. In an acute-angled triangle we have $A+B>\frac{\pi}{2}$. Hence we have $\sin A>\sin \left(\frac{\pi}{2}-B\right)=\cos B$ and $\sin B>\cos A$. Using these inequalities we get $(1-\sin A)(1-\sin B)<(1-\cos A)(1-\cos B)$ and + +$$ +\begin{aligned} +\sin A+\sin B & >\cos A+\cos B-\cos A \cos B+\sin A \sin B \\ +& =\cos A+\cos B-\cos (A+B)=\cos A+\cos B+\cos C +\end{aligned} +$$ + +8. Let $a, b, c, d, e$ be distinct real numbers. Prove that the equation + +$$ +\begin{aligned} +& (x-a)(x-b)(x-c)(x-d) \\ +& +(x-a)(x-b)(x-c)(x-e) \\ +& +(x-a)(x-b)(x-d)(x-e) \\ +& +(x-a)(x-c)(x-d)(x-e) \\ +& +(x-b)(x-c)(x-d)(x-e)=0 +\end{aligned} +$$ + +has 4 distinct real solutions. + +Solution. On the left-hand side of the equation we have the derivative of the function + +$$ +f(x)=(x-a)(x-b)(x-c)(x-d)(x-e) +$$ + +which is continuous and has five distinct real roots. + +9. Find the number of solutions of the equation $a e^{x}=x^{3}$. + +Solution. Studying the graphs of the functions $a e^{x}$ and $x^{3}$ it is easy to see that the equation always has one solution if $a<0$ and can have 0,1 or 2 solutions if $a>0$. Moreover, in the case $a>0$ the number of solutions can only decrease as $a$ increases and we have exactly one positive value of $a$ for which the equation has one solution - this is the case when the graphs of $a e^{x}$ and $x^{3}$ are tangent to each other, i.e., there exists $x_{0}$ such that $a e^{x_{0}}=x_{0}^{3}$ and $a e^{x_{0}}=3 x_{0}^{2}$. From these two equations we get $x_{0}=3$ and $a=\frac{27}{e^{3}}$. Summarizing: the equation $a e^{x}=x^{3}$ has one solution for $a \leq 0$ and $a=\frac{27}{e^{3}}$, two solutions for $0\frac{27}{e^{3}}$. + +10. Express the value of $\sin 3^{\circ}$ in radicals. + +Solution. We use the equality + +$$ +\sin 3^{\circ}=\sin \left(18^{\circ}-15^{\circ}\right)=\sin 18^{\circ} \cos 15^{\circ}+\cos 18^{\circ} \sin 15^{\circ} +$$ + +where + +$$ +\sin 15^{\circ}=\sin \frac{30^{\circ}}{2}=\sqrt{\frac{1-\cos 30^{\circ}}{2}}=\frac{\sqrt{6}-\sqrt{2}}{4} +$$ + +and + +$$ +\cos 15^{\circ}=\sqrt{1-\sin ^{2} 15^{\circ}}=\frac{\sqrt{6}+\sqrt{2}}{4} . +$$ + +To calculate $\cos 18^{\circ}$ and $\sin 18^{\circ}$ note that $\cos \left(3 \cdot 18^{\circ}\right)=\sin \left(2 \cdot 18^{\circ}\right)$. As $\cos 3 x=\cos ^{3} x-3 \cos x \sin ^{2} x=$ $\cos x\left(1-4 \sin ^{2} x\right)$ and $\sin 2 x=2 \sin x \cos x$ we get $1-4 \sin ^{2} 18^{\circ}=2 \sin 18^{\circ}$. Solving this quadratic equation yields $\sin 18^{\circ}=\frac{\sqrt{5}-1}{4}$ (we discard $\frac{-\sqrt{5}-1}{4}$ which is negative) and $\cos 18^{\circ}=\frac{\sqrt{10+2 \sqrt{5}}}{4}$. + +11. All positive integers from 1 to 1000000 are divided into two groups consisting of numbers with odd or even sums of digits respectively. Which group contains more numbers? + +Solution. Among any ten integers $\overline{a_{1} \ldots a_{n} 0}, \overline{a_{1} \ldots a_{n} 1}, \ldots, \overline{a_{1} \ldots a_{n} 9}$ there are exactly five numbers with odd digit sum and five numbers with even digit sum. Thus, among the integers 0, 1, . , 999999 we have equally many numbers of both kinds. After substituting 1000000 instead of 0 we shall have more numbers with odd digit sum. + +12. The vertices of a convex 1991-gon are enumerated with integers from 1 to 1991. Each side and diagonal of the 1991-gon is coloured either red or blue. Prove that, for an arbitrary renumeration of vertices, one can find integers $k$ and $l$ such that the line connecting vertices with numbers $k$ and $l$ before the renumeration has the same colour as the line between the vertices having these numbers after the renumeration. + +Solution. Assume there exists a renumeration such that for any numbers $1 \leq k\frac{2}{3} +$$ + +7. Let $a=\sqrt[1992]{1992}$. Which number is greater: + +$$ +\left.a^{a^{a^{a}}}\right\} 1992 +$$ + +or 1992 ? + +Solution. The first of these numbers is less than + +$$ +\left.\left.a^{a^{a^{. \cdot}}}\right\}^{1992}=a^{a^{a^{. \cdot}}}\right\}^{1991}=\ldots=1992 . +$$ + +8. Find all integers satisfying the equation $2^{x} \cdot(4-x)=2 x+4$. + +Solution. Since $2^{x}$ must be positive, we have $\frac{2 x+4}{4-x}>0$ yielding $-20$ and $e=1$. From (iv) it follows that $p^{\prime}(x)=4 a x^{3}+2 c x$ has at least two different real roots. Since $a>0$, we have $c<0$ and $p^{\prime}(x)$ has three roots $x=0, x= \pm \sqrt{-c /(2 a)}$. The minimum points mentioned in $(i v)$ must be $x= \pm \sqrt{-c /(2 a)}$, so $2 \sqrt{-c /(2 a)}=2$ and $c=-2 a$. Finally, by $(i i)$ we have $p(x)=a\left(x^{2}-1\right)^{2}+1-a \geq 0$ for all $x$, which implies $0
2$ and $\frac{1}{2} \leq q<1$ respectively. Now, for any rational number $\frac{a}{b} \neq 1$ we can use $(i),\left(i^{\prime}\right),(i i)$ or $\left(i i^{\prime}\right)$ to express $f\left(\frac{a}{b}\right)$ in terms of $f\left(\frac{a^{\prime}}{b^{\prime}}\right)$ where $a^{\prime}+b^{\prime}2$. Now, for a fixed point $1<\frac{a}{b} \leq 2$ (ii) easily gives us that $\frac{a}{b}-1=\frac{a-b}{b}$ and $\frac{b}{a-b}$ are fixed points too. It is easy to see that $1 \leq \frac{b}{a-b} \leq 2$ (the latter holds because $\frac{b}{a-b}$ is a fixed point). As the sum of the numerator and denominator of the new fixed point is strictly less than $a+b$ we can continue in this manner until, in a finite number of steps, we arrive at the fixed point 1. By reversing the process, any fixed point $q>1$ can be constructed by repeatedly using the condition that if $\frac{a}{b}>1$ is a fixed point then so is $\frac{a+b}{a}$, starting with $a=b=1$. It is now an easy exercise to see that these fixed points have the form $\frac{F_{n+1}}{F_{n}}$ where $\left\{F_{n}\right\}_{n \in \mathbb{N}}$ is the sequence of Fibonacci numbers. + +12. Let $\mathbb{N}$ denote the set of positive integers. Let $\varphi: \mathbb{N} \rightarrow \mathbb{N}$ be a bijective function and assume that there exists a finite limit + +$$ +\lim _{n \rightarrow \infty} \frac{\varphi(n)}{n}=L +$$ + +What are the possible values of $L$ ? + +Solution. In this solution we allow $L$ to be $\infty$ as well. We show that $L=1$ is the only possible value. Assume that $L>1$. Then there exists a number $N$ such that for any $n \geq N$ we have $\frac{\varphi(n)}{n}>1$ and thus $\varphi(n) \geq n+1 \geq N+1$. But then $\varphi$ cannot be bijective, since the numbers $1,2, \ldots, N-1$ cannot be bijectively mapped onto $1,2, \ldots, N$. + +Now assume that $L<1$. Since $\varphi$ is bijective we clearly have $\varphi(n) \rightarrow \infty$ as $n \rightarrow \infty$. Then + +$$ +\lim _{n \rightarrow \infty} \frac{\varphi^{-1}(n)}{n}=\lim _{n \rightarrow \infty} \frac{\varphi^{-1}(\varphi(n))}{\varphi(n)}=\lim _{n \rightarrow \infty} \frac{n}{\varphi(n)}=\frac{1}{L}>1, +$$ + +i.e., $\lim _{n \rightarrow \infty} \frac{\varphi^{-1}(n)}{n}>1$, which is a contradiction since $\varphi^{-1}$ is also bijective. (When $L=0$ we interpret $\frac{1}{L}$ as $\infty$ ). + +13. Prove that for any positive $x_{1}, x_{2}, \ldots, x_{n}$ and $y_{1}, y_{2}, \ldots, y_{n}$ the inequality + +$$ +\sum_{i=1}^{n} \frac{1}{x_{i} y_{i}} \geq \frac{4 n^{2}}{\sum_{i=1}^{n}\left(x_{i}+y_{i}\right)^{2}} +$$ + +holds. + +Solution. Since $\left(x_{i}+y_{i}\right)^{2} \geq 4 x_{i} y_{i}$, it is sufficient to prove that + +$$ +\left(\sum_{i=1}^{n} \frac{1}{x_{i} y_{i}}\right)\left(\sum_{i=1}^{n} x_{i} y_{i}\right) \geq n^{2} +$$ + +This can easily be done by induction using the fact that $a+\frac{1}{a} \geq 2$ for any $a>0$. It also follows directly from the Cauchy-Schwarz inequality. + +14. There is a finite number of towns in a country. They are connected by one direction roads. It is known that, for any two towns, one of them can be reached from the other one. Prove that there is a town such that all the remaining towns can be reached from it. + +Solution. Consider a town $A$ from which a maximal number of towns can be reached. Suppose there is a town $B$ which cannot be reached from $A$. Then $A$ can be reached from $B$ and so one can reach more towns from $B$ than from $A$, a contradiction. + +15. Noah has to fit 8 species of animals into 4 cages of the ark. He plans to put species in each cage. It turns out that, for each species, there are at most 3 other species with which it cannot share the accommodation. Prove that there is a way to assign the animals to their cages so that each species shares a cage with compatible species. + +Solution. Start assigning the species to cages in an arbitrary order. Since for each species there are at most three species incompatible with it, we can always add it to one of the four cages. + +Remark. Initially the problem was posed as follows: "...He plans to put two species in each cage..." Because of a misprint the word "two" disappeared, and the problem became trivial. We give a solution to the original problem. Start with the distribution obtained above. If in some cage $A$ there are more than three species, then there is also a cage $B$ with at most one species and this species is compatible with at least one species in cage $A$, which we can then transfer to cage $B$. Thus we may assume that there are at most three species in each cage. If there are two cages with 3 species, then we can obviously transfer one of these 6 species to one of the remaining two cages. Now, assume the four cages contain 1, 2, 2 and 3 species respectively. If the species in the first cage is compatible with one in the fourth cage, we can transfer that species to the first cage, and we are done. Otherwise, for an arbitrary species $X$ in the fourth cage there exists a species compatible with it in either the second or the third cage. Transfer the other species from that cage to the first cage, and then $X$ to that cage. + +16. All faces of a convex polyhedron are parallelograms. Can the polyhedron have exactly 1992 faces? + +Solution. No, it cannot. Let us call a series of faces $F_{1}, F_{2}, \ldots, F_{k}$ a ring if the pairs $\left(F_{1}, F_{2}\right),\left(F_{2}, F_{3}\right), \ldots$, $\left(F_{k-1}, F_{k}\right),\left(F_{k}, F_{1}\right)$ each have a common edge and all these common edges are parallel. It is not difficult to see that any two rings have exactly two common faces and, conversely, each face belongs to exactly two rings. Therefore, if there are $n$ rings then the total number of faces must be $2\left(\begin{array}{l}n \\ 2\end{array}\right)=n(n-1)$. But there is no positive integer $n$ such that $n(n-1)=1992$. + +Remark. The above solution, which is the only one proposed that is known to us, is not correct. For a counterexample, consider a cube with side 2 built up of four unit cubes, and take the polyhedron with 24 faces built up of the faces of the unit cubes that face the outside. This polyhedron has rings that do not have any faces in common. Moreover, by subdividing faces into rectangles sufficiently many times, we can obtain a polyhedron with 1992 faces. + +17. Quadrangle $A B C D$ is inscribed in a circle with radius 1 in such a way that one diagonal, $A C$, is a diameter of the circle, while the other diagonal, $B D$, is as long as $A B$. The diagonals intersect in $P$. It is known that the length of $P C$ is $\frac{2}{5}$. How long is the side $C D$ ? + +![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=271&width=320&top_left_y=207&top_left_x=594) + +Figure 1 + +![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=252&width=323&top_left_y=228&top_left_x=912) + +Figure 2 + +![](https://cdn.mathpix.com/cropped/2024_04_17_31b1db04c15387bffd81g-4.jpg?height=271&width=234&top_left_y=224&top_left_x=1299) + +Figure 3 + +Solution. Let $\angle A C D=2 \alpha$ (see Figure 1). Then $\angle C A D=\frac{\pi}{2}-2 \alpha, \angle A B D=2 \alpha, \angle A D B=\frac{\pi}{2}-\alpha$ and $\angle C D B=\alpha$. The sine theorem applied to triangles $D C P$ and $D A P$ yields + +$$ +\frac{|D P|}{\sin 2 \alpha}=\frac{2}{5 \sin \alpha} +$$ + +and + +$$ +\frac{|D P|}{\sin \left(\frac{\pi}{2}-2 \alpha\right)}=\frac{8}{5 \sin \left(\frac{\pi}{2}-\alpha\right)} +$$ + +Combining these equalities we have + +$$ +\frac{2 \sin 2 \alpha}{5 \sin \alpha}=\frac{8 \cos 2 \alpha}{5 \cos \alpha} +$$ + +which gives $4 \sin \alpha \cos ^{2} \alpha=8 \cos 2 \alpha \sin \alpha$ and $\cos 2 \alpha+1=4 \cos 2 \alpha$. So we get $\cos 2 \alpha=\frac{1}{3}$ and $|C D|=$ $2 \cos 2 \alpha=\frac{2}{3}$. + +18. Show that in a non-obtuse triangle the perimeter of the triangle is always greater than two times the diameter of the circumcircle. + +Solution. Let $K, L, M$ be the midpoints of the sides $A B, B C, A C$ of a non-obtuse triangle $A B C$ (see Figure 2). Note that the centre $O$ of the circumcircle is inside the triangle $K L M$ (or at one of its vertices if $A B C$ is a right-angled triangle). Therefore $|A K|+|K L|+|L C|>|A O|+|O C|$ and hence $|A B|+|A C|+|B C|>$ $2(|A O|+|O C|)=2 d$, where $d$ is the diameter of the circumcircle. + +19. Let $C$ be a circle in the plane. Let $C_{1}$ and $C_{2}$ be non-intersecting circles touching $C$ internally at points $A$ and $B$ respectively. Let $t$ be a common tangent of $C_{1}$ and $C_{2}$, touching them at points $D$ and $E$ respectively, such that both $C_{1}$ and $C_{2}$ are on the same side of $t$. Let $F$ be the point of intersection of $A D$ and $B E$. Show that $F$ lies on $C$. + +Solution. Let $F_{1}$ be the second intersection point of the line $A D$ and the circle $C$ (see Figure 3). Consider the homothety with centre $A$ which maps $D$ onto $F_{1}$. This homothety maps the circle $C_{1}$ onto $C$ and the tangent line $t$ of $C_{1}$ onto the tangent line of the circle $C$ at $F_{1}$. Let us do the same with the circle $C_{2}$ and the line $B E$ : let $F_{2}$ be their intersection point and consider the homothety with centre $B$, mapping $E$ onto $F_{2}$, $C_{2}$ onto $C$ and $t$ onto the tangent of $C$ at point $F_{2}$. Since the tangents of $C$ at $F_{1}$ and $F_{2}$ are both parallel to $t$, they must coincide, and so must the points $F_{1}$ and $F_{2}$. + +20. Let $a \leq b \leq c$ be the sides of a right triangle, and let $2 p$ be its perimeter. Show that + +$$ +p(p-c)=(p-a)(p-b)=S +$$ + +where $S$ is the area of the triangle. + +Solution. By straightforward computation, we find: + +$$ +\begin{aligned} +& p(p-c)=\frac{1}{4}\left((a+b)^{2}-c^{2}\right)=\frac{a b}{2}=S, \\ +& (p-a)(p-b)=\frac{1}{4}\left(c^{2}-(a-b)^{2}\right)=\frac{a b}{2}=S . +\end{aligned} +$$ + diff --git a/BalticWay/md/en-bw93sol.md b/BalticWay/md/en-bw93sol.md new file mode 100644 index 0000000000000000000000000000000000000000..0228f591cc37c89e5cb270e9ee7de8b2e175a818 --- /dev/null +++ b/BalticWay/md/en-bw93sol.md @@ -0,0 +1,251 @@ +# Baltic Way 1993 + +Riga, November 13, 1993 + +## Problems and solutions + +1. $\overline{a_{1} a_{2} a_{3}}$ and $\overline{a_{3} a_{2} a_{1}}$ are two three-digit decimal numbers, with $a_{1}, a_{3}$ being different non-zero digits. The squares of these numbers are five-digit numbers $\overline{b_{1} b_{2} b_{3} b_{4} b_{5}}$ and $\overline{b_{5} b_{4} b_{3} b_{2} b_{1}}$ respectively. Find all such threedigit numbers. + +Solution. Assume $a_{1}>a_{3}>0$. As the square of $\overline{a_{1} a_{2} a_{3}}$ must be a five-digit number we have $a_{1} \leq 3$. Now a straightforward case study shows that $\overline{a_{1} a_{2} a_{3}}$ can be 301, 311, 201, 211 or 221 . + +2. Do there exist positive integers $a>b>1$ such that for each positive integer $k$ there exists a positive integer $n$ for which $a n+b$ is a $k$ th power of a positive integer? + +Solution. Let $a=6, b=3$ and denote $x_{n}=a n+b$. Then we have $x_{l} \cdot x_{m}=x_{6 l m+3(l+m)+1}$ for any natural numbers $l$ and $m$. Thus, any powers of the numbers $x_{n}$ belong to the same sequence. + +3. Let's call a positive integer "interesting" if it is a product of two (distinct or equal) prime numbers. What is the greatest number of consecutive positive integers all of which are "interesting"? + +Solution. The three consecutive numbers $33=3 \cdot 11,34=2 \cdot 17$ and $35=5 \cdot 7$ are all "interesting". On the other hand, among any four consecutive numbers there is one of the form $4 k$ which is "interesting" only if $k=1$. But then we have either 3 or 5 among the four numbers, neither of which is "interesting". + +4. Determine all integers $n$ for which + +$$ +\sqrt{\frac{25}{2}+\sqrt{\frac{625}{4}-n}}+\sqrt{\frac{25}{2}-\sqrt{\frac{625}{4}-n}} +$$ + +is an integer. + +Solution. Let + +$$ +p=\sqrt{\frac{25}{2}+\sqrt{\frac{625}{4}-n}}+\sqrt{\frac{25}{2}-\sqrt{\frac{625}{4}-n}}=\sqrt{25+2 \sqrt{n}} . +$$ + +Then $n=\left(\frac{p^{2}-25}{2}\right)^{2}$ and obviously $p$ is an odd number not less than 5. If $p \geq 9$ then $n>\frac{625}{4}$ and the initial expression would be undefined. The two remaining values $p=5$ and $p=7$ give $n=0$ and $n=144$ respectively. + +5. Prove that for any odd positive integer $n, n^{12}-n^{8}-n^{4}+1$ is divisible by $2^{9}$. + +Solution. Factorizing the expression, we get + +$$ +n^{12}-n^{8}-n^{4}+1=\left(n^{4}+1\right)\left(n^{2}+1\right)^{2}(n-1)^{2}(n+1)^{2} . +$$ + +Now note that one of the two even numbers $n-1$ and $n+1$ is divisible by 4 . + +6. Suppose two functions $f(x)$ and $g(x)$ are defined for all $x$ such that $2b_{m}^{\prime}$. Consider the numbers $a_{m}^{\prime}, a_{m+1}^{\prime}, \ldots, a_{n}^{\prime}$ and $b_{1}^{\prime}, b_{2}^{\prime}, \ldots, b_{m}^{\prime}$. As there are $n+1$ numbers altogether and only $n$ places in the initial sequence there must exist an index $j$ such that we have $a_{j}$ among $a_{m}^{\prime}, a_{m+1}^{\prime}, \ldots, a_{n}^{\prime}$ and $b_{j}$ among $b_{1}^{\prime}, b_{2}^{\prime}, \ldots, b_{m}^{\prime}$. Now, as $b_{j} \leq b_{m}^{\prime}80$, a contradiction. + +14. A square is divided into 16 equal squares, obtaining the set of 25 different vertices. What is the least number of vertices one must remove from this set, so that no 4 points of the remaining set are the vertices of any square with sides parallel to the sides of the initial square? + +Remark. The proposed solution to this problem claimed that it is enough to remove 7 vertices but the example to demonstrate this appeared to be incorrect. Below we show that removing 6 vertices is not sufficient but removing 8 vertices is. It seems that removing 7 vertices is not sufficient but we currently know no potential way to prove this, apart from a tedious case study. + +Solution. The example in Figure 3a demonstrates that it suffices to remove 8 vertices to "destroy" all squares. Assume now that we have managed to do that by removing only 6 vertices. Denote the horizontal and vertical lines by $A, B, \ldots, E$ and $1,2, \ldots, 5$ respectively. Obviously, one of the removed vertices must be a vertex of the big square - let this be vertex $A 1$. Then, in order to "destroy" all the squares shown in Figure $3 \mathrm{~b}-\mathrm{e}$ we have to remove vertices $B 2, C 3, D 4, D 2$ and $B 4$. Thus we have removed 6 vertices without having any choice but a square shown in Figure $3 \mathrm{f}$ is still left intact. + +12345 + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=168&width=194&top_left_y=864&top_left_x=588) + +$\mathrm{a}$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=157&width=143&top_left_y=864&top_left_x=794) + +$\mathrm{b}$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=148&top_left_y=868&top_left_x=937) + +c + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=148&top_left_y=868&top_left_x=1091) + +d + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=146&top_left_y=868&top_left_x=1246) + +e + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=154&width=149&top_left_y=868&top_left_x=1393) + +f + +Figure 3 + +15. On each face of two dice some positive integer is written. The two dice are thrown and the numbers on the top faces are added. Determine whether one can select the integers on the faces so that the possible sums are $2,3,4,5,6,7,8,9,10,11,12,13$, all equally likely? + +Solution. We can write 1, 2, 3, 4, 5, 6 on the sides of one die and 1, 1, 1, 7, 7, 7 on the sides of the other. Then each of the 12 possible sums appears in exactly 3 cases. + +16. Two circles, both with the same radius $r$, are placed in the plane without intersecting each other. A line in the plane intersects the first circle at the points $A, B$ and the other at the points $C, D$ so that $|A B|=|B C|=|C D|=14 \mathrm{~cm}$. Another line intersects the circles at points $E, F$ and $G, H$ respectively, so that $|E F|=|F G|=|G H|=6 \mathrm{~cm}$. Find the radius $r$. + +Solution. First, note that the centres $O_{1}$ and $O_{2}$ of the two circles lie on different sides of the line $E H-$ otherwise we have $r<12$ and $A B$ cannot be equal to 14 . Let $P$ be the intersection point of $E H$ and $O_{1} O_{2}$ (see Figure 4). Points $A$ and $D$ lie on the same side of the line $O_{1} O_{2}$ (otherwise the three lines $A D, E H$ and $O_{1} O_{2}$ would intersect in $P$ and $|A B|=|B C|=|C D|,|E F|=|F G|=|G H|$ would imply $|B C|=|F G|$, a contradiction). It is easy to see that $\left|O_{1} O_{2}\right|=2 \cdot\left|O_{1} P\right|=|A C|=28 \mathrm{~cm}$. Let $h=\left|O_{1} T\right|$ be the height of triangle $O_{1} E P$. Then we have $h^{2}=14^{2}-6^{2}=160$ from triangle $O_{1} T P$ and $r^{2}=h^{2}+3^{2}=169$ from triangle $O_{1} T F$. Thus $r=13 \mathrm{~cm}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=258&width=442&top_left_y=1981&top_left_x=684) + +Figure 4 + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-4.jpg?height=237&width=297&top_left_y=1983&top_left_x=1185) + +Figure 5 + +17. Let's consider three pairwise non-parallel straight lines in the plane. Three points are moving along these lines with different non-zero velocities, one on each line (we consider the movement as having taken place for infinite time and continuing infinitely in the future). Is it possible to determine these straight lines, the velocities of each moving point and their positions at some "zero" moment in such a way that the points never were, are or will be collinear? + +Solution. Yes, it is. First, place the three points at the vertices of an equilateral triangle at the "zero" moment and let them move with equal velocities along the straight lines determined by the sides of the +triangle as shown in Figure 5. Then, at any moment in the past or future, the points are located at the vertices of some equilateral triangle, and thus cannot be collinear. Finally, to make the velocities of the points also differ, take any non-zero constant vector such that its projections on the three lines have different lengths and add it to each of the velocity vectors. This is equivalent to making the whole picture "drift" across the plane with constant velocity, so the non-collinearity of our points is preserved (in fact, they are still located at the vertices of an equilateral triangle at any given moment). + +18. In the triangle $A B C$ we have $|A B|=15,|B C|=12$ and $|A C|=13$. Let the median $A M$ and bisector $B K$ intersect at point $O$, where $M \in B C, K \in A C$. Let $O L \perp A B$, where $L \in A B$. Prove that $\angle O L K=\angle O L M$. Solution. Let the line $O C$ intersect $A B$ in point $P$. As $A M$ is a median, we have $\frac{|A P|}{|P B|}=\frac{|A K|}{|K C|}$ (this obviously holds if $|A B|=|A C|$ and the equality is preserved under uniform compression of the plane along $B K)$. Applying the sine theorem to the triangles $A B K$ and $B C K$ we obtain $\frac{|A P|}{|P B|}=\frac{|A K|}{|K C|}=\frac{|A B|}{|B C|}=\frac{5}{4}$ (see Figure 6). As $|A P|+|P B|=|A B|=15$, we have $|A P|=\frac{25}{3}$ and $|P B|=\frac{20}{3}$. Thus $|A C|^{2}-|B C|^{2}=$ $25=|A P|^{2}-|B P|^{2}$ and $|A C|^{2}-|A P|^{2}=|B C|^{2}-|B P|^{2}$. Applying now the cosine theorem to the triangles $A P C$ and $B P C$ we get $\cos \angle A P C=\cos \angle B P C$, i.e., $P=L$. As above, we can use a compression of the plane to show that $K P \| B C$ and therefore $\angle O P K=\angle O C B$. As $|B M|=|M C|$ and $\angle B P C=90^{\circ}$ we have $\angle O C B=\angle O P M$. Combining these equalities, we get $\angle O L K=\angle O P K=\angle O C B=\angle O P M=\angle O L M$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-5.jpg?height=297&width=306&top_left_y=985&top_left_x=612) + +Figure 6 + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-5.jpg?height=280&width=300&top_left_y=999&top_left_x=929) + +Figure 7 + +![](https://cdn.mathpix.com/cropped/2024_04_17_38aae83e469137ba6b44g-5.jpg?height=297&width=297&top_left_y=999&top_left_x=1231) + +Figure 8 + +19. A convex quadrangle $A B C D$ is inscribed in a circle with the centre $O$. The angles $\angle A O B, \angle B O C, \angle C O D$ and $\angle D O A$, taken in some order, are of the same size as the angles of quadrangle $A B C D$. Prove that $A B C D$ is a square. + +Solution. As the quadrangle $A B C D$ is inscribed in a circle, we have $\angle A B C+\angle C D A=\angle B C D+\angle D A B=$ $180^{\circ}$. It suffices to show that if each of these angles is equal to $90^{\circ}$, then each of the angles $A O B, B O C$, $C O D$ and $D O A$ is also equal to $90^{\circ}$ and thus $A B C D$ is a square. We consider the two possible situations: + +(a) At least one of the diagonals of $A B C D$ is a diameter - say, $\angle A O B+\angle B O C=180^{\circ}$. Then $\angle A B C=$ $\angle C D A=90^{\circ}$ and at least two of the angles $A O B, B O C, C O D$ and $D O A$ must be $90^{\circ}$ : say, $\angle A O B=$ $\angle B O C=90^{\circ}$. Now, $\angle C O D=\angle D A B$ and $\angle D O A=\angle B C D$ (see Figure 7). Using the fact that $\frac{1}{2} \angle D O A=\angle D C A=\angle B C D-45^{\circ}$ we have $\angle B C D=\angle D A B=90^{\circ}$. + +(b) None of the diagonals of the quadrangle $A B C D$ is a diameter. Then $\angle A O B+\angle C O D=\angle B O C+$ $\angle D O A=180^{\circ}$ and no angle of the quadrangle $A B C D$ is equal to $90^{\circ}$. Consequently, none of the angles $A O B, B O C, C O D$ and $D O A$ is equal to $90^{\circ}$. Without loss of generality we assume that $\angle A O B>90^{\circ}$, $\angle B O C>90^{\circ}$ (see Figure 8). Then $\angle A B C<90^{\circ}$ and thus $\angle A B C=\angle C O D$ or $\angle A B C=\angle D O A$. As $\angle C O D+\angle D O A=\angle A O C=2 \angle A B C$, we have $\angle C O D=\angle D O A$ and $\angle A O B+\angle D O A=180^{\circ}$, a contradiction. + +20. Let $Q$ be a unit cube. We say a tetrahedron is "good" if all its edges are equal and all its vertices lie on the boundary of $Q$. Find all possible volumes of "good" tetrahedra. + +Solution. Clearly, the volume of a regular tetrahedron contained in a sphere reaches its maximum value if and only if all four vertices of the tetrahedron lie on the surface of the sphere. Therefore, a "good" tetrahedron with maximum volume must have its vertices at the vertices of the cube (for a proof, inscribe the cube in a sphere). There are exactly two such tetrahedra, their volume being equal to $1-4 \cdot \frac{1}{6}=\frac{1}{3}$. On the other hand, one can find arbitrarily small "good" tetrahedra by applying homothety to the maximal tetrahedron, with the centre of the homothety in one of its vertices. + diff --git a/BalticWay/md/en-bw94sol.md b/BalticWay/md/en-bw94sol.md new file mode 100644 index 0000000000000000000000000000000000000000..58d56302e5458f483d59ecbc9b6978bb5d672a04 --- /dev/null +++ b/BalticWay/md/en-bw94sol.md @@ -0,0 +1,308 @@ +# Baltic Way 1994 + +## Tartu, November 11, 1994 + +## Problems and solutions + +1. Let $a \circ b=a+b-a b$. Find all triples $(x, y, z)$ of integers such that $(x \circ y) \circ z+(y \circ z) \circ x+(z \circ x) \circ y=0$. + +Solution. Note that + +$$ +(x \circ y) \circ z=x+y+z-x y-y z-x z+x y z=(x-1)(y-1)(z-1)+1 . +$$ + +Hence + +$$ +(x \circ y) \circ z+(y \circ z) \circ x+(z \circ x) \circ y=3((x-1)(y-1)(z-1)+1) \text {. } +$$ + +Now, if the required equality holds we have $(x-1)(y-1)(z-1)=-1$. There are only four possible decompositions of -1 into a product of three integers. Thus we have four such triples, namely $(0,0,0)$, $(0,2,2),(2,0,2)$ and $(2,2,0)$. + +2. Let $a_{1}, a_{2}, \ldots, a_{9}$ be any non-negative numbers such that $a_{1}=a_{9}=0$ and at least one of the numbers is non-zero. Prove that for some $i, 2 \leq i \leq 8$, the inequality $a_{i-1}+a_{i+1}<2 a_{i}$ holds. Will the statement remain true if we change the number 2 in the last inequality to $1.9 ?$ + +Solution. Suppose we have the opposite inequality $a_{i-1}+a_{i+1} \geq 2 a_{i}$ for all $i=2, \ldots, 8$. Let $a_{k}=\max _{1 \leq i \leq 9} a_{i}$. Then we have $a_{k-1}=a_{k+1}=a_{k}, a_{k-2}=a_{k-1}=a_{k}$, etc. Finally we get $a_{1}=a_{k}$, a contradiction. + +Suppose now $a_{i-1}+a_{i+1} \geq 1.9 a_{i}$, i.e., $a_{i+1} \geq 1.9 a_{i}-a_{i-1}$ for all $i=2, \ldots, 8$, and let $a_{k}=\max _{1 \leq i \leq 9} a_{i}$. We can multiply all numbers $a_{1}, \ldots, a_{9}$ by the same positive constant without changing the situation in any way, so we assume $a_{k}=1$. Then we have $a_{k-1}+a_{k+1} \geq 1.9$ and hence $0.9 \leq a_{k-1}, a_{k+1} \leq 1$. Moreover, at least one of the numbers $a_{k-1}, a_{k+1}$ must be greater than or equal to 0.95 - let us assume $a_{k+1} \geq 0.95$. Now, we consider two sub-cases: + +(a) $k \geq 5$. Then we have + +$$ +\begin{aligned} +1 \geq a_{k+1} & \geq 0.95>0 \\ +1 \geq a_{k+2} & \geq 1.9 a_{k+1}-a_{k} \geq 1.9 \cdot 0.95-1=0.805>0 \\ +a_{k+3} & \geq 1.9 a_{k+2}-a_{k+1} \geq 1.9 \cdot 0.805-1=0.5295>0 \\ +a_{k+4} & \geq 1.9 a_{k+3}-a_{k+2} \geq 1.9 \cdot 0.5295-1=0.00605>0 +\end{aligned} +$$ + +So in any case we have $a_{9}>0$, a contradiction. + +(b) $k \leq 4$. In this case we obtain + +$$ +\begin{aligned} +1 \geq a_{k-1} & \geq 0.9>0 \\ +a_{k-2} & \geq 1.9 a_{k-1}-a_{k} \geq 1.9 \cdot 0.9-1=0.71>0 \\ +a_{k-3} & \geq 1.9 a_{k-2}-a_{k-1} \geq 1.9 \cdot 0.71-1=0.349>0 +\end{aligned} +$$ + +and hence $a_{1}>0$, contrary to the condition of the problem. + +3. Find the largest value of the expression + +$$ +x y+x \sqrt{1-y^{2}}+y \sqrt{1-x^{2}}-\sqrt{\left(1-x^{2}\right)\left(1-y^{2}\right)} +$$ + +Solution. The expression is well-defined only for $|x|,|y| \leq 1$ and we can assume that $x, y \geq 0$. Let $x=\cos \alpha$ and $y=\cos \beta$ for some $0 \leq \alpha, \beta \leq \frac{\pi}{2}$. This reduces the expression to + +$$ +\cos \alpha \cos \beta+\cos \alpha \sin \beta+\cos \beta \sin \alpha-\sin \alpha \sin \beta=\cos (\alpha+\beta)+\sin (\alpha+\beta)=\sqrt{2} \cdot \sin \left(\alpha+\beta+\frac{\pi}{4}\right) +$$ + +which does not exceed $\sqrt{2}$. The equality holds when $\alpha+\beta+\frac{\pi}{4}=\frac{\pi}{2}$, for example when $\alpha=\frac{\pi}{4}$ and $\beta=0$, i.e., $x=\frac{\sqrt{2}}{2}$ and $y=1$. + +4. Is there an integer $n$ such that $\sqrt{n-1}+\sqrt{n+1}$ is a rational number? + +Solution. Inverting the relation gives + +$$ +\frac{q}{p}=\frac{1}{\sqrt{n+1}+\sqrt{n-1}}=\frac{\sqrt{n+1}-\sqrt{n-1}}{(\sqrt{n+1}+\sqrt{n-1})(\sqrt{n+1}-\sqrt{n-1})}=\frac{\sqrt{n+1}-\sqrt{n-1}}{2} . +$$ + +Hence we get the system of equations + +$$ +\left\{\begin{array}{l} +\sqrt{n+1}+\sqrt{n-1}=\frac{p}{q} \\ +\sqrt{n+1}-\sqrt{n-1}=\frac{2 q}{p} +\end{array}\right. +$$ + +Adding these equations and dividing by 2 gives $\sqrt{n+1}=\frac{2 q^{2}+p^{2}}{2 p q}$. This implies $4 n p^{2} q^{2}=4 q^{4}+p^{4}$. + +Suppose now that $n, p$ and $q$ are all positive integers with $p$ and $q$ relatively prime. The relation $4 n p^{2} q^{2}=$ $4 q^{4}+p^{4}$ shows that $p^{4}$, and hence $p$, is divisible by 2 . Letting $p=2 P$ we obtain $4 n P^{2} q^{2}=q^{4}+4 P^{4}$ which shows that $q$ must also be divisible by 2 . This contradicts the assumption that $p$ and $q$ are relatively prime. + +5. Let $p(x)$ be a polynomial with integer coefficients such that both equations $p(x)=1$ and $p(x)=3$ have integer solutions. Can the equation $p(x)=2$ have two different integer solutions? + +Solution. Observe first that if $a$ and $b$ are two different integers then $p(a)-p(b)$ is divisible by $a-b$. Suppose now that $p(a)=1$ and $p(b)=3$ for some integers $a$ and $b$. If we have $p(c)=2$ for some integer $c$, then $c-b= \pm 1$ and $c-a= \pm 1$, hence there can be at most one such integer $c$. + +6. Prove that any irreducible fraction $\frac{p}{q}$, where $p$ and $q$ are positive integers and $q$ is odd, is equal to a fraction $\frac{n}{2^{k}-1}$ for some positive integers $n$ and $k$. + +Solution. Since the number of congruence classes modulo $q$ is finite, there exist two non-negative integers $i$ and $j$ with $i>j$ which satisfy $2^{i} \equiv 2^{j}(\bmod q)$. Hence, $q$ divides the number $2^{i}-2^{j}=2^{j}\left(2^{i-j}-1\right)$. Since $q$ is odd, $q$ has to divide $2^{i-j}-1$. Now it suffices to multiply the numerator and denominator of the fraction $\frac{p}{q}$ by $\frac{2^{i-j}-1}{q}$. + +7. Let $p>2$ be a prime number and $1+\frac{1}{2^{3}}+\frac{1}{3^{3}}+\cdots+\frac{1}{(p-1)^{3}}=\frac{m}{n}$ where $m$ and $n$ are relatively prime. Show that $m$ is a multiple of $p$. + +Solution. The sum has an even number of terms; they can be joined in pairs in such a way that the sum is the sum of the terms + +$$ +\frac{1}{k^{3}}+\frac{1}{(p-k)^{3}}=\frac{p^{3}-3 p^{2} k+3 p k^{2}}{k^{3}(p-k)^{3}} . +$$ + +The sum of all terms of this type has a denominator in which every prime factor is less than $p$ while the numerator has $p$ as a factor. + +8. Show that for any integer $a \geq 5$ there exist integers $b$ and $c, c \geq b \geq a$, such that $a, b, c$ are the lengths of the sides of a right-angled triangle. + +Solution. We first show this for odd numbers $a=2 i+1 \geq 3$. Put $c=2 k+1$ and $b=2 k$. Then $c^{2}-b^{2}=(2 k+1)^{2}-(2 k)^{2}=4 k+1=a^{2}$. Now $a=2 i+1$ and thus $a^{2}=4 i^{2}+4 i+1$ and $k=i^{2}+i$. Furthermore, $c>b=2 i^{2}+2 i>2 i+1=a$. + +Since any multiple of a Pythagorean triple (i.e., a triple of integers $(x, y, z)$ such that $x^{2}+y^{2}=z^{2}$ ) is also a Pythagorean triple we see that the statement is also true for all even numbers which have an odd factor. Hence only the powers of 2 remain. But for 8 we have the triple $(8,15,17)$ and hence all higher powers of 2 are also minimum values of such a triple. + +9. Find all pairs of positive integers $(a, b)$ such that $2^{a}+3^{b}$ is the square of an integer. + +Solution. Considering the equality $2^{a}+3^{b}=n^{2}$ modulo 3 it is easy to see that $a$ must be even. Obviously $n$ is odd so we may take $a=2 x, n=2 y+1$ and write the equality as $4^{x}+3^{b}=(2 y+1)^{2}=4 y^{2}+4 y+1$. Hence $3^{b} \equiv 1(\bmod 4)$ which implies $b=2 z$ for some positive integer $z$. So we get $4^{x}+9^{z}=(2 y+1)^{2}$ and $4^{x}=\left(2 y+1-3^{z}\right)\left(2 y+1+3^{z}\right)$. Both factors on the right-hand side are even numbers but at most one of them is divisible by 4 (since their sum is not divisible by 4 ). Hence $2 y+1-3^{z}=2$ and $2 y+1+3^{z}=2^{2 x-1}$. These two equalities yield $2 \cdot 3^{z}=2^{2 x-1}-2$ and $3^{z}=4^{x-1}-1$. Clearly $x>1$ and a simple argument +modulo 10 gives $z=4 d+1, x-1=2 e+1$ for some non-negative integers $d$ and $e$. Substituting, we get $3^{4 d+1}=4^{2 e+1}-1$ and $3 \cdot(80+1)^{d}=4^{2 e+1}-1$. If $d \geq 1$ then $e \geq 1$, a contradiction (expanding the left-hand expression and moving everything to the left we find that all summands but one are divisible by $4^{2}$ ). Hence $e=d=0, z=1, b=2, x=2$ and $a=4$, and we obtain the classical $2^{4}+3^{2}=4^{2}+3^{2}=5^{2}$. + +10. How many positive integers satisfy the following three conditions: + +(i) All digits of the number are from the set $\{1,2,3,4,5\}$; + +(ii) The absolute value of the difference between any two consecutive digits is 1 ; + +(iii) The integer has 1994 digits? + +Solution. Consider all positive integers with $2 n$ digits satisfying conditions $(i)$ and (ii) of the problem. Let the number of such integers beginning with $1,2,3,4$ and 5 be $a_{n}, b_{n}, c_{n}, d_{n}$ and $e_{n}$, respectively. Then, for $n=1$ we have $a_{1}=1$ (integer 12), $b_{1}=2$ (integers 21 and 23), $c_{1}=2$ (integers 32 and 34$), d_{1}=2$ (integers 43 and 45) and $e_{1}=1$ (integer 54). Observe that $c_{1}=a_{1}+e_{1}$. + +Suppose now that $n>1$, i.e., the integers have at least four digits. If an integer begins with the digit 1 then the second digit is 2 while the third can be 1 or 3 . This gives the relation + +$$ +a_{n}=a_{n-1}+c_{n-1} \text {. } +$$ + +Similarly, if the first digit is 5 , then the second is 4 while the third can be 3 or 5 . This implies + +$$ +e_{n}=c_{n-1}+e_{n-1} +$$ + +If the integer begins with 23 then the third digit is 2 or 4 . If the integer begins with 21 then the third digit is 2 . From this we can conclude that + +$$ +b_{n}=2 b_{n-1}+d_{n-1} \text {. } +$$ + +In the same manner we can show that + +$$ +d_{n}=b_{n-1}+2 d_{n-1} . +$$ + +If the integer begins with 32 then the third digit must be 1 or 3 , and if it begins with 34 the third digit is 3 or 5 . Hence + +$$ +c_{n}=a_{n-1}+2 c_{n-1}+e_{n-1} \text {. } +$$ + +From (1), (2) and (5) it follows that $c_{n}=a_{n}+e_{n}$, which is true for all $n \geq 1$. On the other hand, adding the relations (1)-(5) results in + +$$ +a_{n}+b_{n}+c_{n}+d_{n}+e_{n}=2 a_{n-1}+3 b_{n-1}+4 c_{n-1}+3 d_{n-1}+2 e_{n-1} +$$ + +and, since $c_{n-1}=a_{n-1}+e_{n-1}$, + +$$ +a_{n}+b_{n}+c_{n}+d_{n}+e_{n}=3\left(a_{n-1}+b_{n-1}+c_{n-1}+d_{n-1}+e_{n-1}\right) +$$ + +Thus the number of integers satisfying conditions $(i)$ and $(i i)$ increases three times when we increase the number of digits by 2 . Since the number of such integers with two digits is 8 , and $1994=2+2 \cdot 996$, the number of integers satisfying all three conditions is $8 \cdot 3^{996}$. + +11. Let $N S$ and $E W$ be two perpendicular diameters of a circle $\mathcal{C}$. A line $l$ touches $\mathcal{C}$ at point $S$. Let $A$ and $B$ be two points on $\mathcal{C}$, symmetric with respect to the diameter $E W$. Denote the intersection points of $l$ with the lines $N A$ and $N B$ by $A^{\prime}$ and $B^{\prime}$, respectively. Show that $\left|S A^{\prime}\right| \cdot\left|S B^{\prime}\right|=|S N|^{2}$. + +Solution. We have $\angle N A S=\angle N B S=90^{\circ}$ (see Figure 1). Thus, the triangles $N A^{\prime} S$ and $N S A$ are similar. Also, the triangles $B^{\prime} N S$ and $S N B$ are similar and the triangles $N S A$ and $S N B$ are congruent. Hence, the triangles $N A^{\prime} S$ and $B^{\prime} N S$ are similar which implies $\frac{S A^{\prime}}{S N}=\frac{S N}{S B^{\prime}}$ and $S A^{\prime} \cdot S B^{\prime}=S N^{2}$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_bbd51418f58e9fd65d6eg-4.jpg?height=457&width=1079&top_left_y=228&top_left_x=500) + +Figure 1 + +12. The inscribed circle of the triangle $A_{1} A_{2} A_{3}$ touches the sides $A_{2} A_{3}, A_{3} A_{1}$ and $A_{1} A_{2}$ at points $S_{1}, S_{2}, S_{3}$, respectively. Let $O_{1}, O_{2}, O_{3}$ be the centres of the inscribed circles of triangles $A_{1} S_{2} S_{3}, A_{2} S_{3} S_{1}$ and $A_{3} S_{1} S_{2}$, respectively. Prove that the straight lines $O_{1} S_{1}, O_{2} S_{2}$ and $O_{3} S_{3}$ intersect at one point. + +Solution. We shall prove that the lines $S_{1} O_{1}, S_{2} O_{2}, S_{3} O_{3}$ are the bisectors of the angles of the triangle $S_{1} S_{2} S_{3}$. Let $O$ and $r$ be the centre and radius of the inscribed circle $C$ of the triangle $A_{1} A_{2} A_{3}$. Further, let $P_{1}$ and $H_{1}$ be the points where the inscribed circle of the triangle $A_{1} S_{2} S_{3}$ (with the centre $O_{1}$ and radius $r_{1}$ ) touches its sides $A_{1} S_{2}$ and $S_{2} S_{3}$, respectively (see Figure 2). To show that $S_{1} O_{1}$ is the bisector of the angle $\angle S_{3} S_{1} S_{2}$ it is sufficient to prove that $O_{1}$ lies on the circumference of circle $C$, for in this case the arcs $O_{1} S_{2}$ and $O_{1} S_{3}$ will obviously be equal. To prove this, first note that as $A_{1} S_{2} S_{3}$ is an isosceles triangle the point $H_{1}$, as well as $O_{1}$, lies on the straight line $A_{1} O$. Now, it suffices to show that $\left|O H_{1}\right|=r-r_{1}$. Indeed, we have + +$$ +\begin{aligned} +& \frac{r-r_{1}}{r}=1-\frac{r_{1}}{r}=1-\frac{\left|O_{1} P_{1}\right|}{\left|O S_{2}\right|}=1-\frac{\left|P_{1} A_{1}\right|}{\left|S_{2} A_{1}\right|}=\frac{\left|S_{2} A_{1}\right|-\left|P_{1} A_{1}\right|}{\left|S_{2} A_{1}\right|} \\ +& =\frac{\left|S_{2} P_{1}\right|}{\left|S_{2} A_{1}\right|}=\frac{\left|S_{2} H_{1}\right|}{\left|S_{2} A_{1}\right|}=\frac{\left|O H_{1}\right|}{\left|O S_{2}\right|}=\frac{\left|O H_{1}\right|}{r} . +\end{aligned} +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_bbd51418f58e9fd65d6eg-4.jpg?height=391&width=671&top_left_y=1489&top_left_x=744) + +Figure 2 + +13. Find the smallest number $a$ such that a square of side $a$ can contain five disks of radius 1 so that no two of the disks have a common interior point. + +Solution. Let $P Q R S$ be a square which has the property described in the problem. Clearly, $a>2$. Let $P^{\prime} Q^{\prime} R^{\prime} S^{\prime}$ be the square inside $P Q R S$ whose sides are at distance 1 from the sides of $P Q R S$, and, consequently, are of length $a-2$. Since all the five disks are inside $P Q R S$, their centres are inside $P^{\prime} Q^{\prime} R^{\prime} S^{\prime}$. Divide $P^{\prime} Q^{\prime} R^{\prime} S^{\prime}$ into four congruent squares of side length $\frac{a}{2}-1$. By the pigeonhole principle, at least two of the five centres are in the same small square. Their distance, then, is at most $\sqrt{2}\left(\frac{a}{2}-1\right)$. Since the distance has to be at least 2 , we have $a \geq 2+2 \sqrt{2}$. On the other hand, if $a=2+2 \sqrt{2}$, we can place the five disks in such a way that one is centred at the centre of $P Q R S$ and the other four have centres at $P^{\prime}, Q^{\prime}$, $R^{\prime}$ and $S^{\prime}$. + +14. Let $\alpha, \beta, \gamma$ be the angles of a triangle opposite to its sides with lengths $a, b$ and $c$, respectively. Prove the inequality + +$$ +a \cdot\left(\frac{1}{\beta}+\frac{1}{\gamma}\right)+b \cdot\left(\frac{1}{\gamma}+\frac{1}{\alpha}\right)+c \cdot\left(\frac{1}{\alpha}+\frac{1}{\beta}\right) \geq 2 \cdot\left(\frac{a}{\alpha}+\frac{b}{\beta}+\frac{c}{\gamma}\right) \cdot +$$ + +Solution. Clearly, the inequality $a>b$ implies $\alpha>\beta$ and similarly $a1$ and consider an arbitrary town $A$ on the $j$-th island. The number of ferry connections from town $A$ is equal to $25-a_{j}$. On the other hand, if we "move" town $A$ to the $i$-th island then there will be $25-\left(a_{i}+1\right)$ connections from town $A$ while no other connections will be affected by this move. Hence, the smallest number of connections will be achieved if there are 13 towns on one island and one town on each of the other 12 islands. In this case there will be $13 \cdot 12+\frac{12 \cdot 11}{2}=222$ connections. + +18. There are $n$ lines $(n>2)$ given in the plane. No two of the lines are parallel and no three of them intersect at one point. Every point of intersection of these lines is labelled with a natural number between 1 and $n-1$. Prove that, if and only if $n$ is even, it is possible to assign the labels in such a way that every line has all the numbers from 1 to $n-1$ at its points of intersection with the other $n-1$ lines. + +Solution. Suppose we have assigned the labels in the required manner. When a point has label 1 then there can be no more occurrences of label 1 on the two lines that intersect at that point. Therefore the number of intersection points labelled with 1 has to be exactly $\frac{n}{2}$, and so $n$ must be even. Now, let $n$ be an even number and denote the $n$ lines by $l_{1}, l_{2}, \ldots, l_{n}$. First write the lines $l_{i}$ in the following table: + +$$ +\begin{array}{llllll} +& & l_{3} & l_{4} & \ldots & l_{n / 2+1} \\ +l_{1} & l_{2} & & & & \\ +& & l_{n} & l_{n-1} & \ldots & l_{n / 2+2} +\end{array} +$$ + +and then rotate the picture $n-1$ times: + +$$ +\begin{array}{llllll} +& & l_{2} & l_{3} & \ldots & l_{n / 2} \\ +l_{1} & l_{n} & l_{n-1} & l_{n-2} & \ldots & l_{n / 2+1} \\ +& & & & & \\ +& & l_{n} & l_{2} & \ldots & l_{n / 2-1} \\ +l_{1} & l_{n-1} & & & & l_{n / 2} +\end{array} +$$ + +etc. + +According to these tables, we can join the lines in pairs in $n-1$ different ways $-l_{1}$ with the line next to it and every other line with the line directly above or under it. Now we can assign the label $i$ to all the intersection points of the pairs of lines shown in the $i$ th table. + +19. The Wonder Island Intelligence Service has 16 spies in Tartu. Each of them watches on some of his colleagues. It is known that if spy $A$ watches on spy $B$ then $B$ does not watch on $A$. Moreover, any 10 spies can be numbered in such a way that the first spy watches on the second, the second watches on the third, .., the tenth watches on the first. Prove that any 11 spies can also be numbered in a similar manner. + +Solution. We call two spies $A$ and $B$ neutral to each other if neither $A$ watches on $B$ nor $B$ watches on $A$. + +Denote the spies $A_{1}, A_{2}, \ldots, A_{16}$. Let $a_{i}, b_{i}$ and $c_{i}$ denote the number of spies that watch on $A_{i}$, the number of that are watched by $A_{i}$ and the number of spies neutral to $A_{i}$, respectively. Clearly, we have + +$$ +\begin{aligned} +a_{i}+b_{i}+c_{i} & =15, \\ +a_{i}+c_{i} & \leq 8, \\ +b_{i}+c_{i} & \leq 8 +\end{aligned} +$$ + +for any $i=1, \ldots, 16$ (if any of the last two inequalities does not hold then there exist 10 spies who cannot be numbered in the required manner). Combining the relations above we find $c_{i} \leq 1$. Hence, for any spy, the number of his neutral colleagues is 0 or 1 . + +Now suppose there is a group of 11 spies that cannot be numbered as required. Let $B$ be an arbitrary spy in this group. Number the other 10 spies as $C_{1}, C_{2}, \ldots, C_{10}$ so that $C_{1}$ watches on $C_{2}, \ldots, C_{10}$ watches on $C_{1}$. Suppose there is no spy neutral to $B$ among $C_{1}, \ldots, C_{10}$. Then, if $C_{1}$ watches on $B$ then $B$ cannot watch on $C_{2}$, as otherwise $C_{1}, B, C_{2}, \ldots, C_{10}$ would form an 11-cycle. So $C_{2}$ watches on $B$, etc. As some of the spies $C_{1}, C_{2}, \ldots, C_{10}$ must watch on $B$ we get all of them watching on $B$, a contradiction. Therefore, each of the 11 spies must have exactly one spy neutral to him among the other 10 - but this is impossible. + +20. An equilateral triangle is divided into 9000000 congruent equilateral triangles by lines parallel to its sides. Each vertex of the small triangles is coloured in one of three colours. Prove that there exist three points of the same colour being the vertices of a triangle with its sides parallel to the sides of the original triangle. + +Solution. Consider the side $A B$ of the big triangle $A B C$ as "horizontal" and suppose the statement of the problem does not hold. The side $A B$ contains 3001 vertices $A=A_{0}, A_{1}, \ldots, A_{3000}=B$ of 3 colours. Hence, there are at least 1001 vertices of one colour, e.g., red. For any two red vertices $A_{k}$ and $A_{n}$ there exists a unique vertex $B_{k n}$ such that the triangle $B_{k n} A_{k} A_{n}$ is equilateral. That vertex $B_{k n}$ cannot be red. For different pairs $(k, n)$ the corresponding vertices $B_{k n}$ are different, so we have at least $\left(\begin{array}{c}1001 \\ 2\end{array}\right)>500000$ vertices of type $B_{k n}$ that cannot be red. As all these vertices are situated on 3000 horizontal lines, there exists a line $L$ which contains more than 160 vertices of type $B_{k n}$, each of them coloured in one of the two remaining colours. Hence there exist at least 81 vertices of the same colour, e.g., blue, on line $L$. For every two blue vertices $B_{k n}$ and $B_{m l}$ on line $L$ there exists a unique vertex $C_{k n m l}$ such that: + +(i) $C_{k n m l}$ lies above the line $L$; + +(ii) The triangle $C_{k n m l} B_{k n} B_{m l}$ is equilateral; + +(iii) $C_{k n m l}=B_{p q}$ where $p=\min (k, m)$ and $q=\max (n, l)$. + +Different pairs of vertices $B_{k n}$ belonging to line $L$ define different vertices $C_{k n m l}$. So we have at least $\left(\begin{array}{c}81 \\ 2\end{array}\right)>3200$ vertices of type $C_{k n m l}$ that can be neither blue nor red. As the number of these vertices exceeds the number of horizontal lines, there must be two vertices $C_{k n m l}$ and $C_{p q r s}$ on one horizontal line. Now, these two vertices define a new vertex $D_{\text {knmlpqrs }}$ that cannot have any of the three colours, a contradiction. + +Remark. The minimal size of the big triangle that can be handled by this proof is 2557 . + diff --git a/BalticWay/md/en-bw95sol.md b/BalticWay/md/en-bw95sol.md new file mode 100644 index 0000000000000000000000000000000000000000..9af76eb060d790fce7e7249ac6a7f033f9b76a3f --- /dev/null +++ b/BalticWay/md/en-bw95sol.md @@ -0,0 +1,227 @@ +# Baltic Way 1995 + +## Västerås (Sweden), November 12, 1995 + +## Problems and solutions + +1. Find all triples $(x, y, z)$ of positive integers satisfying the system of equations + +$$ +\left\{\begin{array}{l} +x^{2}=2(y+z) \\ +x^{6}=y^{6}+z^{6}+31\left(y^{2}+z^{2}\right) +\end{array}\right. +$$ + +Solution. From the first equation it follows that $x$ is even. The second equation implies $x>y$ and $x>z$. Hence $4 x>2(y+z)=x^{2}$, and therefore $x=2$ and $y+z=2$, so $y=z=1$. It is easy to check that the triple $(2,1,1)$ satisfies the given system of equations. + +2. Let $a$ and $k$ be positive integers such that $a^{2}+k$ divides $(a-1) a(a+1)$. Prove that $k \geq a$. + +Solution. We have $(a-1) a(a+1)=a\left(a^{2}+k\right)-(k+1) a$. Hence $a^{2}+k$ divides $(k+1) a$, and thus $k+1 \geq a$, or equivalently, $k \geq a$. + +3. The positive integers $a, b, c$ are pairwise relatively prime, $a$ and $c$ are odd and the numbers satisfy the equation $a^{2}+b^{2}=c^{2}$. Prove that $b+c$ is a square of an integer. + +Solution. Since $a$ and $c$ are odd, $b$ must be even. We have $a^{2}=c^{2}-b^{2}=(c+b)(c-b)$. Let $d=\operatorname{gcd}(c+b, c-b)$. Then $d$ divides $(c+b)+(c-b)=2 c$ and $(c+b)-(c-b)=2 b$. Since $c+b$ and $c-b$ are odd, $d$ is odd, and hence $d$ divides both $b$ and $c$. But $b$ and $c$ are relatively prime, so $d=1$, i.e., $c+b$ and $c-b$ are also relatively prime. Since $(c+b)(c-b)=a^{2}$ is a square, it follows that $c+b$ and $c-b$ are also squares. In particular, $b+c$ is a square as required. + +4. John is older than Mary. He notices that if he switches the two digits of his age (an integer), he gets Mary's age. Moreover, the difference between the squares of their ages is the square of an integer. How old are Mary and John? + +Solution. Let John's age be $10 a+b$ where $0 \leq a, b \leq 9$. Then Mary's age is $10 b+a$, and hence $a>b$. Now + +$$ +(10 a+b)^{2}-(10 b+a)^{2}=9 \cdot 11(a+b)(a-b) . +$$ + +Since this is the square of an integer, $a+b$ or $a-b$ must be divisible by 11 . The only possibility is clearly $a+b=11$. Hence $a-b$ must be a square. A case study yields the only possibility $a=6, b=5$. Thus John is 65 and Mary 56 years old. + +5. Let $an^{2}+n+1$, the first player can take at most $n^{2}$ pebbles, leaving at least $n+1$ pebbles on the table. By the assumption, the second player now wins. This contradiction proves that there are infinitely many situations in which the second player wins no matter how the first player plays. + +14. There are $n$ fleas on an infinite sheet of triangulated paper. Initially the fleas are in different small triangles, all of which are inside some equilateral triangle consisting of $n^{2}$ small triangles (see Figure 1 for a possible initial configuration with $n=5$ ). Once a second each flea jumps from its triangle to one of the three small triangles as indicated in the figure. For which positive integers $n$ does there exist an initial configuration such that after a finite number of jumps all the $n$ fleas can meet in a single small triangle? + +![](https://cdn.mathpix.com/cropped/2024_04_17_e0eeca76de2a70e8352dg-3.jpg?height=571&width=751&top_left_y=2076&top_left_x=664) + +Figure 1 + +Solution. The small triangles can be coloured in four colours as shown in Figure 2. Then each flea can only reach triangles of a single colour. Moreover, number the horizontal rows are numbered as in Figure 2, and note that with each move a flea jumps from a triangle in an even-numbered row to a triangle in an odd-numbered row, or vice versa. Hence, if all the fleas are to meet in one small triangle, then they must initially be located in triangles of the same colour and in rows of the same parity. On the other hand, if these conditions are met, then the fleas can end up all in some designated triangle (of the right colour and parity). When a flea reaches this triangle, it can jump back and forth between the designated triangle and one of its neighbours until the other fleas arrive. + +It remains to find the values of $n$ for which the big triangle contains at least $n$ small triangles of one colour, in rows of the same parity. For any odd $n$ there are at least $1+2+\cdots+\frac{n+1}{2}=\frac{1}{8}\left(n^{2}+4 n+3\right) \geq n$ such triangles. For even $n \geq 6$ we also have at least $1+2+\cdots+\frac{n}{2}=\frac{1}{8}\left(n^{2}+2 n\right) \geq n$ triangles of the required kind. Finally, it is easy to check that for $n=2$ and $n=4$ the necessary set of small triangles cannot be found. + +Hence it is possible for the fleas to meet in one small triangle for all $n$ except 2 and 4 . + +![](https://cdn.mathpix.com/cropped/2024_04_17_e0eeca76de2a70e8352dg-4.jpg?height=371&width=448&top_left_y=894&top_left_x=818) + +Figure 2 + +15. A polygon with $2 n+1$ vertices is given. Show that it is possible to label the vertices and midpoints of the sides of the polygon, using all the numbers $1,2, \ldots, 4 n+2$, so that the sums of the three numbers assigned to each side are all equal. + +Solution. First, label the midpoints of the sides of the polygon with the numbers $1,2, \ldots, 2 n+1$, in clockwise order. Then, beginning with the vertex between the sides labelled by 1 and 2 , label every second vertex in clockwise order with the numbers $4 n+2,4 n+1, \ldots, 2 n+2$. + +16. In the triangle $A B C$, let $l$ be the bisector of the external angle at $C$. The line through the midpoint $O$ of the segment $A B$ parallel to $l$ meets the line $A C$ at $E$. Determine $|C E|$, if $|A C|=7$ and $|C B|=4$. + +Solution. Let $F$ be the intersection point of $l$ and the line $A B$. Since $|A C|>|B C|$, the point $E$ lies on the segment $A C$, and $F$ lies on the ray $A B$. Let the line through $B$ parallel to $A C$ meet $C F$ at $G$. Then the triangles $A F C$ and $B F G$ are similar. Moreover, we have $\angle B G C=\angle B C G$, and hence the triangle $C B G$ is isosceles with $|B C|=|B G|$. Hence $\frac{|F A|}{|F B|}=\frac{|A C|}{|B G|}=\frac{|A C|}{|B C|}=\frac{7}{4}$. Therefore $\frac{|A O|}{|A F|}=\frac{3}{2} / 7=\frac{3}{14}$. Since the triangles $A C F$ and $A E O$ are similar, $\frac{|A E|}{|A C|}=\frac{|A O|}{|A F|}=\frac{3}{14}$, whence $|A E|=\frac{3}{2}$ and $|E C|=\frac{11}{2}$. + +17. Prove that there exists a number $\alpha$ such that for any triangle $A B C$ the inequality + +$$ +\max \left(h_{A}, h_{B}, h_{C}\right) \leq \alpha \cdot \min \left(m_{A}, m_{B}, m_{C}\right) +$$ + +holds, where $h_{A}, h_{B}, h_{C}$ denote the lengths of the altitudes and $m_{A}, m_{B}, m_{C}$ denote the lengths of the medians. Find the smallest possible value of $\alpha$. + +Solution. Let $h=\max \left(h_{A}, h_{B}, h_{C}\right)$ and $m=\min \left(m_{A}, m_{B}, m_{C}\right)$. If the longest height and the shortest median are drawn from the same vertex, then obviously $h \leq m$. Now let the longest height and shortest median be $A D$ and $B E$, respectively, with $|A D|=h$ and $|B E|=m$. Let $F$ be the point on the line $B C$ such that $E F$ is parallel to $A D$. Then $m=|E B| \geq|E F|=\frac{h}{2}$, whence $h \leq 2 m$. For an example with $h=2 m$, consider a triangle where $D$ lies on the ray $C B$ with $|C B|=|B D|$. Hence the smallest such value is $\alpha=2$. + +18. Let $M$ be the midpoint of the side $A C$ of a triangle $A B C$ and let $H$ be the foot point of the altitude from $B$. Let $P$ and $Q$ be the orthogonal projections of $A$ and $C$ on the bisector of angle $B$. Prove that the four points $M, H, P$ and $Q$ lie on the same circle. + +Solution. If $|A B|=|B C|$, the points $M, H, P$ and $Q$ coincide and the circle degenerates to a point. We will assume that $|A B|<|B C|$, so that $P$ lies inside the triangle $A B C$, and $Q$ lies outside of it. + +Let the line $A P$ intersect $B C$ at $P_{1}$, and let $C Q$ intersect $A B$ at $Q_{1}$. Then $|A P|=\left|P P_{1}\right|$ (since $\triangle A P B \cong$ $\left.\triangle P_{1} P B\right)$, and therefore $M P \| B C$. Similarly, $M Q \| A B$. Therefore $\angle A M Q=\angle B A C$. We have two cases: + +(i) $\angle B A C \leq 90^{\circ}$. Then $A, H, P$ and $B$ lie on a circle in this order. Hence $\angle H P Q=180^{\circ}-\angle H P B=$ $\angle B A C=\angle H M Q$. Therefore $H, P, M$ and $Q$ lie on a circle. + +(ii) $\angle B A C>90^{\circ}$. Then $A, H, B$ and $P$ lie on a circle in this order. Hence $\angle H P Q=180^{\circ}-\angle H P B=$ $180^{\circ}-\angle H A B=\angle B A C=\angle H M Q$, and therefore $H, P, M$ and $Q$ lie on a circle. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e0eeca76de2a70e8352dg-5.jpg?height=646&width=651&top_left_y=682&top_left_x=720) + +Figure 3 + +19. The following construction is used for training astronauts: A circle $C_{2}$ of radius $2 R$ rolls along the inside of another, fixed circle $C_{1}$ of radius $n R$, where $n$ is an integer greater than 2 . The astronaut is fastened to a third circle $C_{3}$ of radius $R$ which rolls along the inside of circle $C_{2}$ in such a way that the touching point of the circles $C_{2}$ and $C_{3}$ remains at maximum distance from the touching point of the circles $C_{1}$ and $C_{2}$ at all times (see Figure 3). + +How many revolutions (relative to the ground) does the astronaut perform together with the circle $C_{3}$ while the circle $C_{2}$ completes one full lap around the inside of circle $C_{1}$ ? + +Solution. Consider a circle $C_{4}$ with radius $R$ that rolls inside $C_{2}$ in such a way that the two circles always touch in the point opposite to the touching point of $C_{2}$ and $C_{3}$. Then the circles $C_{3}$ and $C_{4}$ follow each other and make the same number of revolutions, and so we will assume that the astronaut is inside the circle $C_{4}$ instead. But the touching point of $C_{2}$ and $C_{4}$ coincides with the touching point of $C_{1}$ and $C_{2}$. Hence the circles $C_{4}$ and $C_{1}$ always touch each other, and we can disregard the circle $C_{2}$ completely. + +Suppose the circle $C_{4}$ rolls inside $C_{1}$ in counterclockwise direction. Then the astronaut revolves in clockwise direction. If the circle $C_{4}$ had rolled along a straight line of length $2 \pi n R$ (instead of the inside of $C_{1}$ ), the circle $C_{4}$ would have made $n$ revolutions during its movement. As the path of the circle $C_{4}$ makes a $360^{\circ}$ counterclockwise turn itself, the total number of revolutions of the astronaut relative to the ground is $n-1$. + +Remark: The radius of the intermediate circle $C_{2}$ is irrelevant. Moreover, for any number of intermediate circles the answer remains the same, depending only on the radii of the outermost and innermost circles. + +20. Prove that if both coordinates of every vertex of a convex pentagon are integers, then the area of this pentagon is not less than $\frac{5}{2}$. + +Solution. There are two vertices $A_{1}$ and $A_{2}$ of the pentagon that have their first coordinates of the parity, and their second coordinates of the same parity. Therefore the midpoint $M$ of $A_{1} A_{2}$ has integer coordinates. There are two possibilities: + +(i) The considered vertices are not consecutive. Then $M$ lies inside the pentagon (because it is convex) and is the common vertex of five triangles having as their bases the sides of the pentagon. The area of any one of these triangles is not less than $\frac{1}{2}$, so the area of the pentagon is at least $\frac{5}{2}$. +(ii) The considered vertices are consecutive. Since the pentagon is convex, the side $A_{1} A_{2}$ is not simultaneously parallel to $A_{3} A_{4}$ and $A_{4} A_{5}$. Suppose that the segments $A_{1} A_{2}$ and $A_{3} A_{4}$ are not parallel. Then the triangles $A_{2} A_{3} A_{4}, M A_{3} A_{4}$ and $A-1 A_{3} A_{4}$ have different areas, since their altitudes dropped onto the side $A_{3} A_{4}$ form a monotone sequence. At least one of these triangles has area not less than $\frac{3}{2}$, and the pentagon has area not less than $\frac{5}{2}$. + diff --git a/BalticWay/md/en-bw96sol.md b/BalticWay/md/en-bw96sol.md new file mode 100644 index 0000000000000000000000000000000000000000..39c1a1a0aef936b1062742f338b214824feac41c --- /dev/null +++ b/BalticWay/md/en-bw96sol.md @@ -0,0 +1,262 @@ +# Baltic Way 1996 + +## Valkeakoski (Finland), November 3, 1996 + +## Problems and solutions + +1. Let $\alpha$ be the angle between two lines containing the diagonals of a regular 1996-gon, and let $\beta \neq 0$ be another such angle. Prove that $\alpha / \beta$ is a rational number. + +Solution. Let $O$ be the circumcentre of the 1996-gon. Consider two diagonals $A B$ and $C D$. There is a rotation around $O$ that takes the point $C$ to $A$ and $D$ to a point $D^{\prime}$. Clearly the angle of this rotation is a multiple of $2 \varphi=2 \pi / 1996$. + +The angle $B A D^{\prime}$ is the inscribed angle on the $\operatorname{arc} B D^{\prime}$, and hence is an integral multiple of $\varphi$, the inscribed angle on the arc between any two adjacent vertices of the 1996-gon. Hence the angle between $A B$ and $C D$ is also an integral multiple of $\varphi$. + +Since both $\alpha$ and $\beta$ are integral multiples of $\varphi, \alpha / \beta$ is a rational number. + +2. In the figure below, you see three half-circles. The circle $C$ is tangent to two of the half-circles and to the line $P Q$ perpendicular to the diameter $A B$. The area of the shaded region is $39 \pi$, and the area of the circle $C$ is $9 \pi$. Find the length of the diameter $A B$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e2580b6720254e51741dg-1.jpg?height=288&width=500&top_left_y=1084&top_left_x=824) + +Figure 1 + +Solution. Let $r$ and $s$ be the radii of the half-circles with diameters $A P$ and $B P$. Then we have + +$$ +39 \pi=\frac{\pi}{2}\left((r+s)^{2}-r^{2}-s^{2}\right)-9 \pi +$$ + +hence $r s=48$. Let $M$ be the midpoint of the diameter $A B, N$ be the midpoint of $P B, O$ be the centre of the circle $C$, and let $F$ be the orthogonal projection of $O$ on $A B$. Since the radius of $C$ is 3 , we have $|M O|=r+s-3,|M F|=r-s+3,|O N|=s+3$, and $|F N|=s-3$. + +Applying the Pythagorean theorem to the triangles $M F O$ and $N F O$ yields + +$$ +(r+s-3)^{2}-(r-s+3)^{2}=|O F|^{2}=(s+3)^{2}-(s-3)^{2}, +$$ + +which implies $r(s-3)=3 s$, so that $3(r+s)=r s=48$. Hence $|A B|=2(r+s)=32$. + +3. Let $A B C D$ be a unit square and let $P$ and $Q$ be points in the plane such that $Q$ is the circumcentre of triangle $B P C$ and $D$ is the circumcentre of triangle $P Q A$. Find all possible values of the length of segment $P Q$. + +Solution. As $Q$ is the circumcentre of triangle $B P C$, we have $|P Q|=|Q C|$ and $Q$ lies on the perpendicular bisector $s$ of $B C$. On the other hand, as $D$ is the circumcentre of triangle $P Q A, Q$ lies on the circle centred at $D$ and passing through $A$. Thus $Q$ must be one of the two intersection points $Q_{1}$ and $Q_{2}$ of this circle and the line $s$. We may choose $Q_{1}$ to lie inside, and $Q_{2}$ outside of the square $A B C D$. + +Let $E$ and $F$ be the midpoints of $A D$ and $B C$, respectively. We have $\left|A Q_{1}\right|=\left|D Q_{1}\right|=|D A|=1$. Hence $\left|E Q_{1}\right|=\frac{\sqrt{3}}{2}$ and $\left|F Q_{1}\right|=1-\frac{\sqrt{3}}{2}$. The Pythagorean theorem applied to the triangle $C F Q_{1}$ now yields + +$$ +\left|C Q_{1}\right|^{2}=|C F|^{2}+\left|F Q_{1}\right|^{2}=\left(\frac{1}{2}\right)^{2}+\left(1-\frac{\sqrt{3}}{2}\right)^{2}=2-\sqrt{3} +$$ + +and hence $\left|C Q_{1}\right|=\sqrt{2-\sqrt{3}}$. Similarly, $\left|Q_{2} E\right|=\frac{\sqrt{3}}{2}$, and the Pythagorean theorem applied to the triangle $C F Q_{2}$ now yields + +$$ +\left|C Q_{2}\right|^{2}=|C F|^{2}+\left|F Q_{2}\right|^{2}=\left(\frac{1}{2}\right)^{2}+\left(1+\frac{\sqrt{3}}{2}\right)^{2}=2+\sqrt{3} +$$ + +and hence $\left|C Q_{2}\right|=\sqrt{2+\sqrt{3}}$. Hence the possible values of the length of the segment $P Q$ are $\sqrt{2-\sqrt{3}}$ and $\sqrt{2+\sqrt{3}}$. + +Remark. The actual location of the point $P$ is unimportant for us. Note however that the point $P$ exists because $P$ and $C$ are the two intersection points of the circle centred at $D$ passing through $A$ and the circle centred at $Q$ passing through $C$. + +4. $A B C D$ is a trapezium $(A D \| B C) . P$ is the point on the line $A B$ such that $\angle C P D$ is maximal. $Q$ is the point on the line $C D$ such that $\angle B Q A$ is maximal. Given that $P$ lies on the segment $A B$, prove that $\angle C P D=\angle B Q A$. + +Solution. The property that $\angle C P D$ is maximal is equivalent to the property that the circle $C P D$ touches the line $A B$ (at $P$ ). Let $O$ be the intersection point of the lines $A B$ and $C D$, and let $\ell$ be the bisector of $\angle A O D$. Let $A^{\prime}, B^{\prime}$ and $Q^{\prime}$ be the points symmetrical to $A, B$ and $Q$, respectively, relative to the line $\ell$. Then the circle $A Q B$ is symmetrical to the circle $A^{\prime} Q^{\prime} B^{\prime}$ that touches the line $A B$ at $Q^{\prime}$. We have + +$$ +\frac{|O D|}{\left|O A^{\prime}\right|}=\frac{|O D|}{|O A|}=\frac{|O C|}{|O B|}=\frac{|O C|}{\left|O B^{\prime}\right|} +$$ + +Hence the homothety with centre $O$ and coefficient $|O D| /|O A|$ takes $A^{\prime}$ to $D, B^{\prime}$ to $C$, and $Q^{\prime}$ to a point $Q^{\prime \prime}$ such that the circle $C Q^{\prime \prime} D$ touches the line $A B$, and thus $Q^{\prime \prime}$ coincides with $P$. Therefore $\angle A Q B=\angle A^{\prime} Q^{\prime} B^{\prime}=\angle C Q^{\prime \prime} D=\angle C P D$ as required. + +5. Let $A B C D$ be a cyclic convex quadrilateral and let $r_{a}, r_{b}, r_{c}, r_{d}$ be the radii of the circles inscribed in the triangles $B C D, A C D, A B D, A B C$ respectively. Prove that $r_{a}+r_{c}=r_{b}+r_{d}$. + +Solution. For a triangle $M N K$ with in-radius $r$ and circumradius $R$, the equality + +$$ +\cos \angle M+\cos \angle N+\cos \angle K=1+\frac{r}{R} +$$ + +hold; this follows from the cosine theorem and formulas for $r$ and $R$. + +We have $\angle A C B=\angle A D B, \angle B D C=\angle B A C, \angle C A D=\angle C B D$ and $\angle D B A=\angle D C A$. Denoting these angles by $\alpha, \beta, \gamma$ and $\delta$, respectively, we get $r_{a}=(\cos \beta+\cos \gamma+\cos (\alpha+\delta)-1) R$ and $r_{c}=(\cos \alpha+\cos \delta+$ $\cos (\beta+\gamma)-1) R$. Since $\cos (\alpha+\delta)=-\cos (\beta+\gamma)$, we get + +$$ +r_{a}+r_{c}=(\cos \alpha+\cos \beta+\cos \gamma+\cos \delta-2) R . +$$ + +Similarly, + +$$ +r_{b}+r_{d}=(\cos \alpha+\cos \beta+\cos \gamma+\cos \delta-2) R, +$$ + +where $R$ is the circumradius of the quadrangle $A B C D$. + +6. Let $a, b, c, d$ be positive integers such that $a b=c d$. Prove that $a+b+c+d$ is not prime. + +Solution 1. As $a b=c d$, we get $a(a+b+c+d)=(a+c)(a+d)$. If $a+b+c+d$ were a prime, then it would be a factor in either $a+c$ or $a+d$, which are both smaller than $a+b+c+d$. + +Solution 2. Let $r=\operatorname{gcd}(a, c)$ and $s=\operatorname{gcd}(b, d)$. Let $a=a^{\prime} r, b=b^{\prime} s, c=c^{\prime} r$ and $d=d^{\prime} s$. Then $a^{\prime} b^{\prime}=c^{\prime} d^{\prime}$. But $\operatorname{gcd}\left(a^{\prime}, c^{\prime}\right)=1$ and $\operatorname{gcd}\left(b^{\prime}, d^{\prime}\right)=1$, so we must have $a^{\prime}=d^{\prime}$ and $b^{\prime}=c^{\prime}$. This gives + +$$ +a+b+c+d=a^{\prime} r+b^{\prime} s+c^{\prime} r+d^{\prime} s=a^{\prime} r+b^{\prime} s+b^{\prime} r+a^{\prime} s=\left(a^{\prime}+b^{\prime}\right)(r+s) \text {. } +$$ + +Since $a^{\prime}, b^{\prime}, r$ and $s$ are positive integers, $a+b+c+d$ is not a prime. + +7. A sequence of integers $a_{1}, a_{2}, \ldots$, is such that $a_{1}=1, a_{2}=2$ and for $n \geq 1$ + +$$ +a_{n+2}= \begin{cases}5 a_{n+1}-3 a_{n} & \text { if } a_{n} \cdot a_{n+1} \text { is even, } \\ a_{n+1}-a_{n} & \text { if } a_{n} \cdot a_{n+1} \text { is odd. }\end{cases} +$$ + +Prove that $a_{n} \neq 0$ for all $n$. + +Solution. Considering the sequence modulo 6 we obtain 1, 2, 1, 5, 4, 5, 1, 2, ... The conclusion follows. + +8. Consider the sequence + +$$ +\begin{aligned} +x_{1} & =19, \\ +x_{2} & =95, \\ +x_{n+2} & =\operatorname{lcm}\left(x_{n+1}, x_{n}\right)+x_{n}, +\end{aligned} +$$ + +for $n>1$, where $\operatorname{lcm}(a, b)$ means the least common multiple of $a$ and $b$. Find the greatest common divisor of $x_{1995}$ and $x_{1996}$. + +Solution. Let $d=\operatorname{gcd}\left(x_{k}, x_{k+1}\right)$. Then $\operatorname{lcm}\left(x_{k}, x_{k+1}\right)=x_{k} x_{k+1} / d$, and + +$$ +\operatorname{gcd}\left(x_{k+1}, x_{k+2}\right)=\operatorname{gcd}\left(x_{k+1}, \frac{x_{k} x_{k+1}}{d}+x_{k}\right)=\operatorname{gcd}\left(x_{k+1}, \frac{x_{k}}{d}\left(x_{k+1}+d\right)\right) . +$$ + +Since $x_{k+1}$ and $x_{k} / d$ are relatively prime, this equals $\operatorname{gcd}\left(x_{k+1}, x_{k+1}+d\right)=d$. It follows by induction that $\operatorname{gcd}\left(x_{n}, x_{n+1}\right)=\operatorname{gcd}\left(x_{1}, x_{2}\right)=19$ for all $n \geq 1$. Hence $\operatorname{gcd}\left(x_{1995}, x_{1996}\right)=19$. + +9. Let $n$ and $k$ be integers, $11$ and $n>0$ be integers such that $a^{n}+1$ is a prime. Prove that + +$$ +d\left(a^{n}-1\right) \geq n . +$$ + +Solution. First we show that $n=2^{s}$ for some integer $s \geq 0$. Indeed, if $n=m p$ where $p$ is an odd prime, then $a^{n}+1=a^{m p}+1=\left(a^{m}+1\right)\left(a^{m(p-1)}-a^{m(p-2)}+\cdots-a+1\right)$, a contradiction. + +Now we use induction on $s$ to prove that $d\left(a^{2^{s}}-1\right) \geq 2^{s}$. The case $s=0$ is obvious. As $a^{2^{s}}-1=$ $\left(a^{2^{s-1}}-1\right)\left(a^{2^{s-1}}+1\right)$, then for any divisor $q$ of $a^{2^{s-1}}-1$, both $q$ and $q\left(a^{2^{s-1}}+1\right)$ are divisors of $a^{2^{s}}-1$. Since the divisors of the form $q\left(a^{2^{s-1}}+1\right)$ are all larger than $a^{2^{s-1}}-1$ we have $d\left(a^{2^{s}}-1\right) \geq 2 \cdot d\left(a^{2^{s-1}}-1\right)=2^{s}$. + +11. The real numbers $x_{1}, x_{2}, \ldots, x_{1996}$ have the following property: for any polynomial $W$ of degree 2 at least three of the numbers $W\left(x_{1}\right), W\left(x_{2}\right), \ldots, W\left(x_{1996}\right)$ are equal. Prove that at least three of the numbers $x_{1}, x_{2}, \ldots, x_{1996}$ are equal. + +Solution. Let $m=\min \left\{x_{1}, \ldots, x_{1996}\right\}$. Then the polynomial $W(x)=(x-m)^{2}$ is strictly increasing for $x \geq m$. Hence if $W\left(x_{i}\right)=W\left(x_{j}\right)$ we must have $x_{i}=x_{j}$, and the conclusion follows. + +12. Let $S$ be a set of integers containing the numbers 0 and 1996. Suppose further that any integer root of any non-zero polynomial with coefficients in $S$ also belongs to $S$. Prove that -2 belongs to $S$. + +Solution. Consider the polynomial $W(x)=1996 x+1996$. As $W(-1)=0$ we conclude that $-1 \in S$. Now consider the polynomial $U(x)=-x^{1996}-x^{1995}-\cdots-x^{2}-x+1996$. As $U(1)=0$ we have $1 \in S$. Finally, let $T(x)=-x^{10}+x^{9}-x^{8}+x^{7}-x^{6}+x^{3}-x^{2}+1996$. Then $-2 \in S$ since $T(-2)=0$. + +13. Consider the functions $f$ defined on the set of integers such that + +$$ +f(x)=f\left(x^{2}+x+1\right), +$$ + +for all integers $x$. Find + +(a) all even functions, + +(b) all odd functions of this kind. + +## Solution. + +(a) For $f$ even, we have $f(x-1)=f\left((x-1)^{2}+(x-1)+1\right)=f\left(x^{2}-x+1\right)=f\left((-x)^{2}-x+1\right)=f(-x)=f(x)$ for any $x \in \mathbb{Z}$. Hence $f$ has a constant value; any constant will do. +(b) For $f$ odd, a similar computation yields $f(x-1)=-f(x)$. Since $f(0)=0$, we see that $f(x)=0$ for all $x \in \mathbb{Z}$. + +14. The graph of the function $f(x)=x^{n}+a_{n-1} x^{n-1}+\cdots+a_{1} x+a_{0}$ (where $n>1$ ), intersects the line $y=b$ at the points $B_{1}, B_{2}, \ldots, B_{n}$ (from left to right), and the line $y=c(c \neq b)$ at the points $C_{1}, C_{2}, \ldots, C_{n}$ (from left to right). Let $P$ be a point on the line $y=c$, to the right to the point $C_{n}$. Find the sum $\cot \angle B_{1} C_{1} P+\cdots+\cot \angle B_{n} C_{n} P$. + +Solution. Let the points $B_{i}$ and $C_{i}$ have the coordinates $\left(b_{i}, b\right)$ and $\left(c_{i}, c\right)$, respectively, for $i=1,2, \ldots, n$. Then we have + +$$ +\cot \angle B_{1} C_{1} P+\cdots+\cot \angle B_{n} C_{n} P=\frac{1}{b-c} \sum_{i=1}^{n}\left(b_{i}-c_{i}\right) +$$ + +The numbers $b_{i}$ and $c_{i}$ are the solutions of $f(x)-b=0$ and $f(x)-c=0$, respectively. As $n \geq 2$, it follows from the relationships between the roots and coefficients of a polynomial (Viète's relations) that $\sum_{i=1}^{n} b_{i}=$ $\sum_{i=1}^{n} c_{i}=-a_{n-1}$ regardless of the values of $b$ and $c$, and hence $\cot \angle B_{1} C_{1} P+\cdots+\cot \angle B_{n} C_{n} P=0$. + +15. For which positive real numbers $a, b$ does the inequality + +$$ +x_{1} \cdot x_{2}+x_{2} \cdot x_{3}+\cdots+x_{n-1} \cdot x_{n}+x_{n} \cdot x_{1} \geq x_{1}^{a} \cdot x_{2}^{b} \cdot x_{3}^{a}+x_{2}^{a} \cdot x_{3}^{b} \cdot x_{4}^{a}+\cdots+x_{n}^{a} \cdot x_{1}^{b} \cdot x_{2}^{a} +$$ + +hold for all integers $n>2$ and positive real numbers $x_{1}, x_{2}, \ldots, x_{n}$ ? + +Solution. Substituting $x_{i}=x$ easily yields that $2 a+b=2$. Now take $n=4, x_{1}=x_{3}=x$ and $x_{2}=x_{4}=1$. This gives $2 x \geq x^{2 a}+x^{b}$. But the inequality between the arithmetic and geometric mean yields $x^{2 a}+x^{b} \geq$ $2 \sqrt{x^{2 a} x^{b}}=2 x$. Here equality must hold, and this implies that $x^{2 a}=x^{b}$, which gives $2 a=b=1$. + +On the other hand, if $b=1$ and $a=\frac{1}{2}$, we let $y_{i}=\sqrt{x_{i} x_{i+1}}$ for $1 \leq i \leq n$, with $x_{n+1}=x_{1}$. The inequality then takes the form + +$$ +y_{1}^{2}+\cdots+y_{n}^{2} \geq y_{1} y_{2}+y_{2} y_{3}+\cdots+y_{n} y_{1} \text {. } +$$ + +But the inequality between the arithmetic and geometric mean yields + +$$ +\frac{1}{2}\left(y_{i}^{2}+y_{i+1}^{2}\right) \geq y_{i} y_{i+1}, \quad 1 \leq i \leq n, +$$ + +where $y_{n+1}=y_{n}$. Adding these $n$ inequalities yields the inequality (1). + +The inequality (1) can also be obtained from the Cauchy-Schwarz inequality, which implies that $\sum_{i=1}^{n} y_{i}^{2} \sum_{i=1}^{n} y_{i+1}^{2} \geq\left(\sum_{i=1}^{n} y_{i} y_{i+1}\right)^{2}$, which is exactly the stated inequality. + +16. On an infinite checkerboard, two players alternately mark one unmarked cell. One of them uses $\times$, the other $o$. The first who fills a $2 \times 2$ square with his symbols wins. Can the player who starts always win? + +Solution. Divide the plane into dominoes in the way indicated by the thick lines in Figure 2. The second player can respond by marking the other cell of the same domino where the first player placed his mark. Since every $2 \times 2$ square contains one whole domino, the first player cannot win. + +![](https://cdn.mathpix.com/cropped/2024_04_17_e2580b6720254e51741dg-4.jpg?height=320&width=320&top_left_y=2050&top_left_x=891) + +Figure 2 + +17. Using each of the eight digits $1,3,4,5,6,7,8$ and 9 exactly once, a three-digit number $A$, two twodigit numbers $B$ and $C, Ba_{j}-a_{i}$. Thus $a_{i}, a_{j}$ and $a_{k}$ do not form an arithmetic progression, since this would mean that $a_{k}-a_{j}=a_{j}-a_{i}$. Hence no three numbers in $A$ form an arithmetic progression. + +(ii) Consider an infinite arithmetic progression $m, m+n, m+2 n, \ldots$, with $m, n \in \mathbb{N}$. Then $m+n t=a_{k}$ for some integer $t \geq 0$, where $k=f^{-1}(m, n)$. Thus $a_{k}$ belongs to the arithmetic progression, but $a_{k} \notin B$. Hence $B$ does not contain any infinite non-constant arithmetic progression. + diff --git a/BalticWay/md/en-bw97sol.md b/BalticWay/md/en-bw97sol.md new file mode 100644 index 0000000000000000000000000000000000000000..ac3cd4f9f24fc0c9292705deee6e63bfa1442bec --- /dev/null +++ b/BalticWay/md/en-bw97sol.md @@ -0,0 +1,409 @@ +# Baltic Way 1997 + +## Copenhagen, November 9, 1997 + +## Problems + +1. Determine all functions $f$ from the real numbers to the real numbers, different from the zero function, such that $f(x) f(y)=f(x-y)$ for all real numbers $x$ and $y$. +2. Given a sequence $a_{1}, a_{2}, a_{3}, \ldots$ of positive integers in which every positive integer occurs exactly once. Prove that there exist integers $\ell$ and $m$, $1<\ell1$. + +19. In a forest each of $n$ animals $(n \geqslant 3)$ lives in its own cave, and there is exactly one separate path between any two of these caves. Before the election for King of the Forest some of the animals make an election campaign. Each campaign-making animal visits each of the other caves exactly once, +uses only the paths for moving from cave to cave, never turns from one path to another between the caves and returns to its own cave in the end of its campaign. It is also known that no path between two caves is used by more than one campaign-making animal. + +a) Prove that for any prime $n$, the maximum possible number of campaign-making animals is $\frac{n-1}{2}$; + +b) Find the maximum number of campaign-making animals for $n=9$. + +20. Twelve cards lie in a row. The cards are of three kinds: with both sides white, both sides black, or with a white and a black side. Initially, nine of the twelve cards have a black side up. The cards 1-6 are turned, and subsequently four of the twelve cards have a black side up. Now cards $4-9$ are turned, and six cards have a black side up. Finally, the cards 1-3 and 10-12 are turned, after which five cards have a black side up. How many cards of each kind are there? + +## Solutions + +1. Answer: $f(x) \equiv 1$ is the only such function. + +Since $f$ is not the zero function, there is an $x_{0}$ such that $f\left(x_{0}\right) \neq 0$. From $f\left(x_{0}\right) f(0)=f\left(x_{0}-0\right)=f\left(x_{0}\right)$ we then get $f(0)=1$. Then by $f(x)^{2}=f(x) f(x)=f(x-x)=f(0)$ we have $f(x) \neq 0$ for any real $x$. Finally from $f(x) f\left(\frac{x}{2}\right)=f\left(x-\frac{x}{2}\right)=f\left(\frac{x}{2}\right)$ we get $f(x)=1$ for any real $x$. It is readily verified that this function satisfies the equation. + +2. Let $\ell$ be the least index such that $a_{\ell}>a_{1}$. Since $2 a_{\ell}-a_{1}$ is a positive integer larger than $a_{1}$, it occurs in the given sequence beyond $a_{\ell}$. In other words, there exists an index $m>\ell$ such that $a_{m}=2 a_{\ell}-a_{1}$. This completes the proof. + +Remarks. The problem was proposed in the slightly more general form where the first term of the arithmetic progression has an arbitary index. The remarks below refer to this version. The problem committee felt that no essential new aspects would arise from the generalization. + +1. A generalization of this problem is to ask about an existence of an $s$-term arithmetic subsequence of the sequence $\left(a_{n}\right)$ (such a subsequence +always exists for $s=3$, as shown above). It turns out that for $s=5$ such a subsequence may not exist. The proof can be found in [1]. The same problem for $s=4$ is still open! +2. The present problem $(s=3)$ and the above solution is also taken from [1]. + +Reference. [1] J. A. Davis, R. C. Entringer, R. L. Graham and G. J. Simmons, On permutations containing no long arithmetic progressions, Acta Arithmetica 1(1977), pp. 81-90. + +3. Answer: $x_{1997}=23913$. + +Note that if $x_{n}=a n+b$ with $0 \leqslant ba$. Then, if $u_{n}$ is even we have $u_{n+1}=\frac{1}{2} u_{n}m$ satisfies $u_{n} \leqslant a$, and there must be an infinite set of such integers $n$. + +Since the set of natural numbers not exceeding $a$ is finite and such values arise in the sequence $\left(u_{n}\right)$ an infinite number of times, there exist nonnegative integers $m$ and $n$ with $n>m$ such that $u_{n}=u_{m}$. Starting from $u_{m}$ the sequence is then periodic with a period dividing $n-m$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_fa027955eeb5a8b983dbg-06.jpg?height=541&width=485&top_left_y=619&top_left_x=272) + +Figure 1 + +6. Answer: $(10,10,10)$ is the only such triple. + +The equality immediately implies $a^{3}+9 b^{2}+9 c=1990 \equiv 1(\bmod 9)$. Hence $a^{3} \equiv 1(\bmod 9)$ and $a \equiv 1(\bmod 3)$. Since $13^{3}=2197>1990$ then the possible values for $a$ are $1,4,7,10$. + +On the other hand, if $a \leqslant 7$ then by $a \geqslant b \geqslant c$ we have + +$$ +a^{3}+9 b^{2}+9 c^{2} \leqslant 7^{3}+9 \cdot 7^{2}+9 \cdot 7=847<1990 +$$ + +a contradiction. Hence $a=10$ and $9 b^{2}+9 c=990$, whence by $c \leqslant b \leqslant 10$ we have $c=b=10$. + +7. Suppose $b$ is an integer such that $Q(P(b))=1$. Since $a$ and $a+1997$ are roots of $P$ we have $P(x)=(x-a)(x-a-1997) R(x)$ where $R$ is a polynomial with integer coefficients. For any integer $b$ the integers $b-a$ and +$b-a-1997$ are of different parity and hence $P(b)=(b-a)(b-a-1997) R(b)$ is even. Since $Q(1998)=2000$ then the constant term in the expansion of $Q(x)$ is even (otherwise $Q(x)$ would be odd for any even integer $x$ ), and $Q(c)$ is even for any even integer $c$. Hence $Q(P(b))$ is also even and cannot be equal to 1 . +8. Answer: yes. + +The key to the proof is noting that if we add two positive integers and the result is an integer consisting only of digits 9 then the process of addition must have gone without any carries. Therefore it is enough to prove that there exists an integer $k$ such that $3993 k$ is of the form $999 \ldots 9$. + +Consider the first 3994 positive integers consisting only of digits 9: + +$$ +9,99,999, \ldots, \underbrace{999 \ldots 9}_{3994} . +$$ + +By the pigeonhole principle some two of these give the same remainder upon division by 3993 , so their difference + +$$ +\underbrace{99 \ldots 9}_{n} \underbrace{00 \ldots 0}_{r}=\underbrace{99 \ldots 9}_{n} \cdot 10^{r} +$$ + +is divisible by 3993 . Since 10 and 3993 are coprime we get an integer consisting only of digits 9 and divisible by 3993 . + +## Remarks. + +1. The existence of an integer $10^{\ell}-1$ consisting only of digits 9 and divisible by 3993 may also be demonstrated quite elegantly by means of Euler's Theorem. The numbers 10 and 3993 are coprime, so $10^{\varphi(3993)}-1$ is divisible by 3993 . Thus we may take $\ell=\varphi(3993)$. + +2 . By a computer search it can be found that the smallest integer $k$ satisfying the condition of the problem is $k=162$. Then $1996 \cdot 162=323352$; $1997 \cdot 162=323514$ and + +$$ +\begin{array}{r} +323352 \\ ++323514 \\ +\hline 646866 +\end{array} +$$ + +9. Answer: yes. + +For any two given worlds, Gandalf can move between them either in both +directions or none. Hence, it suffices to show that Gandalf can move to the world 1 from any given world $n$. For that, it is sufficient for him to be able to move from any world $n>1$ to some world $m$ such that $m1$. If any number $b$ with $01$ satisfies (1), then so does the reduced triple $\left(\frac{a}{d}, \frac{b}{d}, \frac{c}{d}\right)$. Hence it suffices to prove that in every irreducible quasi-Pythagorean triple the greatest term $c$ has a prime divisor greater than 5. Actually, we will show that in that case every prime divisor of $c$ is greater than 5 . + +Let $(a, b, c)$ be an irreducible triple satisfying (1). Note that then $a, b$ and $c$ are pairwise coprime. We have to show that $c$ is not divisible by 2,3 or 5 . + +If $c$ were even, then $a$ and $b$ (coprime to $c$ ) should be odd, and (1) would not hold. + +Suppose now that $c$ is divisible by 3 , and rewrite (1) as + +$$ +4 c^{2}=(a+2 b)^{2}+3 a^{2} +$$ + +Then $a+2 b$ must be divisible by 3 . Since $a$ is coprime to $c$, the number $3 a^{2}$ is not divisible by 9 . This yields a contradiction since the remaining terms in (2) are divisible by 9 . + +Finally, suppose $c$ is divisible by 5 (and hence $a$ is not). Again we get a contradiction with (2) since the square of every integer is congruent to 0 , + +1 or -1 modulo 5 ; so $4 c^{2}-3 a^{2} \equiv \pm 2(\bmod 5)$ and it cannot be equal to $(a+2 b)^{2}$. This completes the proof. + +Remark. A yet stronger claim is true: If $a$ and $b$ are coprime, then every prime divisor $p>3$ of $a^{2}+a b+b^{2}$ is of the form $p=6 k+1$. (Hence every prime divisor of $c$ in an irreducible quasi-Pythagorean triple $(a, b, c)$ has such a form.) + +This stronger claim can be proved by observing that $p$ does not divide $a$ and the number $g=(a+2 b) a^{(p-3) / 2}$ is an integer whose square satisfies + +$$ +\begin{aligned} +g^{2} & =(a+2 b)^{2} a^{p-3}=\left(4\left(a^{2}+a b+b^{2}\right)-3 a^{2}\right) a^{p-3} \equiv-3 a^{p-1} \equiv \\ +& \equiv-3(\bmod p) +\end{aligned} +$$ + +Hence -3 is a quadratic residue modulo $p$. This is known to be true only for primes of the form $6 k+1$; proofs can be found in many books on number theory, e.g. [1]. + +Reference. [1] K. Ireland, M. Rosen, A Classical Introduction to Modern Number Theory, Second Edition, Springer-Verlag, New York 1990. + +3. Answer: $x=14, y=27$. + +Rewriting the equation as $2 x^{2}-x y+5 y^{2}-10 x y=-121$ and factoring we get: + +$$ +(2 x-y) \cdot(5 y-x)=121 . +$$ + +Both factors must be of the same sign. If they were both negative, we would have $2 x0$, the function $f(t)$ is +strictly convex on $(0, \infty)$. Consequently, + +$$ +\begin{aligned} +\frac{1}{\cos \gamma} & =\sqrt{1+\tan ^{2} \gamma}=f(\tan \gamma)=f\left(\frac{\tan \alpha+\tan \beta}{2}\right)< \\ +& <\frac{f(\tan \alpha)+f(\tan \beta)}{2}=\frac{1}{2}\left(\frac{1}{\cos \alpha}+\frac{1}{\cos \beta}\right)=\frac{1}{\cos \delta}, +\end{aligned} +$$ + +and hence $\gamma<\delta$. + +Remark. The use of calculus can be avoided. We only need the midpointconvexity of $f$, i.e., the inequality + +$$ +\sqrt{1+\frac{1}{4}(u+v)^{2}}<\frac{1}{2} \sqrt{1+u^{2}}+\frac{1}{2} \sqrt{1+v^{2}} +$$ + +for $u, v>0$ and $u \neq v$, which is equivalent (via squaring) to + +$$ +1+u v<\sqrt{\left(1+u^{2}\right)\left(1+v^{2}\right)} . +$$ + +The latter inequality reduces (again by squaring) to $2 u v|P Q|=2 \cdot|P C|=\frac{2}{\cos \gamma}, +$$ + +and hence $\delta>\gamma$. + +Another solution. Set $x=\frac{\alpha+\beta}{2}$ and $y=\frac{\alpha-\beta}{2}$, then $\alpha=x+y, \beta=x-y$ and + +$$ +\begin{aligned} +\cos \alpha \cos \beta & =\frac{1}{2}(\cos 2 x+\cos 2 y)= \\ +& =\frac{1}{2}\left(1-2 \sin ^{2} x\right)+\frac{1}{2}\left(2 \cos ^{2} y-1\right)=\cos ^{2} y-\sin ^{2} x . +\end{aligned} +$$ + +By the conditions of the problem, + +$$ +\tan \gamma=\frac{1}{2}\left(\frac{\sin \alpha}{\cos \alpha}+\frac{\sin \beta}{\cos \beta}\right)=\frac{1}{2} \cdot \frac{\sin (\alpha+\beta)}{\cos \alpha \cos \beta}=\frac{\sin x \cos x}{\cos \alpha \cos \beta} +$$ + +and + +$$ +\frac{1}{\cos \delta}=\frac{1}{2}\left(\frac{1}{\cos \alpha}+\frac{1}{\cos \beta}\right)=\frac{1}{2} \cdot \frac{\cos \alpha+\cos \beta}{\cos \alpha \cos \beta}=\frac{\cos x \cos y}{\cos \alpha \cos \beta} . +$$ + +Using (3) we hence obtain + +$$ +\begin{aligned} +\tan ^{2} \delta-\tan ^{2} \gamma & =\frac{1}{\cos ^{2} \delta}-1-\tan ^{2} \gamma=\frac{\cos ^{2} x \cos ^{2} y-\sin ^{2} x \cos ^{2} x}{\cos ^{2} \alpha \cos ^{2} \beta}-1= \\ +& =\frac{\cos ^{2} x\left(\cos ^{2} y-\sin ^{2} x\right)}{\left(\cos ^{2} y-\sin ^{2} x\right)^{2}}-1=\frac{\cos ^{2} x}{\cos ^{2} y-\sin ^{2} x}-1= \\ +& =\frac{\cos ^{2} x-\cos ^{2} y+\sin ^{2} x}{\cos ^{2} y-\sin ^{2} x}=\frac{\sin ^{2} y}{\cos \alpha \cos \beta}>0, +\end{aligned} +$$ + +showing that $\delta>\gamma$. + +10. For simplicity, take the length of the circle to be $2 n(n-1)$ rather than $2 \pi$. The vertices of the $(n-1)$-gon $A_{0} A_{1} \ldots A_{n-2}$ divide it into $n-1$ arcs of length $2 n$. By the pigeonhole principle, some two of the vertices of the $n$-gon $B_{0} B_{1} \ldots B_{n-1}$ lie in the same arc. Assume w.l.o.g. that $B_{0}$ and $B_{1}$ lie in the arc $A_{0} A_{1}$, with $B_{0}$ closer to $A_{0}$ and $B_{1}$ closer to $A_{1}$, and that $\left|A_{0} B_{0}\right| \leqslant\left|B_{1} A_{1}\right|$. + +Consider the circle as the segment $[0,2 n(n-1)]$ of the real line, with both of its endpoints identified with the vertex $A_{0}$ and the numbers $2 n, 4 n, 6 n, \ldots$ identified accordingly with the vertices $A_{1}, A_{2}, A_{3}, \ldots$ + +For $k=0,1, \ldots, n-1$, let $x_{k}$ be the "coordinate" of the vertex $B_{k}$ of the $n$-gon. Each arc $B_{k} B_{k+1}$ has length $2(n-1)$. By the choice of labelling, we have + +$$ +0 \leqslant x_{0}10$, as no tile is allowed to extend beyond the edge of the board. But then $b_{13}=a_{10}$ must be both even and odd, a contradiction. + +Alternative solution. Colour the squares of the board black and white in the following pattern. In the first (top) row, let the two leftmost squares be black, the next two be white, the next two black, the next two white, and so on (at the right end there remains a single black square). In the second row, let the colouring be reciprocal to that of the first row (two white squares, two black squares, and so on). If the rows are labelled by 1 through 13 , let all the odd-indexed rows be coloured as the first row, and all the even-indexed ones as the second row (see Figure 7). + +Note that there are more black squares than white squares in the board. Each $4 \times 1$ tile, no matter how placed, covers two black squares and two white squares. Thus if a tiling leaves a single square uncovered, this square must be black. But the central square of the board is white. Hence such a tiling is impossible. + +Another solution. Colour the squares in four colours as follows: colour all squares in the 1-st column green, all squares in the 2-nd column black, all squares in the 3 -rd column white, all squares in the 4 -th column red, all squares in the 5 -th column green, all squares in the 6 -th column black etc., leaving only the central square uncoloured (see Figure 8). Altogether we have $3 \cdot 13=39$ black squares and $3 \cdot 13-1=38$ white squares. Since +each $4 \times 1$ tile covers either one square of each colour or all four squares of the same colour, then the difference of the numbers of black and white squares must be divisible by 4 . Since $39-38=1$ is not divisible by 4 , the required tiling does not exist. + +![](https://cdn.mathpix.com/cropped/2024_04_17_265f402a46c0191f8856g-16.jpg?height=510&width=520&top_left_y=423&top_left_x=174) + +Figure 7 +G BWR G B WR G BWR G + +![](https://cdn.mathpix.com/cropped/2024_04_17_265f402a46c0191f8856g-16.jpg?height=500&width=504&top_left_y=432&top_left_x=785) + +Figure 8 + +17. If $k=1$, it is obvious how to do the packing. Now assume $k>1$. There are not more than $n$ objects of a certain colour - say, pink - and also not fewer than $n$ objects of some other colour - say, grey. Pack all pink objects into one box; if there is space left, fill the box up with grey objects. Then remove that box together with its contents; the problem gets reduced to an analogous one with $k-1$ boxes and $k-1$ colours. Assuming inductively that the task can be done in that case, we see that it can also be done for $k$ boxes and colours. The general result follows by induction. +18. Answer: all integers $n \geqslant 4$. + +Direct search shows that there is no such set $S$ for $n=1,2,3$. For $n=4$ we can take $S=\{3,5,6,7\}$. If, for a certain $n \geqslant 4$ we have a set $S=\left\{a_{1}, a_{2}, \ldots, a_{n}\right\}$ as needed, then the set $S^{*}=\left\{1,2 a_{1}, 2 a_{2}, \ldots, 2 a_{n}\right\}$ satisfies the requirements for $n+1$. Hence a set with the required properties exists if and only if $n \geqslant 4$. + +19. We start with the following observation: In a match between two teams (not necessarily of equal sizes), there exists in one of the teams a player who won his games with at least half of the members of the other team. + +Indeed: suppose there is no such player. If the teams consist of $m$ and $n$ members then the players of the first team jointly won less than $m \cdot \frac{n}{2}$ games, and the players of the second team jointly won less than $m \cdot \frac{n}{2}$ games - this is a contradiction since the total number of games played is $m n$, and in each game there must have been a winner. + +Returning to the original problem (with two equal teams of size 1000), choose a player who won his games with at least half of the members of the other team - such a player exists, according to the observation above, and we shall call his team "first" and the other team "second" in the sequel. Mark this player with a white hat and remove from further consideration all those players of the second team who lost their games to him. Applying the same observation to the first team (complete) and the second team truncated as explained above, we again find a player (in the first or in the second team) who won with at least half of the other team members. Mark him with a white hat, too, and remove the players who lost to him from further consideration. + +We repeat this procedure until there are no players left in one of the teams; say, in team $Y$. This means that the white-hatted players of team $X$ constitute a group with the required property (every member of team $Y$ has lost his game to at least one player from that group). Each time when a player of team $X$ was receiving a white hat, the size of team $Y$ was reduced at least by half; and since initially the size was a number less than $2^{10}$, this could not happen more than ten times. + +Hence the white-hatted group from team $X$ consists of not more than ten players. If there are fewer than ten, round the group up to ten with any players. + +20. Answer: 1. + +Let $1 \leqslant g3 b>6 c>12 d$ and $a^{2}-b^{2}+c^{2}-d^{2}=1749$. Determine all possible values of $a^{2}+b^{2}+c^{2}+d^{2}$. + +## Solutions + +1. Answer: $a=b=c=\sqrt[3]{2}-1, d=5 \sqrt[3]{2}-1$. + +Substituting $A=a+1, B=b+1, C=c+1, D=d+1$, we obtain + +$$ +\begin{aligned} +& A B C=2 \\ +& B C D=10 \\ +& C D A=10 \\ +& D A B=10 +\end{aligned} +$$ + +Multiplying (1), (2), (3) gives $C^{3}(A B D)^{2}=200$, which together with (4) implies $C^{3}=2$. Similarly we find $A^{3}=B^{3}=2$ and $D^{3}=250$. Therefore the only solution is $a=b=c=\sqrt[3]{2}-1, d=5 \sqrt[3]{2}-1$. + +2. Answer: 32768 is the only such integer. + +If $n=m^{3}$ is a solution, then $m$ satisfies $1000 m \leqslant m^{3}<1000(m+1)$. From the first inequality, we get $m^{2} \geqslant 1000$, or $m \geqslant 32$. By the second inequality, we then have + +$$ +m^{2}<1000 \cdot \frac{m+1}{m} \leqslant 1000 \cdot \frac{33}{32}=1000+\frac{1000}{32} \leqslant 1032, +$$ + +or $m \leqslant 32$. Hence, $m=32$ and $n=m^{3}=32768$ is the only solution. + +3. Answer: $n=3$ and $n=4$. + +For $n=3$ we have + +$$ +\begin{aligned} +& a_{1} a_{2}+a_{2} a_{3}+a_{3} a_{1}=\frac{\left(a_{1}+a_{2}+a_{3}\right)^{2}-\left(a_{1}^{2}+a_{2}^{3}+a_{3}^{2}\right)}{2} \leqslant \\ +& \quad \leqslant \frac{\left(a_{1}+a_{2}+a_{3}\right)^{2}}{2}=0 . +\end{aligned} +$$ + +For $n=4$, applying the AM-GM inequality we have + +$$ +\begin{aligned} +& a_{1} a_{2}+a_{2} a_{3}+a_{3} a_{4}+a_{4} a_{1}=\left(a_{1}+a_{3}\right)\left(a_{2}+a_{4}\right) \leqslant \\ +& \\ +& \leqslant \frac{\left(a_{1}+a_{2}+a_{3}+a_{4}\right)^{2}}{4}=0 . +\end{aligned} +$$ + +For $n \geqslant 5$ take $a_{1}=-1, a_{2}=-2, a_{3}=a_{4}=\cdots=a_{n-2}=0, a_{n-1}=2$, $a_{n}=1$. This gives + +$$ +a_{1} a_{2}+a_{2} a_{3}+\ldots+a_{n-1} a_{n}+a_{n} a_{1}=2+2-1=3>0 . +$$ + +4. Answer: the maximum value is $f\left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)=\frac{1}{\sqrt{2}}$. + +We shall make use of the inequality $x^{2}+y^{2} \geqslant 2 x y$. If $x \leqslant \frac{y}{x^{2}+y^{2}}$, then + +$$ +x \leqslant \frac{y}{x^{2}+y^{2}} \leqslant \frac{y}{2 x y}=\frac{1}{2 x}, +$$ + +implying $x \leqslant \frac{1}{\sqrt{2}}$, and the equality holds if and only if $x=y=\frac{1}{\sqrt{2}}$. + +If $x>\frac{1}{\sqrt{2}}$, then + +$$ +\frac{y}{x^{2}+y^{2}} \leqslant \frac{y}{2 x y}=\frac{1}{2 x}<\frac{1}{\sqrt{2}} . +$$ + +Hence always at least one of $x$ and $\frac{y}{x^{2}+y^{2}}$ does not exceed $\frac{1}{\sqrt{2}}$. Consequently $f(x, y) \leqslant \frac{1}{\sqrt{2}}$, with an equality if and only if $x=y=\frac{1}{\sqrt{2}}$. + +5. Answer: $(-1,0),(1,0),(0,1),\left(-\frac{2 \sqrt{6}}{5},-\frac{1}{5}\right),\left(\frac{2 \sqrt{6}}{5},-\frac{1}{5}\right)$. + +Since any non-vertical line intersecting the parabola $y=x^{2}+1$ has exactly two intersection points with it, the line mentioned in the problem must be either vertical or a common tangent to the circle and the parabola. The only vertical lines with the required property are the lines $x=1$ and $x=-1$, which meet the circle in the points $(1,0)$ and $(-1,0)$, respectively. + +Now, consider a line $y=k x+l$. It touches the circle if and only if the system of equations + +$$ +\left\{\begin{array}{l} +x^{2}+y^{2}=1 \\ +y=k x+l +\end{array}\right. +$$ + +has a unique solution, or equivalently the equation $x^{2}+(k x+l)^{2}=1$ has unique solution, i.e. if and only if + +$$ +D_{1}=4 k^{2} l^{2}-4\left(1+k^{2}\right)\left(l^{2}-1\right)=4\left(k^{2}-l^{2}+1\right)=0 \text {, } +$$ + +or $l^{2}-k^{2}=1$. The line is tangent to the parabola if and only if the system + +$$ +\left\{\begin{array}{l} +y=x^{2}+1 \\ +y=k x+l +\end{array}\right. +$$ + +has a unique solution, or equivalently the equation $x^{2}=k x+l-1$ has unique solution, i.e. if and only if + +$$ +D_{2}=k^{2}-4(1-l)=k^{2}+4 l-4=0 \text {. } +$$ + +From the system of equations + +$$ +\left\{\begin{array}{l} +l^{2}-k^{2}=1 \\ +k^{2}+4 l-4=0 +\end{array}\right. +$$ + +we have $l^{2}+4 l-5=0$, which has two solutions $l=1$ and $l=-5$. Hence the last system of equations has the solutions $k=0, l=1$ and $k= \pm 2 \sqrt{6}$, $l=-5$. From (5) we now have $(0,1)$ and $\left( \pm \frac{2 \sqrt{6}}{5},-\frac{1}{5}\right)$ as the possible points of tangency on the circle. + +6. Answer: $2 \cdot\left\lfloor\frac{n+1}{3}\right\rfloor$. + +Label the squares by pairs of integers $(x, y), x, y=1, \ldots, n$, and consider a sequence of moves that takes the knight from square $(1,1)$ to square $(n, n)$. + +The total increment of $x+y$ is $2(n-1)$, and the maximal increment in each move is 3 . Furthermore, the parity of $x+y$ shifts in each move, and $1+1$ and $n+n$ are both even. Hence, the number of moves is even and larger than or equal to $\frac{2 \cdot(n-1)}{3}$. If $N=2 m$ is the least integer that satisfies these conditions, then $m$ is the least integer that satisfies $m \geqslant \frac{n-1}{3}$, i.e. $m=\left\lfloor\frac{n+1}{3}\right\rfloor$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-06.jpg?height=254&width=246&top_left_y=1342&top_left_x=190) + +$n=4$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-06.jpg?height=309&width=310&top_left_y=1286&top_left_x=543) + +$n=5$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-06.jpg?height=371&width=375&top_left_y=1225&top_left_x=918) + +$n=6$ + +Figure 1 + +For $n=4, n=5$ and $n=6$ the sequences of moves are easily found that take the knight from square $(1,1)$ to square $(n, n)$ in 2,4 and 4 moves, +respectively (see Figure 1). In particular, the knight may get from square $(k, k)$ to square $(k+3, k+3)$ in 2 moves. Hence, by simple induction, for any $n$ the knight can get from square $(1,1)$ to square $(n, n)$ in a number of moves equal to twice the integer part of $\frac{n+1}{3}$, which is the minimal possible number of moves. + +7. Answer: No, it is not possible. + +Consider the set $S$ of all (non-ordered) pairs of adjacent squares. Call an element of $S$ treated if the king has visited both its squares. After the first move there is one treated pair. Each subsequent move creates a further even number of treated pairs. So after each move the total number of treated pairs is odd. If the king could complete his tour then the total number of pairs of adjacent squares (i.e. the number of elements of $S$ ) would have to be odd. But the number of elements of $S$ is even as can be seen by the following argument. Rotation by 180 degrees around the centre of the board induces a bijection of $S$ onto itself. This bijection leaves precisely two pairs fixed, namely the pairs of squares sharing only a common corner at the middle of the board. It follows that the number of elements of $S$ is even. + +8. It is possible to find the 1000 -th coin (i.e. the medium one among the 1999 coins). First we exclude the lightest and heaviest coin - for this we use 1997 weighings, putting the medium-weighted coin aside each time. Next we exclude the 2 -nd and 1998 -th coins using 1995 weighings, etc. In total we need + +$$ +1997+1995+1993+\ldots+3+1=999 \cdot 999<1000000 +$$ + +weighings to determine the 1000 -th coin in such a way. + +It is not possible to determine the position by weight of any other coin, since we cannot distinguish between the $k$-th and $(2000-k)$-th coin. To prove this, label the coins in some order as $a_{1}, a_{2}, \ldots, a_{1999}$. If a procedure for finding the $k$-th coin exists then it should work as follows. First we choose some three coins $a_{i_{1}}, a_{j_{1}}, a_{k_{1}}$, find the medium-weighted one among them, then choose again some three coins $a_{i_{2}}, a_{j_{2}}, a_{k_{2}}$ (possibly using the information obtained from the previous weighing) etc. The results of these +weighings can be written in a table like this: + +| Coin 1 | Coin 2 | Coin 3 | Medium | +| :---: | :---: | :---: | :---: | +| $a_{i_{1}}$ | $a_{j_{1}}$ | $a_{k_{1}}$ | $a_{m_{1}}$ | +| $a_{i_{2}}$ | $a_{j_{2}}$ | $a_{k_{2}}$ | $a_{m_{2}}$ | +| $\ldots$ | $\ldots$ | $\ldots$ | $\ldots$ | +| $a_{i_{n}}$ | $a_{j_{n}}$ | $a_{k_{n}}$ | $a_{m_{n}}$ | + +Suppose we make a decision " $a_{k}$ is the $k$-th coin" based on this table. Now let us exchange labels of the lightest and the heaviest coins, of the 2-nd and 1998 -th (by weight) coins etc. It is easy to see that, after this relabeling, each step in the procedure above gives the same result as before - but if $a_{k}$ was previously the $k$-th coin by weight, then now it is the $(2000-k)$-th coin, so the procedure yields a wrong coin which gives us the contradiction. + +9. Answer: 24. + +Since each unit cube contributes to exactly three of the row sums, then the total of all the 27 row sums is $3 \cdot(1+2+\ldots+27)=3 \cdot 14 \cdot 27$, which is even. Hence there must be an even number of odd row sums. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-08.jpg?height=144&width=149&top_left_y=1062&top_left_x=210) + +(a) + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-08.jpg?height=148&width=149&top_left_y=1060&top_left_x=414) + +(b) + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-08.jpg?height=144&width=147&top_left_y=1062&top_left_x=689) + +I + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-08.jpg?height=144&width=145&top_left_y=1062&top_left_x=888) + +II + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-08.jpg?height=146&width=148&top_left_y=1061&top_left_x=1080) + +III + +Figure 2 + +Figure 3 + +We shall prove that if one of the three levels of the cube (in any given direction) contains an even row sum, then there is another even row sum within that same level - hence there cannot be 26 odd row sums. Indeed, if this even row sum is formed by three even numbers (case (a) on Figure 2, where + denotes an even number and - denotes an odd number), then in order not to have even column sums (i.e. row sums in the perpendicular direction), we must have another even number in each of the three columns. But then the two remaining rows contain three even and three odd numbers, and hence their row sums cannot both be odd. Consider now the other case when the even row sum is formed by one even number and two odd numbers (case (b) on Figure 2). In order not to have even column sums, the column +containing the even number must contain another even number and an odd number, and each of the other two columns must have two numbers of the same parity. Hence the two other row sums have different parity, and one of them must be even. + +It remains to notice that we can achieve 24 odd row sums (see Figure 3, where the three levels of the cube are shown). + +10. Answer: no. + +Let $O$ denote the centre of the disc, and $P_{1}, \ldots, P_{6}$ the vertices of an inscribed regular hexagon in the natural order (see Figure 4). + +If the required partitioning exists, then $\{O\},\left\{P_{1}, P_{3}, P_{5}\right\}$ and $\left\{P_{2}, P_{4}, P_{6}\right\}$ are contained in different subsets. Now consider the circles of radius 1 centered in $P_{1}, P_{3}$ and $P_{5}$. The circle of radius $1 / \sqrt{3}$ centered in $O$ intersects these three circles in the vertices $A_{1}, A_{2}, A_{3}$ of an equilateral triangle of side length 1 . The vertices of this triangle belong to different subsets, but none of them can belong to the same subset as $P_{1}$ - a contradiction. Hence the required partitioning does not exist. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-09.jpg?height=511&width=484&top_left_y=975&top_left_x=323) + +Figure 4 + +11. Consider a circle containing all these four points in its interior. First, decrease its radius until at least one of these points (say, $A$ ) will be on the circle. If the other three points are still in the interior of the circle, then rotate the circle around $A$ (with its radius unchanged) until at least one of the other three points (say, $B$ ) will also be on the circle. The centre of the circle now lies on the perpendicular bisector of the segment $A B$ - moving +the centre along that perpendicular bisector (and changing its radius at the same time, so that points $A$ and $B$ remain on the circle) we arrive at a situation where at least one of the remaining two points will also be on the circle (see Figure 5). + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-10.jpg?height=343&width=1037&top_left_y=399&top_left_x=210) + +Figure 5 + +Alternative solution. The quadrangle with its vertices in the four points can be convex or non-convex. + +If the quadrangle is non-convex, then one of the points lies in the interior of the triangle defined by the remaining three points (see Figure 6) - the circumcircle of that triangle has the required property. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-10.jpg?height=419&width=397&top_left_y=1096&top_left_x=221) + +Figure 6 + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-10.jpg?height=419&width=469&top_left_y=1098&top_left_x=740) + +Figure 7 + +Assume now that the quadrangle $A B C D$ (where $A, B, C, D$ are the four points) is convex. Then it has a pair of opposite angles, the sum of which is at least $180^{\circ}$ - assume these are at vertices $B$ and $D$ (see Figure 7). We shall prove that point $D$ lies either in the interior of the circumcircle of triangle $A B C$ or on that circle. Indeed, let the ray drawn from the +circumcentre $O$ of triangle $A B C$ through point $D$ intersect the circumcircle in $D^{\prime}$ : since $\angle B+\angle D^{\prime}=180^{\circ}$ and $\angle B+\angle D \geqslant 180^{\circ}$, then $D$ cannot lie in the exterior of the circumcircle. + +12. Let $N$ be the midpoint of $B C$ and $M$ the midpoint of $A C$. Let $O$ be the circumcentre of $A B C$ and $I$ its incentre (see Figure 8). Since $\angle C M O=\angle C N O=90^{\circ}$, the points $C, N, O$ and $M$ are concyclic (regardless of whether $O$ lies inside the triangle $A B C$ ). We now have to show that the points $C, N, I$ and $M$ are also concyclic, i.e $I$ lies on the same circle as $C, N, O$ and $M$. It will be sufficient to show that $\angle N C M+\angle N I M=180^{\circ}$ in the quadrilateral $C N I M$. Since + +$$ +|A B|=\frac{|A C|+|B C|}{2}=|A M|+|B N| +$$ + +we can choose a point $D$ on the side $A B$ such that $|A D|=|A M|$ and $|B D|=|B N|$. Then triangle $A I M$ is congruent to triangle $A I D$, and similarly triangle $B I N$ is congruent to triangle $B I D$. Therefore + +$$ +\begin{aligned} +\angle N C M+\angle N I M & =\angle N C M+\left(360^{\circ}-2 \angle A I D-2 \angle B I D\right)= \\ +& =\angle B C A+360^{\circ}-2 \angle A I B= \\ +& =\angle B C A+360^{\circ}-2 \cdot\left(180^{\circ}-\frac{\angle B A C}{2}-\frac{\angle A B C}{2}\right)= \\ +& =\angle B C A+\angle A B C+\angle C A B=180^{\circ} . +\end{aligned} +$$ + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-11.jpg?height=433&width=516&top_left_y=1212&top_left_x=210) + +Figure 8 + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-11.jpg?height=476&width=489&top_left_y=1213&top_left_x=738) + +Figure 9 + +Alternative solution. Let $O$ be the circumcentre of $A B C$ and $I$ its in- +centre, and let $G, H$ and $K$ be the points where the incircle touches the sides $B C, A C$ and $A B$ of the triangle, respectively. Also, let $N$ be the midpoint of $B C$ and $M$ the midpoint of $A C$ (see Figure 9). Since $\angle C M O=\angle C N O=90^{\circ}$, points $M$ and $N$ lie on the circle with diameter $O C$. We will show that point $I$ also lies on that circle. Indeed, we have + +$$ +|A H|+|B G|=|A K|+|B K|=|A B|=\frac{|A C|+|B C|}{2}=|A M|+|B N|, +$$ + +implying $|M H|=|N G|$. Since $M H$ and $N G$ are the perpendicular projections of $O I$ to the lines $A C$ and $B C$, respectively, then $I O$ must be either parallel or perpendicular to the bisector $C I$ of angle $A C B$. (To formally prove this, consider unit vectors $\overrightarrow{e_{1}}$ and $\overrightarrow{e_{2}}$ defined by the rays $C A$ and $C B$, and show that the condition $|M H|=|N G|$ is equivalent to $\left(\overrightarrow{e_{1}} \pm \overrightarrow{e_{2}}\right) \cdot \overrightarrow{I O}=0$.) + +If $I O$ is perpendicular to $C I$, then $\angle C I O=90^{\circ}$ and we are done. If $I O$ is parallel to $C I$, the the circumcentre $O$ of triangle $A B C$ lies on the bisector $C I$ of angle $A C B$, whence $|A C|=|B C|$ and the condition $2|A B|=|A C|+|B C|$ implies that $A B C$ is an equilateral triangle. Hence in this case points $O$ and $I$ coincide and the claim of the problem holds trivially. + +## 13. Answer: $60^{\circ}$. + +Let $F$ be the point of the side $A B$ such that $|A F|=|A E|$ and $|B F|=|B D|$ (see Figure 10). The line $A D$ is the angle bisector of $\angle A$ in the isosceles triangle $A E F$. This implies that $A D$ is the perpendicular bisector of $E F$, whence $|D E|=|D F|$. Similarly we show that $|D E|=|E F|$. This proves that the triangle $D E F$ is equilateral, i.e. $\angle E F D=60^{\circ}$. Hence $\angle A F E+\angle B F D=120^{\circ}$, and also $\angle A E F+\angle B D F=120^{\circ}$. Thus $\angle C A B+\angle C B A=120^{\circ}$ and finally $\angle C=60^{\circ}$. + +Alternative solution. Let $I$ be the incenter of triangle $A B C$, and let $G$, $H, K$ be the points where its incircle touches the sides $B C, A C, A B$ respectively (see Figure 11). Then + +$$ +|A E|+|B D|=|A B|=|A K|+|B K|=|A H|+|B G| \text {, } +$$ + +implying $|D G|=|E H|$. Hence the triangles $D I G$ ja $E I H$ are congruent, +and + +$\angle D I E=\angle G I H=180^{\circ}-\angle C$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-13.jpg?height=432&width=492&top_left_y=325&top_left_x=220) + +Figure 10 + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-13.jpg?height=434&width=491&top_left_y=324&top_left_x=735) + +Figure 11 + +On the other hand, + +$$ +\angle D I E=\angle A I B=180^{\circ}-\frac{\angle A+\angle B}{2} . +$$ + +Hence + +$$ +\angle C=\frac{\angle A+\angle B}{2}=90^{\circ}-\frac{\angle C}{2} +$$ + +which gives $\angle C=60^{\circ}$. + +14. The quadrilaterals $D B C G$ and $F B C E$ are trapeziums. The area of a trapezium is equal to half the sum of the lengths of the parallel sides multiplied by the distance between them. But the distance between the parallel sides is the same for both of these trapeziums, since the distance from $B$ to $A C$ is equal to the distance from $C$ to $A B$. It therefore suffices to show that + +$$ +\frac{|B D|+|C G|}{|C E|+|B F|}=\frac{|A D|}{|A E|} +$$ + +(see Figure 12). Now, since the triangles $B D F, A D E$ and $C G E$ are similar, we have + +$$ +\frac{|B D|}{|B F|}=\frac{|C G|}{|C E|}=\frac{|A D|}{|A E|} +$$ + +which implies the required equality. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-14.jpg?height=412&width=389&top_left_y=274&top_left_x=209) + +Figure 12 + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-14.jpg?height=426&width=607&top_left_y=257&top_left_x=699) + +Figure 13 + +Alternative solution. As in the first solution, we need to show that + +$$ +\frac{|B D|+|C G|}{|B F|+|C E|}=\frac{|A D|}{|A E|} +$$ + +Let $M$ be the midpoint of $B C$, and let $F^{\prime}$ and $G^{\prime}$ be the points symmetric to $F$ and $G$, respectively, relative to $M$ (see Figure 13). Since $C G$ is parallel to $A B$, then point $G^{\prime}$ lies on the line $A B$, and $\left|B G^{\prime}\right|=|C G|$. Similarly point $F^{\prime}$ lies on the line $A C$, and $\left|C F^{\prime}\right|=|B F|$. It remains to show that + +$$ +\frac{\left|D G^{\prime}\right|}{\left|E F^{\prime}\right|}=\frac{|A D|}{|A E|} +$$ + +which follows from $D E$ and $F^{\prime} G^{\prime}$ being parallel. + +Another solution. Express the areas of the quadrilaterals as + +$$ +[D B C G]=[A B C]-[A D E]+[E C G] +$$ + +and + +$$ +[F B C E]=[A B C]-[A D E]+[D B F] +$$ + +The required equality can now be proved by direct computation. + +15. Consider a point $F$ on $B C$ such that $|C F|=|B D|$ (see Figure 14). Since $\angle A C F=60^{\circ}$, triangle $A C F$ is equilateral. Therefore $|A F|=|A C|=|C E|$ +and $\angle A F B=\angle E C D=120^{\circ}$. Moreover, $|B F|=|C D|$. This implies that triangles $A F B$ and $E C D$ are congruent, and $|A B|=|D E|$. + +![](https://cdn.mathpix.com/cropped/2024_04_17_4295e1732196be96a5e3g-15.jpg?height=444&width=538&top_left_y=311&top_left_x=320) + +Figure 14 + +Alternative solution. The cosine law in triangle $A B C$ implies + +$$ +\begin{aligned} +|A B|^{2} & =|A C|^{2}+|B C|^{2}-2 \cdot|A C| \cdot|B C| \cdot \cos \angle A C B= \\ +& =|A C|^{2}+|B C|^{2}-|A C| \cdot|B C|= \\ +& =|A C|^{2}+(|B D|+|D C|)^{2}-|A C| \cdot(|B D|+|D C|)= \\ +& =|A C|^{2}+(|A C|+|D C|)^{2}-|A C| \cdot(|A C|+|D C|)= \\ +& =|A C|^{2}+|D C|^{2}+|A C| \cdot|D C| +\end{aligned} +$$ + +On the other hand, the cosine law in triangle $C D E$ gives + +$$ +\begin{aligned} +|D E|^{2} & =|D C|^{2}+|C E|^{2}-2 \cdot|D C| \cdot|C E| \cdot \cos \angle D C E= \\ +& =|D C|^{2}+|C E|^{2}+|D C| \cdot|E C|= \\ +& =|D C|^{2}+|A C|^{2}+|D C| \cdot|A C| . +\end{aligned} +$$ + +Hence $|A B|=|D E|$. + +16. Answer: 14. + +Assume that there are integers $n, m$ such that $k=19^{n}-5^{m}$ is a positive integer smaller than $19^{1}-5^{1}=14$. For obvious reasons, $n$ and $m$ must be positive. + +Case 1: Assume that $n$ is even. Then the last digit of $k$ is 6 . Consequently, we have $19^{n}-5^{m}=6$. Considering this equation modulo 3 implies that $m$ +must be even as well. With $n=2 n^{\prime}$ and $m=2 m^{\prime}$ the above equation can be restated as $\left(19^{n^{\prime}}+5^{m^{\prime}}\right)\left(19^{n^{\prime}}-5^{m^{\prime}}\right)=6$ which evidently has no solution in positive integers. + +Case 2: Assume that $n$ is odd. Then the last digit of $k$ is 4 . Consequently, we have $19^{n}-5^{m}=4$. On the other hand, the remainder of $19^{n}-5^{m}$ modulo 3 is never 1 , a contradiction. + +17. Answer: yes. + +Let $n=5$ and consider the integers $0,2,8,14,26$. Adding $a=3$ or $a=5$ to all of these integers we get primes. Since the numbers $0,2,8,14$ and 26 have pairwise different remainders modulo 5 then for any integer $a$ the numbers $a+0, a+2, a+8, a+14$ and $a+26$ have also pairwise different remainders modulo 5 ; therefore one of them is divisible by 5 . Hence if the numbers $a+0, a+2, a+8, a+14$ and $a+26$ are all primes then one of them must be equal to 5 , which is only true for $a=3$ and $a=5$. + +18. Squaring the second inequality gives $(a-b)^{2}<5+4 \sqrt{4 m+1}$. Since $m=a b$, we have + +$$ +(a+b)^{2}<5+4 \sqrt{4 m+1}+4 m=(\sqrt{4 m+1}+2)^{2} +$$ + +implying + +$$ +a+b<\sqrt{4 m+1}+2 \text {. } +$$ + +Since $a>b$, different factorizations $m=a b$ will give different values for the sum $a+b(a b=m, a+b=k, a>b$ has at most one solution in $(a, b))$. Since $m \equiv 2(\bmod 4)$, we see that $a$ and $b$ must have different parity, and $a+b$ must be odd. Also note that + +$$ +a+b \geqslant 2 \sqrt{a b}=\sqrt{4 m} +$$ + +Since $4 m$ cannot be a square we have + +$$ +a+b \geqslant \sqrt{4 m+1} . +$$ + +Since $a+b$ is odd and the interval $[\sqrt{4 m+1}, \sqrt{4 m+1}+2)$ contains exactly one odd integer, then there can be at most one pair $(a, b)$ such that $a+b<\sqrt{4 m+1}+2$, or equivalently $a-b<\sqrt{5+4 \sqrt{4 m+1}}$. + +19. Note that the square of any prime $p \neq 3$ is congruent to 1 modulo 3 . Hence the numbers $k=6 m+2$ will have the required property for any $p \neq 3$, as +$p^{2}+k$ will be divisible by 3 and hence composite. + +In order to have $3^{2}+k$ also composite, we look for such values of $m$ for which $k=6 m+2$ is congruent to 1 modulo 5 - then $3^{2}+k$ will be divisible by 5 and hence composite. Taking $m=5 t+4$, we have $k=30 t+26$, which is congruent to 2 modulo 3 and congruent to 1 modulo 5 . Hence $p^{2}+(30 t+26)$ is composite for any positive integer $t$ and prime $p$. + +20. Answer: the only possible value is 1999 . + +Since $a^{2}-b^{2}+c^{2}-d^{2}$ is odd, one of the primes $a, b, c$ and $d$ must be 2 , and in view of $a>3 b>6 c>12 d$ we must have $d=2$. Now + +$$ +1749=a^{2}-b^{2}+c^{2}-d^{2}>9 b^{2}-b^{2}+4 d^{2}-d^{2}=8 b^{2}-12, +$$ + +implying $b \leqslant 13$. From $4