diff --git a/RMM/download_script/download.py b/RMM/download_script/download.py new file mode 100644 index 0000000000000000000000000000000000000000..85bbb11f5b85aafa5ef0c214c824bdbf7c60636a --- /dev/null +++ b/RMM/download_script/download.py @@ -0,0 +1,120 @@ +# ----------------------------------------------------------------------------- +# Author: Jiawei Liu +# Date: 2024-11-20 +# ----------------------------------------------------------------------------- +''' +Download script for RMM +Manual review is required to remove some duplicate files. +To run: +`python RMM\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(): + req_session = build_session() + + # Output directory + output_dir = Path(__file__).parent.parent / "raw" + output_dir.mkdir(exist_ok=True) + + # Get a list of competition years + resp = req_session.get("https://rmms.lbi.ro/") + soup = BeautifulSoup(resp.text, "html.parser") + a_eles = soup.select_one("#header").find_all("a")[2:] + urls = [f"{_['href']}/" for _ in a_eles] + [resp.url] + + for url in tqdm(urls): + year = url.split("/")[-2].replace("rmm", "") + donwload_urls = [] + + # Make request url + sol_page_url = urljoin(url, "index.php?id=solutions_math") + prob_page_url = urljoin(url, "index.php?id=problems_math") + + # Make requests + sol_page_resp = req_session.get(sol_page_url) + prob_page_resp = req_session.get(prob_page_url) + + sol_page_soup = BeautifulSoup(sol_page_resp.text, "html.parser") + prob_page_soup = BeautifulSoup(prob_page_resp.text, "html.parser") + + # Check if the page has pdf container + sol_content_container = sol_page_soup.select_one("#inside_content") + prob_content_container = prob_page_soup.select_one("#inside_content") + if sol_content_container is None and prob_content_container is None: + continue + + sol_a_eles = sol_page_soup.select_one("#inside_content").find_all("a") + sol_iframe_eles = sol_page_soup.select_one("#inside_content").find_all("iframe") + + # Check if the page has solutions pdf + if len(sol_iframe_eles) != 0 or len(sol_a_eles) != 0: + if len(sol_a_eles) != 0: + donwload_urls = [_["href"] for _ in sol_a_eles] + elif len(sol_iframe_eles) != 0: + donwload_urls = [_["src"] for _ in sol_iframe_eles] + else: + # Check if the page has problems pdf + prob_a_eles = prob_page_soup.select_one("#inside_content").find_all("a") + prob_iframe_eles = prob_page_soup.select_one("#inside_content").find_all("iframe") + + if len(prob_iframe_eles) != 0 or len(prob_a_eles) != 0: + if len(prob_a_eles) != 0: + donwload_urls = [_["href"] for _ in prob_a_eles] + elif len(prob_iframe_eles) != 0: + donwload_urls = [_["src"] for _ in prob_iframe_eles] + + # Download pdf + for du in donwload_urls: + if "grading" in du.lower(): + continue + + download_url = urljoin(url, du) + + output_file = output_dir / f"en-{year}-{Path(download_url).name}" + if output_file.exists(): + continue + + pdf_resp = requests.get(download_url) + + if pdf_resp.status_code != 200: + print(f"pdf download failed: {download_url}") + continue + + output_file.write_bytes(pdf_resp.content) + + +if __name__ == "__main__": + main() diff --git a/RMM/md/en-2011-Sols2011D1.md b/RMM/md/en-2011-Sols2011D1.md new file mode 100644 index 0000000000000000000000000000000000000000..8aa2c0a975ad39a1523409c10e5e81b70cf89fc4 --- /dev/null +++ b/RMM/md/en-2011-Sols2011D1.md @@ -0,0 +1,168 @@ +# The $4^{\text {th }}$ Romanian Master of Mathematics Competition - Solutions Day 1: Friday, February 25, 2011, Bucharest + +Problem 1. Prove that there exist two functions + +$$ +f, g: \mathbb{R} \rightarrow \mathbb{R} +$$ + +such that $f \circ g$ is strictly decreasing, while $g \circ f$ is strictly increasing. +(Poland) Andrzej KomisArsKi \& Marcin Kuczma + +## Solution. Let + +$$ +\begin{aligned} +& \cdot A=\bigcup_{k \in \mathbb{Z}}\left(\left[-2^{2 k+1},-2^{2 k}\right) \bigcup\left(2^{2 k}, 2^{2 k+1}\right]\right) \\ +& \cdot B=\bigcup_{k \in \mathbb{Z}}\left(\left[-2^{2 k},-2^{2 k-1}\right) \bigcup\left(2^{2 k-1}, 2^{2 k}\right]\right) +\end{aligned} +$$ + +Thus $A=2 B, B=2 A, A=-A, B=-B, A \cap B=\varnothing$, and finally $A \cup B \cup\{0\}=\mathbb{R}$. Let us take + +$$ +f(x)=\left\{\begin{array}{lll} +x & \text { for } & x \in A \\ +-x & \text { for } & x \in B \\ +0 & \text { for } & x=0 +\end{array}\right. +$$ + +Take $g(x)=2 f(x)$. Thus $f(g(x))=f(2 f(x))=-2 x$ and $g(f(x))=2 f(f(x))=2 x$. + +Problem 2. Determine all positive integers $n$ for which there exists a polynomial $f(x)$ with real coefficients, with the following properties: +(1) for each integer $k$, the number $f(k)$ is an integer if and only if $k$ is not divisible by $n$; +(2) the degree of $f$ is less than $n$. +(Hungary) GÉza Kós +Solution. We will show that such polynomial exists if and only if $n=1$ or $n$ is a power of a prime. + +We will use two known facts stated in Lemmata 1 and 2. +Lemma 1. If $p^{a}$ is a power of a prime and $k$ is an integer, then $\frac{(k-1)(k-2) \ldots\left(k-p^{a}+1\right)}{\left(p^{a}-1\right)!}$ is divisible by $p$ if and only if $k$ is not divisible by $p^{a}$. + +Proof. First suppose that $p^{a} \mid k$ and consider + +$$ +\frac{(k-1)(k-2) \cdots\left(k-p^{a}+1\right)}{\left(p^{a}-1\right)!}=\frac{k-1}{p^{a}-1} \cdot \frac{k-2}{p^{a}-2} \cdots \frac{k-p^{a}+1}{1} +$$ + +In every fraction on the right-hand side, $p$ has the same maximal exponent in the numerator as in the denominator. + +Therefore, the product (which is an integer) is not divisible by $p$. + +Now suppose that $p^{a} \nmid k$. We have + +$$ +\frac{(k-1)(k-2) \cdots\left(k-p^{a}+1\right)}{\left(p^{a}-1\right)!}=\frac{p^{a}}{k} \cdot \frac{k(k-1) \cdots\left(k-p^{a}+1\right)}{\left(p^{a}\right)!} . +$$ + +The last fraction is an integer. In the fraction $\frac{p^{a}}{k}$, the denominator $k$ is not divisible by $p^{a}$. +Lemma 2. If $g(x)$ is a polynomial with degree less than $n$ then + +$$ +\sum_{\ell=0}^{n}(-1)^{\ell}\binom{n}{\ell} g(x+n-\ell)=0 +$$ + +Proof. Apply induction on $n$. For $n=1$ then $g(x)$ is a constant and + +$$ +\binom{1}{0} g(x+1)-\binom{1}{1} g(x)=g(x+1)-g(x)=0 +$$ + +Now assume that $n>1$ and the Lemma holds for $n-1$. Let $h(x)=g(x+1)-g(x)$; the degree of $h$ is less than the degree of $g$, so the induction hypothesis applies for $g$ and $n-1$ : + +$$ +\begin{gathered} +\sum_{\ell=0}^{n-1}(-1)^{\ell}\binom{n-1}{\ell} h(x+n-1-\ell)=0 \\ +\sum_{\ell=0}^{n-1}(-1)^{\ell}\binom{n-1}{\ell}(g(x+n-\ell)-g(x+n-1-\ell))=0 \\ +\binom{n-1}{0} g(x+n)+\sum_{\ell=1}^{n-1}(-1)^{\ell}\left(\binom{n-1}{\ell-1}+\right. \\ +\left.\binom{n-1}{\ell}\right) g(x+n-\ell)-(-1)^{n-1}\binom{n-1}{n-1} g(x)=0 \\ +\sum_{\ell=0}^{n}(-1)^{\ell}\binom{n}{\ell} g(x+n-\ell)=0 +\end{gathered} +$$ + +Lemma 3. If $n$ has at least two distinct prime divisors then the greatest common divisor of $\binom{n}{1},\binom{n}{2}, \ldots,\binom{n}{n-1}$ is 1 . + +Proof. Suppose to the contrary that $p$ is a common prime divisor of $\binom{n}{1}, \ldots,\binom{n}{n-1}$. In particular, $p \left\lvert\,\binom{ n}{1}=n\right.$. Let $a$ be the exponent of $p$ in the prime factorization of $n$. Since $n$ has at least two prime divisors, we have $12$ cases, one comes up with the idea of spiral models for the true value $M=2 N-1$. The models presented are for odd $N$ (since 2011 is odd); similar models exist for even $N$ (but are less symmetric). The color red (preceded by green) marks the moment where the largest difference $M=2 N-1$ first appears. +[1] Also see Sloane's Online Encyclopædia of Integer Sequences (OEIS), sequence A001222 for $\Omega$ and sequence A008836 for $\lambda$, which is called Liouville's function. Its summatory function $\sum_{d \mid n} \lambda(d)$ is equal to 1 for a perfect square $n$, and 0 otherwise. +Pólya conjectured that $L(n):=\sum_{k=1}^{n} \lambda(k) \leq 0$ for all $n$, but this has been proven false by Minoru Tanaka, who in 1980 computed that for $n=906,151,257$ its value was positive. Turán showed that if $T(n):=\sum_{k=1}^{n} \frac{\lambda(k)}{k} \geq 0$ for all large enough $n$, that + +| 7 | 2 | 6 | +| :--- | :--- | :--- | +| 3 | 1 | 5 | +| 8 | 4 | 9 | + +TABLE I: The spiral $3 \times 3$ array. + +| 16 | 14 | 7 | 13 | 16 | +| :---: | :---: | :---: | :---: | :---: | +| 12 | 8 | 2 | 6 | 12 | +| 9 | 3 | 1 | 5 | 9 | +| 15 | 10 | 4 | 11 | 15 | +| 16 | 14 | 7 | 13 | | +| | | | | | + +TABLE II: The spiral $4 \times 4$ array. + +| 23 | 16 | 7 | 15 | 22 | +| :---: | :---: | :---: | :---: | :---: | +| 17 | 8 | 2 | 6 | 14 | +| 9 | 3 | 1 | 5 | 13 | +| 18 | 10 | 4 | 12 | 21 | +| 24 | 19 | 11 | 20 | 25 | + +TABLE III: The spiral $5 \times 5$ array. + +| 47 | 40 | 29 | 16 | 28 | 39 | 46 | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| 41 | 30 | 17 | 7 | 15 | 27 | 38 | +| 31 | 18 | 8 | 2 | 6 | 14 | 26 | +| 19 | 9 | 3 | 1 | 5 | 13 | 25 | +| 32 | 20 | 10 | 4 | 12 | 24 | 37 | +| 42 | 33 | 21 | 11 | 23 | 36 | 45 | +| 48 | 43 | 34 | 22 | 35 | 44 | 49 | + +TABLE IV: The spiral $7 \times 7$ array. + +| $(2 \mathrm{n}+1)^{2}-2$ | $(2 \mathrm{n}+1)^{2}-9$ | $\ldots$ | | $\mathrm{n}(2 \mathrm{n}-1)+1$ | | $\ldots$ | $(2 \mathrm{n}+1)^{2}-10$ | $(2 \mathrm{n}+1)^{2}-3$ | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| $(2 \mathrm{n}+1)^{2}-8$ | | $\ldots$ | $\mathrm{n}(2 \mathrm{n}-1)+2$ | | $\mathrm{n}(2 \mathrm{n}-1)$ | $\ldots$ | | $(2 \mathrm{n}+1)^{2}-11$ | +| $\vdots$ | $\vdots$ | $\ddots$ | $\vdots$ | $\vdots$ | $\vdots$ | $\ddots$ | $2 \mathrm{n}(\mathrm{n}+1)+3$ | $\vdots$ | +| | $2 \mathrm{n}^{2}$ | $\ldots$ | 8 | 2 | 6 | $\ldots$ | $2 \mathrm{n}(\mathrm{n}-1)+2$ | $2 \mathrm{n}(\mathrm{n}+1)+2$ | +| $2 \mathrm{n}^{2}+1$ | | $\ldots$ | 3 | 1 | 5 | $\ldots$ | | $2 \mathrm{n}(\mathrm{n}+1)+1$ | +| | $2 \mathrm{n}^{2}+2$ | $\ldots$ | 10 | 4 | 12 | $\ldots$ | $2 \mathrm{n}(\mathrm{n}+1)$ | | +| | $\vdots$ | $\ddots$ | $\vdots$ | $\vdots$ | $\vdots$ | $\ddots$ | $\vdots$ | $\vdots$ | +| $\vdots$ | $\vdots$ | $\ldots$ | $\mathrm{n}(2 \mathrm{n}+1)$ | | $\mathrm{n}(2+1)+2$ | $\ldots$ | | $(2 \mathrm{n}+1)^{2}-4$ | +| $(2 \mathrm{n}+1)^{2}-7$ | | $\ldots$ | $\mathrm{n}(2 \mathrm{n}+1)+1$ | | $\ldots$ | $(2 \mathrm{n}+1)^{2}-5$ | $(2 \mathrm{n}+1)^{2}$ | | +| $(2 \mathrm{n}+1)^{2}-1$ | $(2 \mathrm{n}+1)^{2}-6$ | $\ldots$ | | | | | | | + +TABLE V: The general spiral $N \times N$ array for $N=2 n+1 \geq 5$. +will imply Riemann's Hypothesis; however, Haselgrove proved it is negative infinitely often. +[2] Using the same procedure for point i), we only need notice that $\lambda\left((2 k+1)^{2}\right)=\lambda\left((2 k)^{2}\right)=1$, and these terms again are of different parity of their position. +[3] Is this true for subsequences of all lengths $\ell=3,4$, etc.? If no, up to which length $\ell \geq 2$ ? +[4] Cells with coordinates $(x, y)$ and $\left(x^{\prime}, y^{\prime}\right)$ are considered to be neighbours if $x=x^{\prime}$ and $y-y^{\prime} \equiv \pm 1(\bmod 2011)$, or if $y=y^{\prime}$ and $x-x^{\prime} \equiv \pm 1(\bmod 2011)$. + diff --git a/RMM/md/en-2012-Solutions2012-1.md b/RMM/md/en-2012-Solutions2012-1.md new file mode 100644 index 0000000000000000000000000000000000000000..bc1d6e78334a2f42fe1e070477d49df83f64b758 --- /dev/null +++ b/RMM/md/en-2012-Solutions2012-1.md @@ -0,0 +1,123 @@ +# The $5^{\text {th }}$ Romanian Master of Mathematics Competition + +Solutions for the Day 1 + +Problem 1. Given a finite group of boys and girls, a covering set of boys is a set of boys such that every girl knows at least one boy in that set; and a covering set of girls is a set of girls such that every boy knows at least one girl in that set. Prove that the number of covering sets of boys and the number of covering sets of girls have the same parity. (Acquaintance is assumed to be mutual.) + +Solution 1. A set $X$ of boys is separated from a set $Y$ of girls if no boy in $X$ is an acquaintance of a girl in $Y$. Similarly, a set $Y$ of girls is separated from a set $X$ of boys if no girl in $Y$ is an acquaintance of a boy in $X$. Since acquaintance is assumed mutual, separation is symmetric: $X$ is separated from $Y$ if and only if $Y$ is separated from $X$. + +This enables doubly counting the number $n$ of ordered pairs $(X, Y)$ of separated sets $X$, of boys, and $Y$, of girls, and thereby showing that it is congruent modulo 2 to both numbers in question. + +Given a set $X$ of boys, let $Y_{X}$ be the largest set of girls separated from $X$, to deduce that $X$ is separated from exactly $2^{\left|Y_{X}\right|}$ sets of girls. Consequently, $n=\sum_{X} 2^{\left|Y_{X}\right|}$ which is clearly congruent modulo 2 to the number of covering sets of boys. + +Mutatis mutandis, the argument applies to show $n$ congruent modulo 2 to the number of covering sets of girls. + +Remark. The argument in this solution translates verbatim in terms of the adjancency matrix of the associated acquaintance graph. + +Solution 2. (Ilya Bogdanov) Let $B$ denote the set of boys, let $G$ denote the set of girls and induct on $|B|+|G|$. The assertion is vacuously true if either set is empty. + +Next, fix a boy $b$, let $B^{\prime}=B \backslash\{b\}$, and let $G^{\prime}$ be the set of all girls who do not know $b$. Notice that: +(1) a covering set of boys in $B^{\prime} \cup G$ is still one in $B \cup G$; and +(2) a covering set of boys in $B \cup G$ which is no longer one in $B^{\prime} \cup G$ is precisely the union of a covering set of boys in $B^{\prime} \cup G^{\prime}$ and $\{b\}$, +so the number of covering sets of boys in $B \cup G$ is the sum of those in $B^{\prime} \cup G$ and $B^{\prime} \cup G^{\prime}$. On the other hand, +$\left(1^{\prime}\right)$ a covering set of girls in $B \cup G$ is still one in $B^{\prime} \cup G$; and +$\left(2^{\prime}\right)$ a covering set of girls in $B^{\prime} \cup G$ which is no longer one in $B \cup G$ is precisely a covering set of girls in $B^{\prime} \cup G^{\prime}$, +so the number of covering sets of girls in $B \cup G$ is the difference of those in $B^{\prime} \cup G$ and $B^{\prime} \cup G^{\prime}$. Since the assertion is true for both $B^{\prime} \cup G$ and $B^{\prime} \cup G^{\prime}$ by the induction hypothesis, the conclusion follows. + +Solution 3. (Géza Kós) Let $B$ and $G$ denote the sets of boys and girls, respectively. For every pair $(b, g) \in B \times G$, write $f(b, g)=0$ if they know each other, and $f(b, g)=1$ otherwise. A set $X$ of boys is covering if and only if + +$$ +\prod_{g \in G}\left(1-\prod_{b \in X} f(b, g)\right)=1 +$$ + +Hence the number of covering sets of boys is + +$$ +\begin{aligned} +\sum_{X \subseteq B} \prod_{g \in G}\left(1-\prod_{b \in X} f(b, g)\right) & \equiv \sum_{X \subseteq B} \prod_{g \in G}\left(1+\prod_{b \in X} f(b, g)\right) \\ +& =\sum_{X \subseteq B} \sum_{Y \subseteq G} \prod_{b \in X} \prod_{g \in Y} f(b, g) \quad(\bmod 2) +\end{aligned} +$$ + +By symmetry, the same is valid for the number of covering sets of girls. + +Problem 2. Given a triangle $A B C$, let $D, E$, and $F$ respectively denote the midpoints of the sides $B C, C A$, and $A B$. The circle $B C F$ and the line $B E$ meet again at $P$, and the circle $A B E$ and the line $A D$ meet again at $Q$. Finally, the lines $D P$ and $F Q$ meet at $R$. Prove that the centroid $G$ of the triangle $A B C$ lies on the circle $P Q R$. + +Solution 1. We will use the following lemma. +Lemma. Let $A D$ be a median in triangle $A B C$. Then $\cot \angle B A D=2 \cot A+\cot B$ and $\cot \angle A D C=\frac{1}{2}(\cot B-\cot C)$. + +Proof. Let $C C_{1}$ and $D D_{1}$ be the perpendiculars from $C$ and $D$ to $A B$. Using the signed lengths we write + +$$ +\cot B A D=\frac{A D_{1}}{D D_{1}}=\frac{\left(A C_{1}+A B\right) / 2}{C C_{1} / 2}=\frac{C C_{1} \cot A+C C_{1}(\cot A+\cot B)}{C C_{1}}=2 \cot A+\cot B +$$ + +Similarly, denoting by $A_{1}$ the projection of $A$ onto $B C$, we get + +$$ +\cot A D C=\frac{D A_{1}}{A A_{1}}=\frac{B C / 2-A_{1} C}{A A_{1}}=\frac{\left(A A_{1} \cot B+A A_{1} \cot C\right) / 2-A A_{1} \cot C}{A A_{1}}=\frac{\cot B-\cot C}{2} . +$$ + +The Lemma is proved. +Turning to the solution, by the Lemma we get + +$$ +\begin{aligned} +\cot \angle B P D & =2 \cot \angle B P C+\cot \angle P B C=2 \cot \angle B F C+\cot \angle P B C \quad(\text { from circle } B F P C) \\ +& =2 \cdot \frac{1}{2}(\cot A-\cot B)+2 \cot B+\cot C=\cot A+\cot B+\cot C +\end{aligned} +$$ + +Similarly, $\cot \angle G Q F=\cot A+\cot B+\cot C$, so $\angle G P R=\angle G Q F$ and $G P R Q$ is cyclic. +Remark. The angle $\angle G P R=\angle G Q F$ is the Brocard angle. +Solution 2. (Ilya Bogdanov and Marian Andronache) We also prove that $\angle(R P, P G)=\angle(R Q, Q G)$, or $\angle(D P, P G)=\angle(F Q, Q G)$. + +Let $S$ be the point on ray $G D$ such that $A G \cdot G S=C G \cdot G F$ (so the points $A, S, C, F$ are concyclic). Then $G P \cdot G E=G P \cdot \frac{1}{2} G B=\frac{1}{2} C G \cdot G F=\frac{1}{2} A G \cdot G S=G D \cdot G S$, hence the points $E, P, D, S$ are also concyclic, and $\angle(D P, P G)=\angle(G S, S E)$. The problem may therefore be rephrased as follows: +Given a triangle $A B C$, let $D, E$ and $F$ respectively denote the midpoints of the sides $B C, C A$ and $A B$. The circle $A B E$, respectively, $A C F$, and the line $A D$ meet again at $Q$, respectively, $S$. Prove that $\angle A Q F=\angle A S E($ and $E S=F Q)$. +![](https://cdn.mathpix.com/cropped/2024_11_22_582a7d16cf88812203a4g-3.jpg?height=667&width=840&top_left_y=1931&top_left_x=611) + +Upon inversion of pole $A$, the problem reads: +Given a triangle $A E^{\prime} F^{\prime}$, let the symmedian from $A$ meet the medians from $E^{\prime}$ and $F^{\prime}$ at $K=Q^{\prime}$ and $L=S^{\prime}$, respectively. Prove that the angles $A E^{\prime} L$ and $A F^{\prime} K$ are congruent. +![](https://cdn.mathpix.com/cropped/2024_11_22_582a7d16cf88812203a4g-4.jpg?height=552&width=606&top_left_y=409&top_left_x=728) + +To prove this, denote $E^{\prime}=X, F^{\prime}=Y$. Let the symmedian from $A$ meet the side $X Y$ at $V$ and let the lines $X L$ and $Y K$ meet the sides $A Y$ and $A X$ at $M$ and $N$, respectively. Since the points $K$ and $L$ lie on the medians, we have $V M\|A X, V N\| A Y$. Hence $A M V N$ is a parallelogram, the symmedian $A V$ of triangle $A X Y$ supports the median of triangle $A M N$, which implies that the triangles $A M N$ and $A X Y$ are similar. Hence the points $M, N, X, Y$ are concyclic, and $\angle A X M=\angle A Y N$, QED. + +Remark 1. We know that the points $X, Y, M, N$ are concyclic. Invert back from $A$ and consider the circles $A F Q$ and $A E S$ : the former meets $A C$ again at $M^{\prime}$ and the latter meets $A B$ again at $N^{\prime}$. Then the points $E, F, M^{\prime}, N^{\prime}$ are concyclic. + +Remark 2. The inversion at pole $A$ also allows one to show that $\angle A Q F$ is the Brocard angle, thus providing one more solution. In our notation, it is equivalent to the fact that the points $Y$, $K$, and $Z$ are collinear, where $Z$ is the Brocard point (so $\angle Z A X=\angle Z Y A=\angle Z X Y$ ). This is valid because the lines $A V, X K$, and $Y Z$ are the radical axes of the following circles: (i) passing through $X$ and tangent to $A Y$ at $A$; (ii) passing through $Y$ and tangent to $A X$ at $A$; and (iii) passing through $X$ and tangent to $A Y$ at $Y$. The point $K$ is the radical center of these three circles. + +Solution 3. (Ilya Bogdanov) Again, we will prove that $\angle(D P, P G)=\angle(F Q, Q G)$. Mark a point $T$ on the ray $G F$ such that $G F \cdot G T=G Q \cdot G D$; then the points $F, Q, D, T$ are concyclic, and $\angle(F Q, Q G)=\angle(T G, T D)=\angle(T C, T D)$. +![](https://cdn.mathpix.com/cropped/2024_11_22_582a7d16cf88812203a4g-4.jpg?height=601&width=1072&top_left_y=1995&top_left_x=498) + +Shift the point $P$ by the vector $\overrightarrow{B D}$ to obtain point $P^{\prime}$. Then $\angle(D P, P G)=\angle\left(C P^{\prime}, P^{\prime} D\right)$, and we need to prove that $\angle\left(C P^{\prime}, P^{\prime} D\right)=\angle(C T, T D)$. This is precisely the condition that the points $T, D, C, P^{\prime}$ be concyclic. + +Denote $G E=x, G F=y$. Then $G P \cdot G B=G C \cdot G F$, so $G P=y^{2} / x$. On the other hand, $G B \cdot G E=G Q \cdot G A=2 G Q \cdot G D=2 G T \cdot G F$, so $G T=x^{2} / y$. Denote by $K$ the point of intersection of $D P^{\prime}$ and $C T$; we need to prove that $T K \cdot K C=D K \cdot K P^{\prime}$. + +Now, $D P^{\prime}=B P=B G+G P=2 x+y^{2} / x, C T=C G+G T=2 y+x^{2} / y, D K=B G / 2=x$, $C K=C G / 2=y$. Hence the desired equality reads $x\left(x+y^{2} / x\right)=y\left(y+x^{2} / y\right)$ which is obvious. + +Remark. The points $B, T, E$, and $C$ are concyclic, hence the point $T$ is also of the same kind as $P$ and $Q$. + +Problem 3. Each positive integer number is coloured red or blue. A function $f$ from the set of positive integer numbers into itself has the following two properties: +(a) if $x \leq y$, then $f(x) \leq f(y)$; and +(b) if $x, y$ and $z$ are all (not necessarily distinct) positive integer numbers of the same colour and $x+y=z$, then $f(x)+f(y)=f(z)$. + +Prove that there exists a positive number $a$ such that $f(x) \leq a x$ for all positive integer numbers $x$. + +Solution. For integer $x, y$, by a segment $[x, y]$ we always mean the set of all integers $t$ such that $x \leq t \leq y$; the length of this segment is $y-x$. + +If for every two positive integers $x, y$ sharing the same colour we have $f(x) / x=f(y) / y$, then one can choose $a=\max \{f(r) / r, f(b) / b\}$, where $r$ and $b$ are arbitrary red and blue numbers, respectively. So we can assume that there are two red numbers $x, y$ such that $f(x) / x \neq f(y) / y$. + +Set $m=x y$. Then each segment of length $m$ contains a blue number. Indeed, assume that all the numbers on the segment $[k, k+m]$ are red. Then + +$$ +\begin{aligned} +& f(k+m)=f(k+x y)=f(k+x(y-1))+f(x)=\cdots=f(k)+y f(x), \\ +& f(k+m)=f(k+x y)=f(k+(x-1) y)+f(y)=\cdots=f(k)+x f(y), +\end{aligned} +$$ + +so $y f(x)=x f(y)$ - a contradiction. Now we consider two cases. +Case 1. Assume that there exists a segment $[k, k+m]$ of length $m$ consisting of blue numbers. Define $D=\max \{f(k), \ldots, f(k+m)\}$. We claim that $f(z)-f(z-1) \leq D$, whatever $z>k$, and the conclusion follows. Consider the largest blue number $b_{1}$ not exceeding $z$, so $z-b_{1} \leq m$, and some blue number $b_{2}$ on the segment $\left[b_{1}+k, b_{1}+k+m\right]$, so $b_{2}>z$. Write $f\left(b_{2}\right)=f\left(b_{1}\right)+f\left(b_{2}-b_{1}\right) \leq f\left(b_{1}\right)+D$ to deduce that $f(z+1)-f(z) \leq f\left(b_{2}\right)-f\left(b_{1}\right) \leq D$, as claimed. + +Case 2. Each segment of length $m$ contains numbers of both colours. Fix any red number $R \geq 2 m$ such that $R+1$ is blue and set $D=\max \{f(R), f(R+1)\}$. Now we claim that $f(z+1)-f(z) \leq D$, whatever $z>2 m$. Consider the largest red number $r$ not exceeding $z$ and the largest blue number $b$ smaller than $r$; then $0z$. If $t$ is blue, then $f(t)=f(b)+f(R+1) \leq f(b)+D$, and $f(z+1)-f(z) \leq f(t)-f(b) \leq D$. Otherwise, $f(t)=f(b+1)+f(R) \leq f(b+1)+D$, hence $f(z+1)-f(z) \leq f(t)-f(b+1) \leq D$, as claimed. + diff --git a/RMM/md/en-2012-Solutions2012-2.md b/RMM/md/en-2012-Solutions2012-2.md new file mode 100644 index 0000000000000000000000000000000000000000..dd56fc5789504ca5c02b26845f017b18db130578 --- /dev/null +++ b/RMM/md/en-2012-Solutions2012-2.md @@ -0,0 +1,90 @@ +# The $5^{\text {th }}$ Romanian Master of Mathematics Competition + +Solutions for the Day 2 + +Problem 4. Prove that there are infinitely many positive integer numbers $n$ such that $2^{2^{n}+1}+1$ be divisible by $n$, but $2^{n}+1$ be not. + +Solution 1. Throughout the solution $n$ stands for a positive integer. By Euler's theorem, $\left(2^{3^{n}}+1\right)\left(2^{3^{n}}-1\right)=2^{2 \cdot 3^{n}}-1 \equiv 0\left(\bmod 3^{n+1}\right)$. Since $2^{3^{n}}-1 \equiv 1(\bmod 3)$, it follows that $2^{3^{n}}+1$ is divisible by $3^{n+1}$. + +The number $\left(2^{3^{n+1}}+1\right) /\left(2^{3^{n}}+1\right)=2^{2 \cdot 3^{n}}-2^{3^{n}}+1$ is greater than 3 and congruent to 3 modulo 9 , so it has a prime factor $p_{n}>3$ that does not divide $2^{3^{n}}+1$ (otherwise, $2^{3^{n}} \equiv-1$ (mod $\left.p_{n}\right)$, so $2^{2 \cdot 3^{n}}-2^{3^{n}}+1 \equiv 3\left(\bmod p_{n}\right)$, contradicting the fact that $p_{n}$ is a factor greater than 3 of $2^{2 \cdot 3^{n}}-2^{3^{n}}+1$ ). + +We now show that $a_{n}=3^{n} p_{n}$ satisfies the conditions in the statement. Since $2^{a_{n}}+1 \equiv$ $2^{3^{n}}+1 \not \equiv 0\left(\bmod p_{n}\right)$, it follows that $a_{n}$ does not divide $2^{a_{n}}+1$. + +On the other hand, $3^{n+1}$ divides $2^{3^{n}}+1$ which in turn divides $2^{a_{n}}+1$, so $2^{3^{n+1}}+1$ divides $2^{2^{a_{n}}+1}+1$. Finally, both $3^{n}$ and $p_{n}$ divide $2^{3^{n+1}}+1$, so $a_{n}$ divides $2^{2^{a_{n}}+1}+1$. + +As $n$ runs through the positive integers, the $a_{n}$ are clearly pairwise distinct and the conclusion follows. + +Solution 2. (Géza Kós) We show that the numbers $a_{n}=\left(2^{3^{n}}+1\right) / 9, n \geq 2$, satisfy the conditions in the statement. To this end, recall the following well-known facts: +(1) If $N$ is an odd positive integer, then $\nu_{3}\left(2^{N}+1\right)=\nu_{3}(N)+1$, where $\nu_{3}(a)$ is the exponent of 3 in the decomposition of the integer $a$ into prime factors; and +(2) If $M$ and $N$ are odd positive integers, then $\left(2^{M}+1,2^{N}+1\right)=2^{(M, N)}+1$, where $(a, b)$ is the greatest common divisor of the integers $a$ and $b$. +By (1), $a_{n}=3^{n-1} m$, where $m$ is an odd positive integer not divisible by 3 , and by (2), + +$$ +\left(m, 2^{a_{n}}+1\right) \left\lvert\,\left(2^{3^{n}}+1,2^{a_{n}}+1\right)=2^{\left(3^{n}, a_{n}\right)}+1=2^{3^{n-1}}+1<\frac{2^{3^{n}}+1}{3^{n+1}}=m\right. +$$ + +so $m$ cannot divide $2^{a_{n}}+1$. +On the other hand, $3^{n-1} \mid 2^{2^{a_{n}}+1}+1$, for $\nu_{3}\left(2^{2^{a_{n}}+1}+1\right)>\nu_{3}\left(2^{a_{n}}+1\right)>\nu_{3}\left(a_{n}\right)=n-1$, and $m \mid 2^{2^{a_{n}}+1}+1$, for $3^{n-1} \mid a_{n}$, so $3^{n} \mid 2^{a_{n}}+1$ whence $m\left|2^{3^{n}}+1\right| 2^{2^{a_{n}}+1}+1$. Since $3^{n-1}$ and $m$ are coprime, the conclusion follows. + +Remarks. There are several variations of these solutions. For instance, let $b_{1}=3$ and $b_{n+1}=$ $2^{b_{n}}+1, n \geq 1$, and notice that $b_{n}$ divides $b_{n+1}$. It can be shown that there are infinitely many indices $n$ such that some prime factor $p_{n}$ of $b_{n+1}$ does not divide $b_{n}$. One checks that for these $n$ 's the $a_{n}=p_{n} b_{n-1}$ satisfy the required conditions. + +Finally, the numbers $3^{n} \cdot 571, n \geq 2$, form yet another infinite set of positive integers fulfilling the conditions in the statement - the details are omitted. + +Solution 3. (Dušan Djukić) Assume that $n$ satisfies the conditions of the problem. We claim that the number $N=2^{n}+1>n$ also satisfies these conditions. + +Firstly, since $n \nmid N$, the fact (2) from Solution 2 allows to conclude that $2^{n}+1 \nmid 2^{N}+1$, or $N \nmid 2^{N}+1$. Next, since $n \mid 2^{2^{n}+1}+1=2^{N}+1$, we obtain from the same fact that $N=2^{n}+1 \mid 2^{2^{N}+1}+1$, thus confirming our claim. + +Hence, it suffices to provide only one example, hence obtaining an infinite series by the claim. For instance, one may easily check that the number $n=57$ fits. + +Problem 5. Given a positive integer number $n \geq 3$, colour each cell of an $n \times n$ square array one of $\left[(n+2)^{2} / 3\right]$ colours, each colour being used at least once. Prove that the cells of some $1 \times 3$ or $3 \times 1$ rectangular subarray have pairwise distinct colours. + +Solution. For more convenience, say that a subarray of the $n \times n$ square array bears a colour if at least two of its cells share that colour. + +We shall prove that the number of $1 \times 3$ and $3 \times 1$ rectangular subarrays, which is $2 n(n-2)$, exceeds the number of such subarrays, each of which bears some colour. The key ingredient is the estimate in the lemma below. + +Lemma. If a colour is used exactly $p$ times, then the number of $1 \times 3$ and $3 \times 1$ rectangular subarrays bearing that colour does not exceed $3(p-1)$. + +Assume the lemma for the moment, let $N=\left[(n+2)^{2} / 3\right]$ and let $n_{i}$ be the number of cells coloured the $i$ th colour, $i=1, \ldots, N$, to deduce that the number of $1 \times 3$ and $3 \times 1$ rectangular subarrays, each of which bears some colour, is at most + +$$ +\sum_{i=1}^{N} 3\left(n_{i}-1\right)=3 \sum_{i=1}^{N} n_{i}-3 N=3 n^{2}-3 N<3 n^{2}-\left(n^{2}+4 n\right)=2 n(n-2) +$$ + +and thereby conclude the proof. +Back to the lemma, the assertion is clear if $p=1$, so let $p>1$. +We begin by showing that if a row contains exactly $q$ cells coloured $C$, then the number $r$ of $3 \times 1$ rectangular subarrays bearing $C$ does not exceed $3 q / 2-1$; of course, a similar estimate holds for a column. To this end, notice first that the case $q=1$ is trivial, so we assume that $q>1$. Consider the incidence of a cell $c$ coloured $C$ and a $3 \times 1$ rectangular subarray $R$ bearing $C$ : + +$$ +\langle c, R\rangle= \begin{cases}1 & \text { if } c \subset R \\ 0 & \text { otherwise. }\end{cases} +$$ + +Notice that, given $R, \sum_{c}\langle c, R\rangle \geq 2$, and, given $c, \sum_{R}\langle c, R\rangle \leq 3$; moreover, if $c$ is the leftmost or rightmost cell, then $\sum_{R}\langle c, R\rangle \leq 2$. Consequently, + +$$ +2 r \leq \sum_{R} \sum_{c}\langle c, R\rangle=\sum_{c} \sum_{R}\langle c, R\rangle \leq 2+3(q-2)+2=3 q-2 +$$ + +whence the conclusion. +Finally, let the $p$ cells coloured $C$ lie on $k$ rows and $\ell$ columns and notice that $k+\ell \geq 3$, for $p>1$. By the preceding, the total number of $3 \times 1$ rectangular subarrays bearing $C$ does not exceed $3 p / 2-k$, and the total number of $1 \times 3$ rectangular subarrays bearing $C$ does not exceed $3 p / 2-\ell$, so the total number of $1 \times 3$ and $3 \times 1$ rectangular subarrays bearing $C$ does not exceed $(3 p / 2-k)+(3 p / 2-\ell)=3 p-(k+\ell) \leq 3 p-3=3(p-1)$. This completes the proof. + +Remarks. In terms of the total number of cells, the number $N=\left[(n+2)^{2} / 3\right]$ of colours is asymptotically close to the minimum number of colours required for some $1 \times 3$ or $3 \times 1$ rectangular subarray to have all cells of pairwise distinct colours, whatever the colouring. To see this, colour the cells with the coordinates $(i, j)$, where $i+j \equiv 0(\bmod 3)$ and $i, j \in\{0,1, \ldots, n-1\}$, one colour each, and use one additional colour $C$ to colour the remaining cells. Then each $1 \times 3$ and each $3 \times 1$ rectangular subarray has exactly two cells coloured $C$, and the number of colours is $\left\lceil n^{2} / 3\right\rceil+1$ if $n \equiv 1$ or $2(\bmod 3)$, and $\left\lceil n^{2} / 3\right\rceil$ if $n \equiv 0(\bmod 3)$. Consequently, the minimum number of colours is $n^{2} / 3+O(n)$. + +Problem 6. Let $A B C$ be a triangle and let $I$ and $O$ respectively denote its incentre and circumcentre. Let $\omega_{A}$ be the circle through $B$ and $C$ and tangent to the incircle of the triangle $A B C$; the circles $\omega_{B}$ and $\omega_{C}$ are defined similarly. The circles $\omega_{B}$ and $\omega_{C}$ through $A$ meet again at $A^{\prime}$; the points $B^{\prime}$ and $C^{\prime}$ are defined similarly. Prove that the lines $A A^{\prime}, B B^{\prime}$ and $C C^{\prime}$ are concurrent at a point on the line $I O$. + +Solution. Let $\gamma$ be the incircle of the triangle $A B C$ and let $A_{1}, B_{1}, C_{1}$ be its contact points with the sides $B C, C A, A B$, respectively. Let further $X_{A}$ be the point of contact of the circles $\gamma$ and $\omega_{A}$. The latter circle is the image of the former under a homothety centred at $X_{A}$. This homothety sends $A_{1}$ to a point $M_{A}$ on $\omega_{A}$ such that the tangent to $\omega_{A}$ at $M_{A}$ is parallel to $B C$. Consequently, $M_{A}$ is the midpoint of the arc $B C$ of $\omega_{A}$ not containing $X_{A}$. It follows that the angles $M_{A} X_{A} B$ and $M_{A} B C$ are congruent, so the triangles $M_{A} B A_{1}$ and $M_{A} X_{A} B$ are similar: $M_{A} B / M_{A} X_{A}=M_{A} A_{1} / M_{A} B$. Rewrite the latter $M_{A} B^{2}=M_{A} A_{1} \cdot M_{A} X_{A}$ to deduce that $M_{A}$ lies on the radical axis $\ell_{B}$ of $B$ and $\gamma$. Similarly, $M_{A}$ lies on the radical axis $\ell_{C}$ of $C$ and $\gamma$. + +Define the points $X_{B}, X_{C}, M_{B}, M_{C}$ and the line $\ell_{A}$ in a similar way and notice that the lines $\ell_{A}, \ell_{B}, \ell_{C}$ support the sides of the triangle $M_{A} M_{B} M_{C}$. The lines $\ell_{A}$ and $B_{1} C_{1}$ are both perpendicular to $A I$, so they are parallel. Similarly, the lines $\ell_{B}$ and $\ell_{C}$ are parallel to $C_{1} A_{1}$ and $A_{1} B_{1}$, respectively. Consequently, the triangle $M_{A} M_{B} M_{C}$ is the image of the triangle $A_{1} B_{1} C_{1}$ under a homothety $\Theta$. Let $K$ be the centre of $\Theta$ and let $k=M_{A} K / A_{1} K=M_{B} K / B_{1} K=$ $M_{C} K / C_{1} K$ be the similitude ratio. Notice that the lines $M_{A} A_{1}, M_{B} B_{1}$ and $M_{C} C_{1}$ are concurrent at $K$. + +Since the points $A_{1}, B_{1}, X_{A}, X_{B}$ are concyclic, $A_{1} K \cdot K X_{A}=B_{1} K \cdot K X_{B}$. Multiply both sides by $k$ to get $M_{A} K \cdot K X_{A}=M_{B} K \cdot K X_{B}$ and deduce thereby that $K$ lies on the radical axis $C C^{\prime}$ of $\omega_{A}$ and $\omega_{B}$. Similarly, both lines $A A^{\prime}$ and $B B^{\prime}$ pass through $K$. +![](https://cdn.mathpix.com/cropped/2024_11_22_e254371677eb1894ac24g-3.jpg?height=895&width=920&top_left_y=1414&top_left_x=568) + +Finally, consider the image $O^{\prime}$ of $I$ under $\Theta$. It lies on the line through $M_{A}$ parallel to $A_{1} I$ (and hence perpendicular to $B C$ ); since $M_{A}$ is the midpoint of the $\operatorname{arc} B C$, this line must be $M_{A} O$. Similarly, $O^{\prime}$ lies on the line $M_{B} O$, so $O^{\prime}=O$. Consequently, the points $I, K$ and $O$ are collinear. + +Remark 1. Many steps in this solution allow different reasonings. For instance, one may +see that the lines $A_{1} X_{A}$ and $B_{1} X_{B}$ are concurrent at point $K$ on the radical axis $C C^{\prime}$ of the circles $\omega_{A}$ and $\omega_{B}$ by applying Newton's theorem to the quadrilateral $X_{A} X_{B} A_{1} B_{1}$ (since the common tangents at $X_{A}$ and $X_{B}$ intersect on $C C^{\prime}$ ). Then one can conclude that $K A_{1} / K B_{1}=$ $K M_{A} / K M_{B}$, thus obtaining that the triangles $M_{A} M_{B} M_{C}$ and $A_{1} B_{1} C_{1}$ are homothetical at $K$ (and therefore $K$ is the radical center of $\omega_{A}, \omega_{B}$, and $\omega_{C}$ ). Finally, considering the inversion with the pole $K$ and the power equal to $K X_{1} \cdot K M_{A}$ followed by the reflection at $P$ we see that the circles $\omega_{A}, \omega_{B}$, and $\omega_{C}$ are invariant under this transform; next, the image of $\gamma$ is the circumcircle of $M_{A} M_{B} M_{C}$ and it is tangent to all the circles $\omega_{A}, \omega_{B}$, and $\omega_{C}$, hence its center is $O$, and thus $O, I$, and $K$ are collinear. + +Remark 2. Here is an outline of an alternative approach to the first part of the solution. Let $J_{A}$ be the excentre of the triangle $A B C$ opposite $A$. The line $J_{A} A_{1}$ meets $\gamma$ again at $Y_{A}$; let $Z_{A}$ and $N_{A}$ be the midpoints of the segments $A_{1} Y_{A}$ and $J_{A} A_{1}$, respectively. Since the segment $I J_{A}$ is a diameter in the circle $B C Z_{A}$, it follows that $B A_{1} \cdot C A_{1}=Z_{A} A_{1} \cdot J_{A} A_{1}$, so $B A_{1} \cdot C A_{1}=N_{A} A_{1} \cdot Y_{A} A_{1}$. Consequently, the points $B, C, N_{A}$ and $Y_{A}$ lie on some circle $\omega_{A}^{\prime}$. + +It is well known that $N_{A}$ lies on the perpendicular bisector of the segment $B C$, so the tangents to $\omega_{A}^{\prime}$ and $\gamma$ at $N_{A}$ and $A_{1}$ are parallel. It follows that the tangents to these circles at $Y_{A}$ coincide, so $\omega_{A}^{\prime}$ is in fact $\omega_{A}$, whence $X_{A}=Y_{A}$ and $M_{A}=N_{A}$. It is also well known that the midpoint $S_{A}$ of the segment $I J_{A}$ lies both on the circumcircle $A B C$ and on the perpendicular bisector of $B C$. Since $S_{A} M_{A}$ is a midline in the triangle $A_{1} I J_{A}$, it follows that $S_{A} M_{A}=r / 2$, where $r$ is the radius of $\gamma$ (the inradius of the triangle $A B C$ ). Consequently, each of the points $M_{A}, M_{B}$ and $M_{C}$ is at distance $R+r / 2$ from $O$ (here $R$ is the circumradius). Now proceed as above. +![](https://cdn.mathpix.com/cropped/2024_11_22_e254371677eb1894ac24g-4.jpg?height=1038&width=915&top_left_y=1320&top_left_x=573) + diff --git a/RMM/md/en-2013-Solutions2013-1.md b/RMM/md/en-2013-Solutions2013-1.md new file mode 100644 index 0000000000000000000000000000000000000000..6f9f58a0a4f0193c9928445f3d90b1d17ceaa648 --- /dev/null +++ b/RMM/md/en-2013-Solutions2013-1.md @@ -0,0 +1,95 @@ +# The $6^{\text {th }}$ Romanian Master of Mathematics Competition + +## Solutions for the Day 1 + +Problem 1. For a positive integer $a$, define a sequence of integers $x_{1}, x_{2}, \ldots$ by letting $x_{1}=a$ and $x_{n+1}=2 x_{n}+1$ for $n \geq 1$. Let $y_{n}=2^{x_{n}}-1$. Determine the largest possible $k$ such that, for some positive integer $a$, the numbers $y_{1}, \ldots, y_{k}$ are all prime. +(Russia) Valery Senderov +Solution. The largest such is $k=2$. Notice first that if $y_{i}$ is prime, then $x_{i}$ is prime as well. Actually, if $x_{i}=1$ then $y_{i}=1$ which is not prime, and if $x_{i}=m n$ for integer $m, n>1$ then $2^{m}-1 \mid 2^{x_{i}}-1=y_{i}$, so $y_{i}$ is composite. In particular, if $y_{1}, y_{2}, \ldots, y_{k}$ are primes for some $k \geq 1$ then $a=x_{1}$ is also prime. + +Now we claim that for every odd prime $a$ at least one of the numbers $y_{1}, y_{2}, y_{3}$ is composite (and thus $k<3$ ). Assume, to the contrary, that $y_{1}, y_{2}$, and $y_{3}$ are primes; then $x_{1}, x_{2}, x_{3}$ are primes as well. Since $x_{1} \geq 3$ is odd, we have $x_{2}>3$ and $x_{2} \equiv 3(\bmod 4)$; consequently, $x_{3} \equiv 7$ $(\bmod 8)$. This implies that 2 is a quadratic residue modulo $p=x_{3}$, so $2 \equiv s^{2}(\bmod p)$ for some integer $s$, and hence $2^{x_{2}}=2^{(p-1) / 2} \equiv s^{p-1} \equiv 1(\bmod p)$. This means that $p \mid y_{2}$, thus $2^{x_{2}}-1=x_{3}=2 x_{2}+1$. But it is easy to show that $2^{t}-1>2 t+1$ for all integer $t>3$. A contradiction. + +Finally, if $a=2$, then the numbers $y_{1}=3$ and $y_{2}=31$ are primes, while $y_{3}=2^{11}-1$ is divisible by 23 ; in this case we may choose $k=2$ but not $k=3$. + +Remark. The fact that $23 \mid 2^{11}-1$ can be shown along the lines in the solution, since 2 is a quadratic residue modulo $x_{4}=23$. + +Problem 2. Does there exist a pair $(g, h)$ of functions $g, h: \mathbb{R} \rightarrow \mathbb{R}$ such that the only function $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfying $f(g(x))=g(f(x))$ and $f(h(x))=h(f(x))$ for all $x \in \mathbb{R}$ is the identity function $f(x) \equiv x$ ? +(United Kingdom) Alexander Betts +Solution 1. Such a tester pair exists. We may biject $\mathbb{R}$ with the closed unit interval, so it suffices to find a tester pair for that instead. We give an explicit example: take some positive real numbers $\alpha, \beta$ (which we will specify further later). Take + +$$ +g(x)=\max (x-\alpha, 0) \quad \text { and } \quad h(x)=\min (x+\beta, 1) . +$$ + +Say a set $S \subseteq[0,1]$ is invariant if $f(S) \subseteq S$ for all functions $f$ commuting with both $g$ and $h$. Note that intersections and unions of invariant sets are invariant. Preimages of invariant sets under $g$ and $h$ are also invariant; indeed, if $S$ is invariant and, say, $T=g^{-1}(S)$, then $g(f(T))=$ $f(g(T)) \subseteq f(S) \subseteq S$, thus $f(T) \subseteq T$. + +We claim that (if we choose $\alpha+\beta<1$ ) the intervals $[0, n \alpha-m \beta]$ are invariant where $n$ and $m$ are nonnegative integers with $0 \leq n \alpha-m \beta \leq 1$. We prove this by induction on $m+n$. + +The set $\{0\}$ is invariant, as for any $f$ commuting with $g$ we have $g(f(0))=f(g(0))=f(0)$, so $f(0)$ is a fixed point of $g$. This gives that $f(0)=0$, thus the induction base is established. + +Suppose now we have some $m, n$ such that $\left[0, n^{\prime} \alpha-m^{\prime} \beta\right]$ is invariant whenever $m^{\prime}+n^{\prime}<$ $m+n$. At least one of the numbers $(n-1) \alpha-m \beta$ and $n \alpha-(m-1) \beta$ lies in $(0,1)$. Note however that in the first case $[0, n \alpha-m \beta]=g^{-1}([0,(n-1) \alpha-m \beta])$, so $[0, n \alpha-m \beta]$ is invariant. In the second case $[0, n \alpha-m \beta]=h^{-1}([0, n \alpha-(m-1) \beta])$, so again $[0, n \alpha-m \beta]$ is invariant. This completes the induction. + +We claim that if we choose $\alpha+\beta<1$, where $0<\alpha \notin \mathbb{Q}$ and $\beta=1 / k$ for some integer $k>1$, then all intervals $[0, \delta]$ are invariant for $0 \leq \delta<1$. This occurs, as by the previous claim, for all nonnegative integers $n$ we have $[0,(n \alpha \bmod 1)]$ is invariant. The set of $n \alpha \bmod 1$ is dense in $[0,1]$, so in particular + +$$ +[0, \delta]=\bigcap_{(n \alpha \bmod 1)>\delta}[0,(n \alpha \bmod 1)] +$$ + +is invariant. +A similar argument establishes that $[\delta, 1]$ is invariant, so by intersecting these $\{\delta\}$ is invariant for $0<\delta<1$. Yet we also have $\{0\},\{1\}$ both invariant, which proves $f$ to be the identity. + +Solution 2. Let us agree that a sequence $\mathbf{x}=\left(x_{n}\right)_{n=1,2, \ldots}$ is cofinally non-constant if for every index $m$ there exists an index $n>m$ such that $x_{m} \neq x_{n}$. + +Biject $\mathbb{R}$ with the set of cofinally non-constant sequences of 0 's and 1 's, and define $g$ and $h$ by + +$$ +g(\epsilon, \mathbf{x})=\left\{\begin{array}{ll} +\epsilon, \mathbf{x} & \text { if } \epsilon=0 \\ +\mathbf{x} & \text { else } +\end{array} \quad \text { and } \quad h(\epsilon, \mathbf{x})= \begin{cases}\epsilon, \mathbf{x} & \text { if } \epsilon=1 \\ +\mathbf{x} & \text { else }\end{cases}\right. +$$ + +where $\epsilon, \mathbf{x}$ denotes the sequence formed by appending $\mathbf{x}$ to the single-element sequence $\epsilon$. Note that $g$ fixes precisely those sequences beginning with 0 , and $h$ fixes precisely those beginning with 1. + +Now assume that $f$ commutes with both $f$ and $g$. To prove that $f(\mathbf{x})=\mathbf{x}$ for all $\mathbf{x}$ we show that $\mathbf{x}$ and $f(\mathbf{x})$ share the same first $n$ terms, by induction on $n$. + +The base case $n=1$ is simple, as we have noticed above that the set of sequences beginning with a 0 is precisely the set of $g$-fixed points, so is preserved by $f$, and similarly for the set of sequences starting with 1. + +Suppose that $f(\mathbf{x})$ and $\mathbf{x}$ agree for the first $n$ terms, whatever $\mathbf{x}$. Consider any sequence, and write it as $\mathbf{x}=\epsilon, \mathbf{y}$. Without loss of generality, we may (and will) assume that $\epsilon=0$, so $f(\mathbf{x})=0, \mathbf{y}^{\prime}$ by the base case. Yet then $f(\mathbf{y})=f(h(\mathbf{x}))=h(f(\mathbf{x}))=h\left(0, \mathbf{y}^{\prime}\right)=\mathbf{y}^{\prime}$. Consequently, $f(\mathbf{x})=0, f(\mathbf{y})$, so $f(\mathbf{x})$ and $\mathbf{x}$ agree for the first $n+1$ terms by the inductive hypothesis. + +Thus $f$ fixes all of cofinally non-constant sequences, and the conclusion follows. +Solution 3. (Ilya Bogdanov) We will show that there exists a tester pair of bijective functions $g$ and $h$. + +First of all, let us find out when a pair of functions is a tester pair. Let $g, h: \mathbb{R} \rightarrow \mathbb{R}$ be arbitrary functions. We construct a directed graph $G_{g, h}$ with $\mathbb{R}$ as the set of vertices, its edges being painted with two colors: for every vertex $x \in \mathbb{R}$, we introduce a red edge $x \rightarrow g(x)$ and a blue edge $x \rightarrow h(x)$. + +Now, assume that the function $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfies $f(g(x))=g(f(x))$ and $f(h(x))=h(f(x))$ for all $x \in \mathbb{R}$. This means exactly that if there exists an edge $x \rightarrow y$, then there also exists an edge $f(x) \rightarrow f(y)$ of the same color; that is $-f$ is an endomorphism of $G_{g, h}$. + +Thus, a pair $(g, h)$ is a tester pair if and only if the graph $G_{g, h}$ admits no nontrivial endomorphisms. Notice that each endomorphism maps a component into a component. Thus, to construct a tester pair, it suffices to construct a continuum of components with no nontrivial endomorphisms and no homomorphisms from one to another. It can be done in many ways; below we present one of them. + +Let $g(x)=x+1$; the construction of $h$ is more involved. For every $x \in[0,1)$ we define the set $S_{x}=x+\mathbb{Z}$; the sets $S_{x}$ will be exactly the components of $G_{g, h}$. Now we will construct these components. + +Let us fix any $x \in[0,1)$; let $x=0 . x_{1} x_{2} \ldots$ be the binary representation of $x$. Define $h(x-n)=x-n+1$ for every $n>3$. Next, let $h(x-3)=x, h(x)=x-2, h(x-2)=x-1$, and $h(x-1)=x+1$ (that would be a "marker" which fixes a point in our component). + +Next, for every $i=1,2, \ldots$, we define +(1) $h(x+3 i-2)=x+3 i-1, h(x+3 i-1)=x+3 i$, and $h(x+3 i)=x+3 i+1$, if $x_{i}=0$; +(2) $h(x+3 i-2)=x+3 i, h(x+3 i)=3 i-1$, and $h(x+3 i-1)=x+3 i+1$, if $x_{i}=1$. + +Clearly, $h$ is a bijection mapping each $S_{x}$ to itself. Now we claim that the graph $G_{g, h}$ satisfies the desired conditions. + +Consider any homomorphism $f_{x}: S_{x} \rightarrow S_{y}$ ( $x$ and $y$ may coincide). Since $g$ is a bijection, consideration of the red edges shows that $f_{x}(x+n)=x+n+k$ for a fixed real $k$. Next, there exists a blue edge $(x-3) \rightarrow x$, and the only blue edge of the form $(y+m-3) \rightarrow(y+m)$ is $(y-3) \rightarrow y$; thus $f_{x}(x)=y$, and $k=0$. + +Next, if $x_{i}=0$ then there exists a blue edge $(x+3 i-2) \rightarrow(x+3 i-1)$; then the edge $(y+3 i-2) \rightarrow(y+3 i-1)$ also should exist, so $y_{i}=0$. Analogously, if $x_{i}=1$ then there exists a blue edge $(x+3 i-2) \rightarrow(x+3 i)$; then the edge $(y+3 i-2) \rightarrow(y+3 i)$ also should exist, so $y_{i}=1$. We conclude that $x=y$, and $f_{x}$ is the identity mapping, as required. + +Remark. If $g$ and $h$ are injections, then the components of $G_{g, h}$ are at most countable. So the set of possible pairwise non-isomorphic such components is continual; hence there is no bijective tester pair for a hyper-continual set instead of $\mathbb{R}$. + +Problem 3. Let $A B C D$ be a quadrilateral inscribed in a circle $\omega$. The lines $A B$ and $C D$ meet at $P$, the lines $A D$ and $B C$ meet at $Q$, and the diagonals $A C$ and $B D$ meet at $R$. Let $M$ be the midpoint of the segment $P Q$, and let $K$ be the common point of the segment $M R$ and the circle $\omega$. Prove that the circumcircle of the triangle $K P Q$ and $\omega$ are tangent to one another. +(Russia) MedeubeK Kungozhin +Solution. Let $O$ be the centre of $\omega$. Notice that the points $P, Q$, and $R$ are the poles (with respect to $\omega$ ) of the lines $Q R, R P$, and $P Q$, respectively. Hence we have $O P \perp Q R, O Q \perp R P$, and $O R \perp P Q$, thus $R$ is the orthocentre of the triangle $O P Q$. Now, if $M R \perp P Q$, then the points $P$ and $Q$ are the reflections of one another in the line $M R=M O$, and the triangle $P Q K$ is symmetrical with respect to this line. In this case the statement of the problem is trivial. + +Otherwise, let $V$ be the foot of the perpendicular from $O$ to $M R$, and let $U$ be the common point of the lines $O V$ and $P Q$. Since $U$ lies on the polar line of $R$ and $O U \perp M R$, we obtain that $U$ is the pole of $M R$. Therefore, the line $U K$ is tangent to $\omega$. Hence it is enough to prove that $U K^{2}=U P \cdot U Q$, since this relation implies that $U K$ is also tangent to the circle $K P Q$. + +From the rectangular triangle $O K U$, we get $U K^{2}=U V \cdot U O$. Let $\Omega$ be the circumcircle of triangle $O P Q$, and let $R^{\prime}$ be the reflection of its orthocentre $R$ in the midpoint $M$ of the side $P Q$. It is well known that $R^{\prime}$ is the point of $\Omega$ opposite to $O$, hence $O R^{\prime}$ is the diameter of $\Omega$. Finally, since $\angle O V R^{\prime}=90^{\circ}$, the point $V$ also lies on $\Omega$, hence $U P \cdot U Q=U V \cdot U O=U K^{2}$, as required. +![](https://cdn.mathpix.com/cropped/2024_11_22_9d27bd20b70215e0f78cg-4.jpg?height=974&width=1220&top_left_y=1128&top_left_x=420) + +Remark. The statement of the problem is still true if $K$ is the other common point of the line $M R$ and $\omega$. + diff --git a/RMM/md/en-2013-Solutions2013-2.md b/RMM/md/en-2013-Solutions2013-2.md new file mode 100644 index 0000000000000000000000000000000000000000..2776bc41d15f9509b7cf14d4b238b4b7ee06ce39 --- /dev/null +++ b/RMM/md/en-2013-Solutions2013-2.md @@ -0,0 +1,142 @@ +# The $6^{\text {th }}$ Romanian Master of Mathematics Competition + +## Solutions for the Day 2 + +Problem 4. Let $P$ and $P^{\prime}$ be two convex quadrilateral regions in the plane (regions contain their boundary). Let them intersect, with $O$ a point in the intersection. Suppose that for every line $\ell$ through $O$ the segment $\ell \cap P$ is strictly longer than the segment $\ell \cap P^{\prime}$. Is it possible that the ratio of the area of $P^{\prime}$ to the area of $P$ is greater than 1.9? +(Bulgaria) Nikolai Beluhov +Solution. The answer is in the affirmative: Given a positive $\epsilon<2$, the ratio in question may indeed be greater than $2-\epsilon$. + +To show this, consider a square $A B C D$ centred at $O$, and let $A^{\prime}, B^{\prime}$, and $C^{\prime}$ be the reflections of $O$ in $A, B$, and $C$, respectively. Notice that, if $\ell$ is a line through $O$, then the segments $\ell \cap A B C D$ and $\ell \cap A^{\prime} B^{\prime} C^{\prime}$ have equal lengths, unless $\ell$ is the line $A C$. + +Next, consider the points $M$ and $N$ on the segments $B^{\prime} A^{\prime}$ and $B^{\prime} C^{\prime}$, respectively, such that $B^{\prime} M / B^{\prime} A^{\prime}=B^{\prime} N / B^{\prime} C^{\prime}=(1-\epsilon / 4)^{1 / 2}$. Finally, let $P^{\prime}$ be the image of the convex quadrangle $B^{\prime} M O N$ under the homothety of ratio $(1-\epsilon / 4)^{1 / 4}$ centred at $O$. Clearly, the quadrangles $P \equiv A B C D$ and $P^{\prime}$ satisfy the conditions in the statement, and the ratio of the area of $P^{\prime}$ to the area of $P$ is exactly $2-\epsilon / 2$. +![](https://cdn.mathpix.com/cropped/2024_11_22_6f1684822a87e87fbe9ag-1.jpg?height=544&width=716&top_left_y=1170&top_left_x=672) + +Remarks. (1) With some care, one may also construct such example with a point $O$ being interior for both $P$ and $P^{\prime}$. In our example, it is enough to replace vertex $O$ of $P^{\prime}$ by a point on the segment $O D$ close enough to $O$. The details are left to the reader. +(2) On the other hand, one may show that the ratio of areas of $P^{\prime}$ and $P$ cannot exceed 2 (even if $P$ and $P^{\prime}$ are arbitrary convex polygons rather than quadrilaterals). Further on, we denote by $[S]$ the area of $S$. + +In order to see that $\left[P^{\prime}\right]<2[P]$, let us fix some ray $r$ from $O$, and let $r_{\alpha}$ be the ray from $O$ making an (oriented) angle $\alpha$ with $r$. Denote by $X_{\alpha}$ and $Y_{\alpha}$ the points of $P$ and $P^{\prime}$, respectively, lying on $r_{\alpha}$ farthest from $O$, and denote by $f(\alpha)$ and $g(\alpha)$ the lengths of the segments $O X_{\alpha}$ and $O Y_{\alpha}$, respectively. Then + +$$ +[P]=\frac{1}{2} \int_{0}^{2 \pi} f^{2}(\alpha) d \alpha=\frac{1}{2} \int_{0}^{\pi}\left(f^{2}(\alpha)+f^{2}(\pi+\alpha)\right) d \alpha +$$ + +and similarly + +$$ +\left[P^{\prime}\right]=\frac{1}{2} \int_{0}^{\pi}\left(g^{2}(\alpha)+g^{2}(\pi+\alpha)\right) d \alpha +$$ + +But $X_{\alpha} X_{\pi+\alpha}>Y_{\alpha} Y_{\pi+\alpha}$ yields $2 \cdot \frac{1}{2}\left(f^{2}(\alpha)+f^{2}(\pi+\alpha)\right)=O X_{\alpha}^{2}+O X_{\pi+\alpha}^{2} \geq \frac{1}{2} X_{\alpha} X_{\pi+\alpha}^{2}>$ $\frac{1}{2} Y_{\alpha} Y_{\pi+\alpha}^{2} \geq \frac{1}{2}\left(O Y_{\alpha}^{2}+O Y_{\pi+\alpha}^{2}\right)=\frac{1}{2}\left(g^{2}(\alpha)+g^{2}(\pi+\alpha)\right)$. Integration then gives us $2[P]>\left[P^{\prime}\right]$, as needed. + +This can also be proved via elementary methods. Actually, we will establish the following more general fact. + +Fact. Let $P=A_{1} A_{2} A_{3} A_{4}$ and $P^{\prime}=B_{1} B_{2} B_{3} B_{4}$ be two convex quadrangles in the plane, and let $O$ be one of their common points different from the vertices of $P^{\prime}$. Denote by $\ell_{i}$ the line $O B_{i}$, and assume that for every $i=1,2,3,4$ the length of segment $\ell_{i} \cap P$ is greater than the length of segment $\ell_{i} \cap P^{\prime}$. Then $\left[P^{\prime}\right]<2[P]$. +Proof. One of (possibly degenerate) quadrilaterals $O B_{1} B_{2} B_{3}$ and $O B_{1} B_{4} B_{3}$ is convex; the same holds for $O B_{2} B_{3} B_{4}$ and $O B_{2} B_{1} B_{4}$. Without loss of generality, we may (and will) assume that the quadrilaterals $O B_{1} B_{2} B_{3}$ and $O B_{2} B_{3} B_{4}$ are convex. + +Denote by $C_{i}$ such a point that $\ell_{i} \cap P^{\prime}$ is the segment $B_{i} C_{i}$; let $a_{i}$ be the length of $\ell_{i} \cap P$, and let $\alpha_{i}$ be the angle between $\ell_{i}$ and $\ell_{i+1}$ (hereafter, we use the cyclic notation, thus $\ell_{5}=\ell_{1}$ and so on). Thus $C_{2}$ and $C_{3}$ belong to the segment $B_{1} B_{4}, C_{1}$ lies on $B_{3} B_{4}$, and $C_{4}$ lies on $B_{1} B_{2}$. Assume that there exists an index $i$ such that the area of $B_{i} B_{i+1} C_{i} C_{i+1}$ is at least $\left[P^{\prime}\right] / 2$; then we have + +$$ +\frac{\left[P^{\prime}\right]}{2} \leq\left[B_{i} B_{i+1} C_{i} C_{i+1}\right]=\frac{B_{i} C_{i} \cdot B_{i+1} C_{i+1} \cdot \sin \alpha_{i}}{2}<\frac{a_{i} a_{i+1} \sin \alpha_{i}}{2} \leq[P] +$$ + +as desired. Assume, to the contrary, that such index does not exist. Two cases are possible. +![](https://cdn.mathpix.com/cropped/2024_11_22_6f1684822a87e87fbe9ag-2.jpg?height=468&width=1271&top_left_y=1189&top_left_x=397) + +Case 1. Assume that the rays $B_{1} B_{2}$ and $B_{4} B_{3}$ do not intersect (see the left figure above). This means, in particular, that $d\left(B_{1}, B_{3} B_{4}\right) \leq d\left(B_{2}, B_{3} B_{4}\right)$. + +Since the ray $B_{3} O$ lies in the angle $B_{1} B_{3} B_{4}$, we obtain $d\left(B_{1}, B_{3} C_{3}\right) \leq d\left(C_{4}, B_{3} C_{3}\right)$; hence $\left[B_{3} B_{4} B_{1}\right] \leq\left[B_{3} B_{4} C_{3} C_{4}\right]<\left[P^{\prime}\right] / 2$. Similarly, $\left[B_{1} B_{2} B_{4}\right] \leq\left[B_{1} B_{2} C_{1} C_{2}\right]<\left[P^{\prime}\right] / 2$. Thus, + +$$ +\begin{aligned} +{\left[B_{2} B_{3} C_{2} C_{3}\right] } & =\left[P^{\prime}\right]-\left[B_{1} B_{2} C_{3}\right]-\left[B_{3} B_{4} C_{2}\right]=\left[P^{\prime}\right]-\frac{B_{1} C_{3}}{B_{1} B_{4}} \cdot\left[B_{1} B_{2} B_{4}\right]-\frac{B_{4} C_{2}}{B_{1} B_{4}} \cdot\left[B_{3} B_{4} B_{1}\right] \\ +& >\left[P^{\prime}\right]\left(1-\frac{B_{1} C_{3}+B_{4} C_{2}}{2 B_{1} B_{4}}\right) \geq \frac{\left[P^{\prime}\right]}{2} . +\end{aligned} +$$ + +A contradiction. +Case 2. Assume now that the rays $B_{1} B_{2}$ and $B_{4} B_{3}$ intersect at some point (see the right figure above). Denote by $L$ the common point of $B_{2} C_{1}$ and $B_{3} C_{4}$. We have $\left[B_{2} C_{4} C_{1}\right] \geq\left[B_{2} C_{4} B_{3}\right]$, hence $\left[C_{1} C_{4} L\right] \geq\left[B_{2} B_{3} L\right]$. Thus we have + +$$ +\begin{aligned} +{\left[P^{\prime}\right]>\left[B_{1} B_{2} C_{1} C_{2}\right]+\left[B_{3} B_{4} C_{3} C_{4}\right] } & =\left[P^{\prime}\right]+\left[L C_{1} C_{2} C_{3} C_{4}\right]-\left[B_{2} B_{3} L\right] \\ +& \geq\left[P^{\prime}\right]+\left[C_{1} C_{4} L\right]-\left[B_{2} B_{3} L\right] \geq\left[P^{\prime}\right] . +\end{aligned} +$$ + +A final contradiction. + +Problem 5. Given an integer $k \geq 2$, set $a_{1}=1$ and, for every integer $n \geq 2$, let $a_{n}$ be the smallest $x>a_{n-1}$ such that: + +$$ +x=1+\sum_{i=1}^{n-1}\left\lfloor\sqrt[k]{\frac{x}{a_{i}}}\right\rfloor . +$$ + +Prove that every prime occurs in the sequence $a_{1}, a_{2}, \ldots$. +(Bulgaria) Alexander Ivanov +Solution 1. We prove that the $a_{n}$ are precisely the $k$ th-power-free positive integers, that is, those divisible by the $k$ th power of no prime. The conclusion then follows. + +Let $B$ denote the set of all $k$ th-power-free positive integers. We first show that, given a positive integer $c$, + +$$ +\sum_{b \in B, b \leq c}\left\lfloor\sqrt[k]{\frac{c}{b}}\right\rfloor=c +$$ + +To this end, notice that every positive integer has a unique representation as a product of an element in $B$ and a $k$ th power. Consequently, the set of all positive integers less than or equal to $c$ splits into + +$$ +C_{b}=\left\{x: x \in \mathbb{Z}_{>0}, x \leq c, \text { and } x / b \text { is a } k \text { th power }\right\}, \quad b \in B, b \leq c . +$$ + +Clearly, $\left|C_{b}\right|=\lfloor\sqrt[k]{c / b}\rfloor$, whence the desired equality. +Finally, enumerate $B$ according to the natural order: $1=b_{1}b_{n-1}=a_{n-1}$ and + +$$ +b_{n}=\sum_{i=1}^{n}\left\lfloor\sqrt[k]{\frac{b_{n}}{b_{i}}}\right\rfloor=\sum_{i=1}^{n-1}\left\lfloor\sqrt[k]{\frac{b_{n}}{b_{i}}}\right\rfloor+1=\sum_{i=1}^{n-1}\left\lfloor\sqrt[k]{\frac{b_{n}}{a_{i}}}\right\rfloor+1 +$$ + +the definition of $a_{n}$ forces $a_{n} \leq b_{n}$. Were $a_{n}0$ then $f_{n}(x) \leq f_{n}(x-1)$; this means that such an $x$ cannot equal $a_{n}$. Thus $a_{j} / a_{i}$ is never the $k$ th power of an integer if $j>i$. + +Now we are prepared to prove by induction on $n$ that $a_{1}, a_{2}, \ldots, a_{n}$ are exactly all $k$ th-power-free integers in $\left[1, a_{n}\right]$. The base case $n=1$ is trivial. + +Assume that all the $k$ th-power-free integers on $\left[1, a_{n}\right]$ are exactly $a_{1}, \ldots, a_{n}$. Let $b$ be the least integer larger than $a_{n}$ such that $g_{n}(b)=0$. We claim that: (1) $b=a_{n+1}$; and (2) $b$ is the least $k$ th-power-free number greater than $a_{n}$. + +To prove (1), notice first that all the numbers of the form $a_{j} / a_{i}$ with $1 \leq i1$ be the greatest integer such that $y^{k} \mid b$; then $b / y^{k}$ is $k$ th-power-free and hence $b / y^{k}=a_{i}$ for some $i \leq n$. So $b / a_{i}$ is the $k$ th power of an integer, which contradicts the definition of $b$. + +Thus $a_{1}, a_{2}, \ldots$ are exactly all $k$ th-power-free positive integers; consequently all primes are contained in this sequence. + +Problem 6. $2 n$ distinct tokens are placed at the vertices of a regular $2 n$-gon, with one token placed at each vertex. A move consists of choosing an edge of the $2 n$-gon and interchanging the two tokens at the endpoints of that edge. Suppose that after a finite number of moves, every pair of tokens have been interchanged exactly once. Prove that some edge has never been chosen. +(Russia) Alexander Gribalko +Solution. Step 1. Enumerate all the tokens in the initial arrangement in clockwise circular order; also enumerate the vertices of the $2 n$-gon accordingly. Consider any three tokens $i100$, there are only finitely many integers $k \geq 0$, such that, starting from the list + +$$ +k+1, k+2, \ldots, k+n +$$ + +it is possible to obtain, after $n-1$ operations, the value $n$ !. +(United Kingdom) Alexander Betts +Solution. We prove the problem statement even for all positive integer $n$. +There are only finitely many ways of constructing a number from $n$ pairwise distinct numbers $x_{1}, \ldots, x_{n}$ only using the four elementary arithmetic operations, and each $x_{k}$ exactly once. Each such formula for $k>1$ is obtained by an elementary operation from two such formulas on two disjoint sets of the $x_{i}$. + +A straightforward induction on $n$ shows that the outcome of each such construction is a number of the form + +$$ +\frac{\sum_{\alpha_{1}, \ldots, \alpha_{n} \in\{0,1\}} a_{\alpha_{1}, \ldots, \alpha_{n}} x_{1}^{\alpha_{1}} \cdots x_{n}^{\alpha_{n}}}{\sum_{\alpha_{1}, \alpha_{n} \in\{0,1\}} b_{\alpha_{1}, \ldots, \alpha_{n}} x_{1}^{\alpha_{1}} \cdots x_{n}^{\alpha_{n}}}, +$$ + +where the $a_{\alpha_{1}, \ldots, \alpha_{n}}$ and $b_{\alpha_{1}, \ldots, \alpha_{n}}$ are all in the set $\{0, \pm 1\}$, not all zero of course, $a_{0, \ldots, 0}=b_{1, \ldots, 1}=0$, and also $a_{\alpha_{1}, \ldots, \alpha_{n}} \cdot b_{\alpha_{1}, \ldots, \alpha_{n}}=0$ for every set of indices. + +Since $\left|a_{\alpha_{1}, \ldots, \alpha_{n}}\right| \leq 1$, and $a_{0,0, \ldots, 0}=0$, the absolute value of the numerator does not exceed $\left(1+\left|x_{1}\right|\right) \cdots\left(1+\left|x_{n}\right|\right)-1$; in particular, if $c$ is an integer in the range $-n, \ldots,-1$, and $x_{k}=c+k$, $k=1, \ldots, n$, then the absolute value of the numerator is at most $(-c)!(n+c+1)!-1 \leq n!-18$, this provides a solution along the same lines. + diff --git a/RMM/md/en-2015-Solutions_RMM2015-2.md b/RMM/md/en-2015-Solutions_RMM2015-2.md new file mode 100644 index 0000000000000000000000000000000000000000..ec7fdfddd14bd9c2dc5a2d4948006e22f7818fef --- /dev/null +++ b/RMM/md/en-2015-Solutions_RMM2015-2.md @@ -0,0 +1,104 @@ +# The $7^{\text {th }}$ Romanian Master of Mathematics Competition + +## Solutions for the Day 2 + +Problem 4. Let $A B C$ be a triangle, let $D$ be the touchpoint of the side $B C$ and the incircle of the triangle $A B C$, and let $J_{b}$ and $J_{c}$ be the incentres of the triangles $A B D$ and $A C D$, respectively. Prove that the circumcentre of the triangle $A J_{b} J_{c}$ lies on the bisectrix of the angle $B A C$. +(Russia) Fedor Ivlev +Solution. Let the incircle of the triangle $A B C$ meet $C A$ and $A B$ at points $E$ and $F$, respectively. Let the incircles of the triangles $A B D$ and $A C D$ meet $A D$ at points $X$ and $Y$, respectively. Then $2 D X=D A+D B-A B=D A+D B-B F-A F=D A-A F$; similarly, $2 D Y=D A-A E=2 D X$. Hence the points $X$ and $Y$ coincide, so $J_{b} J_{c} \perp A D$. + +Now let $O$ be the circumcentre of the triangle $A J_{b} J_{c}$. Then $\angle J_{b} A O=\pi / 2-\angle A O J_{b} / 2=$ $\pi / 2-\angle A J_{c} J_{b}=\angle X A J_{c}=\frac{1}{2} \angle D A C$. Therefore, $\angle B A O=\angle B A J_{b}+\angle J_{b} A O=\frac{1}{2} \angle B A D+$ $\frac{1}{2} \angle D A C=\frac{1}{2} \angle B A C$, and the conclusion follows. +![](https://cdn.mathpix.com/cropped/2024_11_22_2a6f56d972086c73d081g-1.jpg?height=673&width=945&top_left_y=994&top_left_x=563) + +Fig. 1 + +Problem 5. Let $p \geq 5$ be a prime number. For a positive integer $k$ we denote by $R(k)$ the remainder of $k$ when divided by $p$. Determine all positive integers $aa +$$ + +for every $m=1,2, \ldots, p-1$. +(Bulgaria) Alexander Ivanov +Solution. The required integers are $p-1$ along with all the numbers of the form $\lfloor p / q\rfloor, q=$ $2, \ldots, p-1$. In other words, these are $p-1$, along with the numbers $1,2, \ldots,\lfloor\sqrt{p}\rfloor$, and also the (distinct) numbers $\lfloor p / q\rfloor, q=2, \ldots,\left\lfloor\sqrt{p}-\frac{1}{2}\right\rfloor$. + +We begin by showing that these numbers satisfy the conditions in the statement. It is readily checked that $p-1$ satisfies the required inequalities, since $m+R(m(p-1))=m+(p-m)=$ $p>p-1$ for all $m=1, \ldots, p-1$. + +Now, consider any number $a$ of the form $a=\lfloor p / q\rfloor$, where $q$ is an integer greater than 1 but less than $p$; then $p=a q+r$ with $0r$ and $y \geq 1$. Thus $a$ satisfies the required condition. +Finally, we show that if an integer $a \in(0, p-1)$ satisfies the required condition then $a$ is indeed of the form $a=\lfloor p / q\rfloor$ for some integer $q \in(0, p)$. This is clear for $a=1$, so we may (and will) assume that $a \geq 2$. + +Write $p=a q+r$ with $q, r \in \mathbb{Z}$ and $0\frac{1}{2 n+2}$, let $U=(0,1) \times(0,1)$, choose a small enough positive $\epsilon$, and consider the configuration $C$ consisting of the $n$ four-element clusters of points $\left(\frac{i}{n+1} \pm \epsilon\right) \times\left(\frac{1}{2} \pm \epsilon\right), i=1, \ldots, n$, the four possible sign combinations being considered for each $i$. Clearly, every open rectangle in $U$, whose sides are parallel to those of $U$, which contains exactly one point of $C$, has area at $\operatorname{most}\left(\frac{1}{n+1}+\epsilon\right) \cdot\left(\frac{1}{2}+\epsilon\right)<\mu$ if $\epsilon$ is small enough. + +We now show that, given a finite configuration $C$ of points in an open unit square $U$, there always exists an open rectangle in $U$, whose sides are parallel to those of $U$, which contains exactly one point of $C$, and has an area greater than or equal to $\mu_{0}=\frac{2}{|C|+4}$. + +To prove this, usage will be made of the following two lemmas whose proofs are left at the end of the solution. +Lemma 1. Let $k$ be a positive integer, and let $\lambda<\frac{1}{\lfloor k / 2\rfloor+1}$ be a positive real number. If $t_{1}, \ldots, t_{k}$ are pairwise distinct points in the open unit interval $(0,1)$, then some $t_{i}$ is isolated from the other $t_{j}$ by an open subinterval of $(0,1)$ whose length is greater than or equal to $\lambda$. +Lemma 2. Given an integer $k \geq 2$ and positive integers $m_{1}, \ldots, m_{k}$, + +$$ +\left\lfloor\frac{m_{1}}{2}\right\rfloor+\sum_{i=1}^{k}\left\lfloor\frac{m_{i}}{2}\right\rfloor+\left\lfloor\frac{m_{k}}{2}\right\rfloor \leq \sum_{i=1}^{k} m_{i}-k+2 +$$ + +Back to the problem, let $U=(0,1) \times(0,1)$, project $C$ orthogonally on the $x$-axis to obtain the points $x_{1}<\cdots\left(\left\lfloor m_{i} / 2\right\rfloor+1\right) \mu_{0}$ for some index $i$, and apply Lemma 1 to isolate one of the points in $C \cap \ell_{i}$ from the other ones by an open subinterval $x_{i} \times J$ of $x_{i} \times(0,1)$ whose length is greater than or equal to $\mu_{0} /\left(x_{i+1}-x_{i-1}\right)$. Consequently, $\left(x_{i-1}, x_{i+1}\right) \times J$ is an open rectangle in $U$, whose sides are parallel to those of $U$, which contains exactly one point of $C$ and has an area greater than or equal to $\mu_{0}$. + +Next, we rule out the case $x_{i+1}-x_{i-1} \leq\left(\left\lfloor m_{i} / 2\right\rfloor+1\right) \mu_{0}$ for all indices $i$. If this were the case, notice that necessarily $k>1$; also, $x_{1}-x_{0}1$, then $(n-1)^{2}$ 1 - 1/100. + +Solution. If $x \geq 1-1 /(100 \cdot 2016)$, then + +$$ +x^{2016} \geq\left(1-\frac{1}{100 \cdot 2016}\right)^{2016}>1-2016 \cdot \frac{1}{100 \cdot 2016}=1-\frac{1}{100} +$$ + +by Bernoulli's inequality, whence the conclusion. +If $x<1-1 /(100 \cdot 2016)$, then $y \geq(1-x)^{1 / 2016}>(100 \cdot 2016)^{-1 / 2016}$, and it is sufficient to show that the latter is greater than $1-1 / 100=99 / 100$; alternatively, but equivalently, that + +$$ +\left(1+\frac{1}{99}\right)^{2016}>100 \cdot 2016 +$$ + +To establish the latter, refer again to Bernoulli's inequality to write + +$$ +\left(1+\frac{1}{99}\right)^{2016}>\left(1+\frac{1}{99}\right)^{99 \cdot 20}>\left(1+99 \cdot \frac{1}{99}\right)^{20}=2^{20}>100 \cdot 2016 +$$ + +Remarks. (1) Although the constant $1 / 100$ is not sharp, it cannot be replaced by the smaller constant $1 / 400$, as the values $x=1-1 / 210$ and $y=1-1 / 380$ show. +(2) It is natural to ask whether $x^{n}+y \geq 1-1 / k$, whenever $x$ and $y$ are positive real numbers such that $x+y^{n} \geq 1$, and $k$ and $n$ are large. Using the inequality $\left(1+\frac{1}{k-1}\right)^{k}>\mathrm{e}$, it can be shown along the lines in the solution that this is indeed the case if $k \leq \frac{n}{2 \log n}(1+o(1))$. It seems that this estimate differs from the best one by a constant factor. + +Problem 5. A convex hexagon $A_{1} B_{1} A_{2} B_{2} A_{3} B_{3}$ is inscribed in a circle $\Omega$ of radius $R$. The diagonals $A_{1} B_{2}, A_{2} B_{3}$, and $A_{3} B_{1}$ concur at $X$. For $i=1,2,3$, let $\omega_{i}$ be the circle tangent to the segments $X A_{i}$ and $X B_{i}$, and to the arc $A_{i} B_{i}$ of $\Omega$ not containing other vertices of the hexagon; let $r_{i}$ be the radius of $\omega_{i}$. +(a) Prove that $R \geq r_{1}+r_{2}+r_{3}$. +(b) If $R=r_{1}+r_{2}+r_{3}$, prove that the six points where the circles $\omega_{i}$ touch the diagonals $A_{1} B_{2}, A_{2} B_{3}, A_{3} B_{1}$ are concyclic. + +Solution. (a) Let $\ell_{1}$ be the tangent to $\Omega$ parallel to $A_{2} B_{3}$, lying on the same side of $A_{2} B_{3}$ as $\omega_{1}$. The tangents $\ell_{2}$ and $\ell_{3}$ are defined similarly. The lines $\ell_{1}$ and $\ell_{2}, \ell_{2}$ and $\ell_{3}, \ell_{3}$ and $\ell_{1}$ meet at $C_{3}, C_{1}, C_{2}$, respectively (see Fig. 1). Finally, the line $C_{2} C_{3}$ meets the rays $X A_{1}$ and $X B_{1}$ emanating from $X$ at $S_{1}$ and $T_{1}$, respectively; the points $S_{2}, T_{2}$, and $S_{3}, T_{3}$ are defined similarly. + +Each of the triangles $\Delta_{1}=\triangle X S_{1} T_{1}, \Delta_{2}=\triangle T_{2} X S_{2}$, and $\Delta_{3}=\triangle S_{3} T_{3} X$ is similar to $\Delta=\triangle C_{1} C_{2} C_{3}$, since their corresponding sides are parallel. Let $k_{i}$ be the ratio of similitude of $\Delta_{i}$ and $\Delta$ (e.g., $k_{1}=X S_{1} / C_{1} C_{2}$ and the like). Since $S_{1} X=C_{2} T_{3}$ and $X T_{2}=S_{3} C_{1}$, it follows that $k_{1}+k_{2}+k_{3}=1$, so, if $\rho_{i}$ is the inradius of $\Delta_{i}$, then $\rho_{1}+\rho_{2}+\rho_{3}=R$. + +Finally, notice that $\omega_{i}$ is interior to $\Delta_{i}$, so $r_{i} \leq \rho_{i}$, and the conclusion follows by the preceding. +![](https://cdn.mathpix.com/cropped/2024_11_22_43c8c12599eee71f4e24g-2.jpg?height=712&width=1054&top_left_y=181&top_left_x=221) + +Fig. 1 +![](https://cdn.mathpix.com/cropped/2024_11_22_43c8c12599eee71f4e24g-2.jpg?height=649&width=492&top_left_y=241&top_left_x=1290) + +Fig. 2 +(b) By part (a), the equality $R=r_{1}+r_{2}+r_{3}$ holds if and only if $r_{i}=\rho_{i}$ for all $i$, which implies in turn that $\omega_{i}$ is the incircle of $\Delta_{i}$. Let $K_{i}, L_{i}, M_{i}$ be the points where $\omega_{i}$ touches the sides $X S_{i}, X T_{i}, S_{i} T_{i}$, respectively. We claim that the six points $K_{i}$ and $L_{i}(i=1,2,3)$ are equidistant from $X$. + +Clearly, $X K_{i}=X L_{i}$, and we are to prove that $X K_{2}=X L_{1}$ and $X K_{3}=X L_{2}$. By similarity, $\angle T_{1} M_{1} L_{1}=\angle C_{3} M_{1} M_{2}$ and $\angle S_{2} M_{2} K_{2}=\angle C_{3} M_{2} M_{1}$, so the points $M_{1}, M_{2}, L_{1}, K_{2}$ are collinear. Consequently, $\angle X K_{2} L_{1}=\angle C_{3} M_{1} M_{2}=\angle C_{3} M_{2} M_{1}=\angle X L_{1} K_{2}$, so $X K_{2}=X L_{1}$. Similarly, $X K_{3}=X L_{2}$. + +Remark. Under the assumption in part (b), the point $M_{i}$ is the centre of a homothety mapping $\omega_{i}$ to $\Omega$. Since this homothety maps $X$ to $C_{i}$, the points $M_{i}, C_{i}, X$ are collinear, so $X$ is the Gergonne point of the triangle $C_{1} C_{2} C_{3}$. This condition is in fact equivalent to $R=r_{1}+r_{2}+r_{3}$. + +Problem 6. A set of $n$ points in Euclidean 3-dimensional space, no four of which are coplanar, is partitioned into two subsets $\mathcal{A}$ and $\mathcal{B}$. An $\mathcal{A B}$-tree is a configuration of $n-1$ segments, each of which has an endpoint in $\mathcal{A}$ and the other in $\mathcal{B}$, and such that no segments form a closed polyline. An $\mathcal{A B}$-tree is transformed into another as follows: choose three distinct segments $A_{1} B_{1}, B_{1} A_{2}$ and $A_{2} B_{2}$ in the $\mathcal{A B}$-tree such that $A_{1}$ is in $\mathcal{A}$ and $A_{1} B_{1}+A_{2} B_{2}>A_{1} B_{2}+A_{2} B_{1}$, and remove the segment $A_{1} B_{1}$ to replace it by the segment $A_{1} B_{2}$. Given any $\mathcal{A B}$-tree, prove that every sequence of successive transformations comes to an end (no further transformation is possible) after finitely many steps. + +Solution. The configurations of segments under consideration are all bipartite geometric trees on the points $n$ whose vertex-parts are $\mathcal{A}$ and $\mathcal{B}$, and transforming one into another preserves the degree of any vertex in $\mathcal{A}$, but not necessarily that of a vertex in $\mathcal{B}$. + +The idea is to devise a strict semi-invariant of the process, i.e., assign each $\mathcal{A B}$-tree a real number strictly decreasing under a transformation. Since the number of trees on the $n$ points is finite, the conclusion follows. + +To describe the assignment, consider an $\mathcal{A B}$-tree $\mathcal{T}=(\mathcal{A} \sqcup \mathcal{B}, \mathcal{E})$. Removal of an edge $e$ of $\mathcal{T}$ splits the graph into exactly two components. Let $p_{\mathcal{T}}(e)$ be the number of vertices in $\mathcal{A}$ lying in the component of $\mathcal{T}-e$ containing the $\mathcal{A}$-endpoint of $e$; since $\mathcal{T}$ is a tree, $p_{\mathcal{T}}(e)$ counts the number of paths in $\mathcal{T}-e$ from the $\mathcal{A}$-endpoint of $e$ to vertices in $\mathcal{A}$ (including the one-vertex path). Define $f(\mathcal{T})=\sum_{e \in \mathcal{E}} p_{\mathcal{T}}(e)|e|$, where $|e|$ is the Euclidean length of $e$. + +We claim that $f$ strictly decreases under a transformation. To prove this, let $\mathcal{T}^{\prime}$ be obtained from $\mathcal{T}$ by a transformation involving the polyline $A_{1} B_{1} A_{2} B_{2}$; that is, $A_{1}$ and $A_{2}$ are in $\mathcal{A}, B_{1}$ +and $B_{2}$ are in $\mathcal{B}, A_{1} B_{1}+A_{2} B_{2}>A_{1} B_{2}+A_{2} B_{1}$, and $\mathcal{T}^{\prime}=\mathcal{T}-A_{1} B_{1}+A_{1} B_{2}$. It is readily checked that $p_{\mathcal{T}^{\prime}}(e)=p_{\mathcal{T}}(e)$ for every edge $e$ of $\mathcal{T}$ different from $A_{1} B_{1}, A_{2} B_{1}$ and $A_{2} B_{2}, p_{\mathcal{T}^{\prime}}\left(A_{1} B_{2}\right)=$ $p_{\mathcal{T}}\left(A_{1} B_{1}\right), p_{\mathcal{T}^{\prime}}\left(A_{2} B_{1}\right)=p_{\mathcal{T}}\left(A_{2} B_{1}\right)+p_{\mathcal{T}}\left(A_{1} B_{1}\right)$, and $p_{\mathcal{T}^{\prime}}\left(A_{2} B b_{2}\right)=p_{\mathcal{T}}\left(A_{2} B_{2}\right)-p_{\mathcal{T}}\left(A_{1} B_{1}\right)$. Consequently, + +$$ +\begin{aligned} +f\left(\mathcal{T}^{\prime}\right)-f(\mathcal{T})= & p_{\mathcal{T}^{\prime}}\left(A_{1} B_{2}\right) \cdot A_{1} B_{2}+\left(p_{\mathcal{T}^{\prime}}\left(A_{2} B_{1}\right)-p_{\mathcal{T}}\left(A_{2} B_{1}\right)\right) \cdot A_{2} B_{1}+ \\ +& \left(p_{\mathcal{T}^{\prime}}\left(A_{2} B_{2}\right)-p_{\mathcal{T}}\left(A_{2} B_{2}\right)\right) \cdot A_{2} B_{2}-p_{\mathcal{T}}\left(A_{1} B_{1}\right) \cdot A_{1} B_{1} \\ += & p_{\mathcal{T}}\left(A_{1} B_{1}\right)\left(A_{1} B_{2}+A_{2} B_{1}-A_{2} B_{2}-A_{1} B_{1}\right)<0 +\end{aligned} +$$ + +Remarks. (1) The solution above does not involve the geometric structure of the configurations, so the conclusion still holds if the Euclidean length (distance) is replaced by any real-valued function on $\mathcal{A} \times \mathcal{B}$. +(2) There are infinitely many strict semi-invariants that can be used to establish the conclusion, as we are presently going to show. The idea is to devise a non-strict real-valued semiinvariant $f_{A}$ for each $A$ in $\mathcal{A}$ (i.e., $f_{A}$ does not increase under a transformation) such that $\sum_{A \in \mathcal{A}} f_{A}=f$. It then follows that any linear combination of the $f_{A}$ with positive coefficients is a strict semi-invariant. + +To describe $f_{A}$, where $A$ is a fixed vertex in $\mathcal{A}$, let $\mathcal{T}$ be an $\mathcal{A B}$-tree. Since $\mathcal{T}$ is a tree, by orienting all paths in $\mathcal{T}$ with an endpoint at $A$ away from $A$, every edge of $\mathcal{T}$ comes out with a unique orientation so that the in-degree of every vertex of $\mathcal{T}$ other than $A$ is 1 . Define $f_{A}(\mathcal{T})$ to be the sum of the Euclidean lengths of all out-going edges from $\mathcal{A}$. It can be shown that $f_{A}$ does not increase under a transformation, and it strictly decreases if the paths from $A$ to each of $A_{1}$, $A_{2}, B_{1}, B_{2}$ all pass through $A_{1}$ - i.e., of these four vertices, $A_{1}$ is combinatorially nearest to $A$. In particular, this is the case if $A_{1}=A$, i.e., the edge-switch in the transformation occurs at $A$. It is not hard to prove that $\sum_{A \in \mathcal{A}} f_{A}(\mathcal{T})=f(\mathcal{T})$. + +The conclusion of the problem can also be established by resorting to a single carefully chosen $f_{A}$. Suppose, if possible, that the process is infinite, so some tree $\mathcal{T}$ occurs (at least) twice. Let $A$ be the vertex in $\mathcal{A}$ at which the edge-switch occurs in the transformation of the first occurrence of $\mathcal{T}$. By the preceding paragraph, consideration of $f_{A}$ shows that $\mathcal{T}$ can never occur again. +(3) Recall that the degree of any vertex in $\mathcal{A}$ is invariant under a transformation, so the linear combination $\sum_{A \in \mathcal{A}}(\operatorname{deg} A-1) f_{A}$ is a strict semi-invariant for $\mathcal{A B}$-trees $\mathcal{T}$ whose vertices in $\mathcal{A}$ all have degrees exceeding 1. Up to a factor, this semi-invariant can alternatively, but equivalently be described as follows. Fix a vertex $*$ and assign each vertex $X$ a number $g(X)$ so that $g(*)=0$, and $g(A)-g(B)=A B$ for every $A$ in $\mathcal{A}$ and every $B$ in $\mathcal{B}$ joined by an edge. Next, let $\beta(\mathcal{T})=\frac{1}{|\mathcal{B}|} \sum_{B \in \mathcal{B}} g(B)$, let $\alpha(\mathcal{T})=\frac{1}{|\mathcal{E}|-|\mathcal{A}|} \sum_{A \in \mathcal{A}}(\operatorname{deg} A-1) g(A)$, where $\mathcal{E}$ is the edge-set of $\mathcal{T}$, and set $\mu(\mathcal{T})=\beta(\mathcal{T})-\alpha(\mathcal{T})$. It can be shown that $\mu$ strictly decreases under a transformation; in fact, $\mu$ and $\sum_{A \in \mathcal{A}}(\operatorname{deg} A-1) f_{A}$ are proportional to one another. + diff --git a/RMM/md/en-2017-Solutions_RMM2017-1.md b/RMM/md/en-2017-Solutions_RMM2017-1.md new file mode 100644 index 0000000000000000000000000000000000000000..75bb5e4e3df4708671c92e6eb6452d54891dde4d --- /dev/null +++ b/RMM/md/en-2017-Solutions_RMM2017-1.md @@ -0,0 +1,149 @@ +# The $9^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 1 - Solutions + +Problem 1. (a) Prove that every positive integer $n$ can be written uniquely in the form + +$$ +n=\sum_{j=1}^{2 k+1}(-1)^{j-1} 2^{m_{j}} +$$ + +where $k \geq 0$ and $0 \leq m_{1}0$, and even if $n \leq 0$. The integer $w(n)=\lfloor\ell / 2\rfloor$ is called the weight of $n$. + +Existence once proved, uniqueness follows from the fact that there are as many such representations as integers in the range $-2^{M}+1$ through $2^{M}$, namely, $2^{M+1}$. + +To prove existence, notice that the base case $M=0$ is clear, so let $M \geq 1$ and let $n$ be an integer in the range $-2^{M}+1$ through $2^{M}$. + +If $-2^{M}+1 \leq n \leq-2^{M-1}$, then $1 \leq n+2^{M} \leq 2^{M-1}$, so $n+2^{M}=\sum_{j=1}^{2 k+1}(-1)^{j-1} 2^{m_{j}}$ for some integers $k \geq 0$ and $0 \leq m_{1}<\cdots3$, then $f_{n}(x) \equiv 0(\bmod n+1)$ for all integers $x$, since $f_{n}(0)=-n!=-1 \cdot 2 \cdot \ldots$. $\frac{n+1}{2} \cdots \cdot n \equiv 0(\bmod n+1)$. + +Finally, let $P=f_{n}+n X+1$ if $n$ is odd, and let $P=f_{n-1}+n X+1$ if $n$ is even. In either case, $P$ is strictly increasing, hence injective, on the integers, and $P(x) \equiv 1(\bmod n)$ for all integers $x$. + +Remark. The polynomial $P=f_{n}+n X+1$ works equally well for even $n>2$. To prove injectivity, notice that $P$ is strictly monotone, hence injective, on non-positive (respectively, positive) integers. Suppose, if possible, that $P(a)=P(b)$ for some integers $a \leq 0$ and $b>0$. Notice that $P(a) \geq P(0)=n!+1>n^{2}+1=P(n)$, since $n \geq 4$, to infer that $b \geq n+1$. It is therefore sufficient to show that $P(x)>P(n+1-x)>P(x-1)$ for all integers $x \geq n+1$. The former inequality is trivial, since $f_{n}(x)=f_{n}(n+1-x)$ for even $n$. For the latter, write + +$$ +\begin{aligned} +P(n+1-x)-P(x-1) & =(x-1) \cdots(x-n)-(x-2) \cdots(x-n-1)+n(n+2-2 x) \\ +& =n((x-2) \cdots(x-n)+(n-2)-2(x-2)) \geq n(n-2)>0, +\end{aligned} +$$ + +since $(x-3) \cdots(x-n) \geq 2$. + +Problem 3. Let $n$ be an integer greater than 1 and let $X$ be an $n$-element set. A non-empty collection of subsets $A_{1}, \ldots, A_{k}$ of $X$ is tight if the union $A_{1} \cup \cdots \cup A_{k}$ is a proper subset of $X$ and no element of $X$ lies in exactly one of the $A_{i}$ s. Find the largest cardinality of a collection of proper non-empty subsets of $X$, no non-empty subcollection of which is tight. + +Note. A subset $A$ of $X$ is proper if $A \neq X$. The sets in a collection are assumed to be distinct. The whole collection is assumed to be a subcollection. + +## Alexander Polyansky, Russia + +Solution 1. (Ilya Bogdanov) The required maximum is $2 n-2$. To describe a ( $2 n-2$ )-element collection satisfying the required conditions, write $X=\{1,2, \ldots, n\}$ and set $B_{k}=\{1,2, \ldots, k\}$, $k=1,2, \ldots, n-1$, and $B_{k}=\{k-n+2, k-n+3, \ldots, n\}, k=n, n+1, \ldots, 2 n-2$. To show that no subcollection of the $B_{k}$ is tight, consider a subcollection $\mathcal{C}$ whose union $U$ is a proper subset of $X$, let $m$ be an element in $X \backslash U$, and notice that $\mathcal{C}$ is a subcollection of $\left\{B_{1}, \ldots, B_{m-1}, B_{m+n-1}, \ldots, B_{2 n-2}\right\}$, since the other $B$ 's are precisely those containing $m$. If $U$ contains elements less than $m$, let $k$ be the greatest such and notice that $B_{k}$ is the only member of $\mathcal{C}$ containing $k$; and if $U$ contains elements greater than $m$, let $k$ be the least such and notice that $B_{k+n-2}$ is the only member of $\mathcal{C}$ containing $k$. Consequently, $\mathcal{C}$ is not tight. + +We now proceed to show by induction on $n \geq 2$ that the cardinality of a collection of proper non-empty subsets of $X$, no subcollection of which is tight, does not exceed $2 n-2$. The base case $n=2$ is clear, so let $n>2$ and suppose, if possible, that $\mathcal{B}$ is a collection of $2 n-1$ proper non-empty subsets of $X$ containing no tight subcollection. + +To begin, notice that $\mathcal{B}$ has an empty intersection: if the members of $\mathcal{B}$ shared an element $x$, then $\mathcal{B}^{\prime}=\{B \backslash\{x\}: B \in \mathcal{B}, B \neq\{x\}\}$ would be a collection of at least $2 n-2$ proper non-empty subsets of $X \backslash\{x\}$ containing no tight subcollection, and the induction hypothesis would be contradicted. + +Now, for every $x$ in $X$, let $\mathcal{B}_{x}$ be the (non-empty) collection of all members of $\mathcal{B}$ not containing $x$. Since no subcollection of $\mathcal{B}$ is tight, $\mathcal{B}_{x}$ is not tight, and since the union of $\mathcal{B}_{x}$ does not contain $x$, some $x^{\prime}$ in $X$ is covered by a single member of $\mathcal{B}_{x}$. In other words, there is a single set in $\mathcal{B}$ covering $x^{\prime}$ but not $x$. In this case, draw an arrow from $x$ to $x^{\prime}$. Since there is at least one arrow from each $x$ in $X$, some of these arrows form a (minimal) cycle $x_{1} \rightarrow x_{2} \rightarrow \cdots \rightarrow x_{k} \rightarrow x_{k+1}=x_{1}$ for some suitable integer $k \geq 2$. Let $A_{i}$ be the unique member of $\mathcal{B}$ containing $x_{i+1}$ but not $x_{i}$, and let $X^{\prime}=\left\{x_{1}, x_{2}, \ldots, x_{k}\right\}$. + +Remove $A_{1}, A_{2}, \ldots, A_{k}$ from $\mathcal{B}$ to obtain a collection $\mathcal{B}^{\prime}$ each member of which either contains or is disjoint from $X^{\prime}$ : for if a member $B$ of $\mathcal{B}^{\prime}$ contained some but not all elements of $X^{\prime}$, then $B$ should contain $x_{i+1}$ but not $x_{i}$ for some $i$, and $B=A_{i}$, a contradiction. This rules out the case $k=n$, for otherwise $\mathcal{B}=\left\{A_{1}, A_{2}, \ldots, A_{n}\right\}$, so $|\mathcal{B}|<2 n-1$. + +To rule out the case $k2$. + +Firstly, we perform a different modification of $\mathcal{B}$. Choose any $x \in X$, and consider the subcollection $\mathcal{B}_{x}=\{B: B \in \mathcal{B}, x \notin B\}$. By our assumption, $\mathcal{B}_{x}$ is not tight. As the union of sets in $\mathcal{B}_{x}$ is distinct from $X$, either this collection is empty, or there exists an element $y \in X$ contained in a unique member $A_{x}$ of $\mathcal{B}_{x}$. In the former case, we add the set $B_{x}=X \backslash\{x\}$ to $\mathcal{B}$, and in the latter we replace $A_{x}$ by $B_{x}$, to form a new collection $\mathcal{B}^{\prime}$. (Notice that if $B_{x} \in \mathcal{B}$, then $B_{x} \in \mathcal{B}_{x}$ and $y \in B_{x}$, so $B_{x}=A_{x}$.) + +We claim that the collection $\mathcal{B}^{\prime}$ is also good. Indeed, if $\mathcal{B}^{\prime}$ has a tight subcollection $\mathcal{T}$, then $B_{x}$ should lie in $\mathcal{T}$. Then, as the union of the sets in $\mathcal{T}$ is distinct from $X$, we should have $\mathcal{T} \subseteq \mathcal{B}_{x} \cup\left\{B_{x}\right\}$. But in this case an element $y$ is contained in a unique member of $\mathcal{T}$, namely $B_{x}$, so $\mathcal{T}$ is not tight - a contradiction. + +Perform this procedure for every $x \in X$, to get a good collection $\mathcal{B}$ containing the sets $B_{x}=X \backslash\{x\}$ for all $x \in X$. Consider now an element $x \in X$ such that $\left|\mathcal{B}_{x}\right|$ is maximal. As we have mentioned before, there exists an element $y \in X$ belonging to a unique member (namely, $B_{x}$ ) of $\mathcal{B}_{x}$. Thus, $\mathcal{B}_{x} \backslash\left\{B_{x}\right\} \subset \mathcal{B}_{y}$; also, $B_{y} \in \mathcal{B}_{y} \backslash \mathcal{B}_{x}$. Thus we get $\left|\mathcal{B}_{y}\right| \geq\left|\mathcal{B}_{x}\right|$, which by the maximality assumption yields the equality, which in turn means that $\mathcal{B}_{y}=\left(\mathcal{B}_{x} \backslash\left\{B_{x}\right\}\right) \cup\left\{B_{y}\right\}$. + +Therefore, each set in $\mathcal{B} \backslash\left\{B_{x}, B_{y}\right\}$ contains either both $x$ and $y$, or none of them. Collapsing $\{x, y\}$ to singleton $x^{*}$, we get a new collection of $|\mathcal{B}|-2$ subsets of $(X \backslash\{x, y\}) \cup\left\{x^{*}\right\}$ containing no tight subcollection. This contradicts minimality of $n$. + +Remarks. 1. Removal of the condition that subsets be proper would only increase the maximum by 1. The 'non-emptiness' condition could also be omitted, since the empty set forms a tight collection by itself, but the argument is a bit too formal to be considered. +2. There are many different examples of good collections of $2 n-2$ sets. E.g., applying the algorithm from the first part of Solution 2 to the example shown in Solution 1, one may get the following example: $B_{k}=\{1,2, \ldots, k\}, k=1,2, \ldots, n-1$, and $B_{k}=X \backslash\{k-n+1\}$, $k=n, n+1, \ldots, 2 n-2$. + diff --git a/RMM/md/en-2017-Solutions_RMM2017-2.md b/RMM/md/en-2017-Solutions_RMM2017-2.md new file mode 100644 index 0000000000000000000000000000000000000000..85cfed141f67c5a683035a42b14703fbfc56bd09 --- /dev/null +++ b/RMM/md/en-2017-Solutions_RMM2017-2.md @@ -0,0 +1,190 @@ +# The $9^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 2 - Solutions + +Problem 4. In the Cartesian plane, let $\mathcal{G}_{1}$ and $\mathcal{G}_{2}$ be the graphs of the quadratic functions $f_{1}(x)=p_{1} x^{2}+q_{1} x+r_{1}$ and $f_{2}(x)=p_{2} x^{2}+q_{2} x+r_{2}$, where $p_{1}>0>p_{2}$. The graphs $\mathcal{G}_{1}$ and $\mathcal{G}_{2}$ cross at distinct points $A$ and $B$. The four tangents to $\mathcal{G}_{1}$ and $\mathcal{G}_{2}$ at $A$ and $B$ form a convex quadrilateral which has an inscribed circle. Prove that the graphs $\mathcal{G}_{1}$ and $\mathcal{G}_{2}$ have the same axis of symmetry. + +## Alexey Zaslavsky, Russia + +Solution 1. Let $\mathcal{A}_{i}$ and $\mathcal{B}_{i}$ be the tangents to $\mathcal{G}_{i}$ at $A$ and $B$, respectively, and let $C_{i}=\mathcal{A}_{i} \cap \mathcal{B}_{i}$. Since $f_{1}(x)$ is convex and $f_{2}(x)$ is concave, the convex quadrangle formed by the four tangents is exactly $A C_{1} B C_{2}$. +Lemma. If $C A$ and $C B$ are the tangents drawn from a point $C$ to the graph $\mathcal{G}$ of a quadratic trinomial $f(x)=p x^{2}+q x+r, A, B \in \mathcal{G}, A \neq B$, then the abscissa of $C$ is the arithmetic mean of the abscissae of $A$ and $B$. +Proof. Assume, without loss of generality, that $C$ is at the origin, so the equations of the two tangents have the form $y=k_{a} x$ and $y=k_{b} x$. Next, the abscissae $x_{A}$ and $x_{B}$ of the tangency points $A$ and $B$, respectively, are multiple roots of the polynomials $f(x)-k_{a} x$ and $f(x)-k_{b} x$, respectively. By the Vieta theorem, $x_{A}^{2}=r / p=x_{B}^{2}$, so $x_{A}=-x_{B}$, since the case $x_{A}=x_{B}$ is ruled out by $A \neq B$. +![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-1.jpg?height=686&width=1522&top_left_y=1322&top_left_x=245) + +The Lemma shows that the line $C_{1} C_{2}$ is parallel to the $y$-axis and the points $A$ and $B$ are equidistant from this line. + +Suppose, if possible, that the incentre $O$ of the quadrangle $A C_{1} B C_{2}$ does not lie on the line $C_{1} C_{2}$. Assume, without loss of generality, that $O$ lies inside the triangle $A C_{1} C_{2}$ and let $A^{\prime}$ be the reflection of $A$ in the line $C_{1} C_{2}$. Then the ray $C_{i} B$ emanating from $C_{i}$ lies inside the angle $A C_{i} A^{\prime}$, so $B$ lies inside the quadrangle $A C_{1} A^{\prime} C_{2}$, whence $A$ and $B$ are not equidistant from $C_{1} C_{2}-$ a contradiction. + +Thus $O$ lies on $C_{1} C_{2}$, so the lines $A C_{i}$ and $B C_{i}$ are reflections of one another in the line $C_{1} C_{2}$, and $B=A^{\prime}$. Hence $y_{A}=y_{B}$, and since $f_{i}(x)=y_{A}+p_{i}\left(x-x_{A}\right)\left(x-x_{B}\right)$, the line $C_{1} C_{2}$ is the axis of symmetry of both parabolas, as required. + +Solution 2. Use the standard equation of a tangent to a smooth curve in the plane, to deduce that the tangents at two distinct points $A$ and $B$ on the parabola of equation $y=p x^{2}+q x+r$, +$p \neq 0$, meet at some point $C$ whose coordinates are + +$$ +x_{C}=\frac{1}{2}\left(x_{A}+x_{B}\right) \quad \text { and } \quad y_{C}=p x_{A} x_{B}+q \cdot \frac{1}{2}\left(x_{A}+x_{B}\right)+r . +$$ + +Usage of the standard formula for Euclidean distance yields + +$$ +C A=\frac{1}{2}\left|x_{B}-x_{A}\right| \sqrt{1+\left(2 p x_{A}+q\right)^{2}} \quad \text { and } \quad C B=\frac{1}{2}\left|x_{B}-x_{A}\right| \sqrt{1+\left(2 p x_{B}+q\right)^{2}}, +$$ + +so, after obvious manipulations, + +$$ +C B-C A=\frac{2 p\left(x_{B}-x_{A}\right)\left|x_{B}-x_{A}\right|\left(p\left(x_{A}+x_{B}\right)+q\right)}{\sqrt{1+\left(2 p x_{A}+q\right)^{2}}+\sqrt{1+\left(2 p x_{B}+q\right)^{2}}} +$$ + +Now, write the condition in the statement in the form $C_{1} B-C_{1} A=C_{2} B-C_{2} A$, apply the above formula and clear common factors to get + +$$ +\frac{p_{1}\left(p_{1}\left(x_{A}+x_{B}\right)+q_{1}\right)}{\sqrt{1+\left(2 p_{1} x_{A}+q_{1}\right)^{2}}+\sqrt{1+\left(2 p_{1} x_{B}+q_{1}\right)^{2}}}=\frac{p_{2}\left(p_{2}\left(x_{A}+x_{B}\right)+q_{2}\right)}{\sqrt{1+\left(2 p_{2} x_{A}+q_{2}\right)^{2}}+\sqrt{1+\left(2 p_{2} x_{B}+q_{2}\right)^{2}}} +$$ + +Next, use the fact that $x_{A}$ and $x_{B}$ are the solutions of the quadratic equation $\left(p_{1}-p_{2}\right) x^{2}+$ $\left(q_{1}-q_{2}\right) x+r_{1}-r_{2}=0$, so $x_{A}+x_{B}=-\left(q_{1}-q_{2}\right) /\left(p_{1}-p_{2}\right)$, to obtain + +$$ +\frac{p_{1}\left(p_{1} q_{2}-p_{2} q_{1}\right)}{\sqrt{1+\left(2 p_{1} x_{A}+q_{1}\right)^{2}}+\sqrt{1+\left(2 p_{1} x_{B}+q_{1}\right)^{2}}}=\frac{p_{2}\left(p_{1} q_{2}-p_{2} q_{1}\right)}{\sqrt{1+\left(2 p_{2} x_{A}+q_{2}\right)^{2}}+\sqrt{1+\left(2 p_{2} x_{B}+q_{2}\right)^{2}}} . +$$ + +Finally, since $p_{1} p_{2}<0$ and the denominators above are both positive, the last equality forces $p_{1} q_{2}-p_{2} q_{1}=0$; that is, $q_{1} / p_{1}=q_{2} / p_{2}$, so the two parabolas have the same axis. + +Remarks. The are, of course, several different proofs of the Lemma in Solution 1 - in particular, computational. Another argument relies on the following consequence of focal properties: The tangents to a parabola at two points meet at the circumcentre of the triangle formed by the focus and the orthogonal projections of those points on the directrix. Since the directrix of the parabola in the lemma is parallel to the axis of abscissae, the conclusion follows. + +Problem 5. Fix an integer $n \geq 2$. An $n \times n$ sieve is an $n \times n$ array with $n$ cells removed so that exactly one cell is removed from every row and every column. A stick is a $1 \times k$ or $k \times 1$ array for any positive integer $k$. For any sieve $A$, let $m(A)$ be the minimal number of sticks required to partition $A$. Find all possible values of $m(A)$, as $A$ varies over all possible $n \times n$ sieves. + +Palmer Mebane and Nikolai Beluhov +Solution 1. Given $A, m(A)=2 n-2$, and it is achieved, for instance, by dissecting $A$ along all horizontal (or vertical) grid lines. It remains to prove that $m(A) \geq 2 n-2$ for every $A$. + +By holes we mean the cells which are cut out from the board. The cross of a hole in $A$ is the union of the row and the column through that hole. + +Arguing indirectly, consider a dissection of $A$ into $2 n-3$ or fewer sticks. Horizontal sticks are all labelled $h$, and vertical sticks are labelled $v ; 1 \times 1$ sticks are both horizontal and vertical, and labelled arbitrarily. Each cell of $A$ inherits the label of the unique containing stick. + +Assign each stick in the dissection to the cross of the unique hole on its row, if the stick is horizontal; on its column, if the stick is vertical. + +Since there are at most $2 n-3$ sticks and exactly $n$ crosses, there are two crosses each of which is assigned to at most one stick in the dissection. Let the crosses be $c$ and $d$, centred at $a=\left(x_{a}, y_{a}\right)$ and $b=\left(x_{b}, y_{b}\right)$, respectively, and assume, without loss of generality, $x_{a}n$, in which case the sticks in $S$ span all $n$ columns, and notice that we are again done if $|S| \leq n$, to assume further $|S|>n$. + +Let $S^{\prime}=G_{h} \backslash S$, let $T$ be set of all neighbours of $S$, and let $T^{\prime}=G_{v} \backslash T$. Since the sticks in $S$ span all $n$ columns, $|T| \geq n$, so $\left|T^{\prime}\right| \leq n-2$. Transposition of the above argument (replace $S$ by $T^{\prime}$, shows that $\left|T^{\prime}\right| \leq\left|S^{\prime}\right|$, so $|S| \leq|T|$. +Remark. Here is an alternative argument for $s=|S|>n$. Add to $S$ two empty sticks formally present to the left of the leftmost hole and to the right of the rightmost one. Then there are at +least $s-n+2$ rows containing two sticks from $S$, so two of them are separated by at least $s-n$ other rows. Each hole in those $s-n$ rows separates two vertical sticks from $G_{v}$ both of which are neighbours of $S$. Thus the vertices of $S$ have at least $n+(s-n)$ neighbours. + +Solution 4. Yet another proof of the estimate $m(A) \geq 2 n-2$. We use the induction on $n$. Now we need the base cases $n=2,3$ which can be completed by hands. + +Assume now that $n>3$ and consider any dissection of $A$ into sticks. Define the cross of a hole as in Solution 1, and notice that each stick is contained in some cross. Thus, if the dissection contains more than $n$ sticks, then there exists a cross containing at least two sticks. In this case, remove this cross from the sieve to obtain an $(n-1) \times(n-1)$ sieve. The dissection of the original sieve induces a dissection of the new array: even if a stick is partitioned into two by the removed cross, then the remaining two parts form a stick in the new array. After this operation has been performed, the number of sticks decreases by at least 2, and by the induction hypothesis the number of sticks in the new dissection is at least $2 n-4$. Hence, the initial dissection contains at least $(2 n-4)+2=2 n-2$ sticks, as required. + +It remains to rule out the case when the dissection contains at most $n$ sticks. This can be done in many ways, one of which is removal a cross containing some stick. The resulting dissection of an $(n-1) \times(n-1)$ array contains at most $n-1$ sticks, which is impossible by the induction hypothesis since $n-1<2(n-1)-2$. + +Remark. The idea of removing a cross containing at least two sticks arises naturally when one follows an inductive approach. But it is much trickier to finish the solution using this approach, unless one starts to consider removing each cross instead of removing a specific one. + +Problem 6. Let $A B C D$ be any convex quadrilateral and let $P, Q, R, S$ be points on the segments $A B, B C, C D$, and $D A$, respectively. It is given that the segments $P R$ and $Q S$ dissect $A B C D$ into four quadrilaterals, each of which has perpendicular diagonals. Show that the points $P, Q, R, S$ are concyclic. + +NikOlai Beluhov +Solution 1. We start with a lemma which holds even in a more general setup. +Lemma 1. Let $P Q R S$ be a convex quadrangle whose diagonals meet at $O$. Let $\omega_{1}$ and $\omega_{2}$ be the circles on diameters $P Q$ and $R S$, respectively, and let $\ell$ be their radical axis. Finally, choose the points $A, B$, and $C$ outside this quadrangle so that: the point $P$ (respectively, $Q$ ) lies on the segment $A B$ (respectively, $B C$ ); and $A O \perp P S, B O \perp P Q$, and $C O \perp Q R$. Then the three lines $A C, P Q$, and $\ell$ are concurrent or parallel. + +Proof. Assume first that the lines $P R$ and $Q S$ are not perpendicular. Let $H_{1}$ and $H_{2}$ be the orthocentres of the triangles $O S P$ and $O Q R$, respectively; notice that $H_{1}$ and $H_{2}$ do not coincide. + +Since $H_{1}$ is the radical centre of the circles on diameters $R S, S P$, and $P Q$, it lies on $\ell$. Similarly, $H_{2}$ lies on $\ell$, so the lines $H_{1} H_{2}$ and $\ell$ coincide. + +The corresponding sides of the triangles $A P H_{1}$ and $C Q H_{2}$ meet at $O, B$, and the orthocentre of the triangle $O P Q$ (which lies on $O B$ ). By Desargues' theorem, the lines $A C, P Q$ and $\ell$ are concurrent or parallel. +![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-6.jpg?height=732&width=1037&top_left_y=1119&top_left_x=484) + +The case when $P R \perp Q S$ may be considered as a limit case, since the configuration in the statement of the lemma allows arbitrarily small perturbations. The lemma is proved. + +Back to the problem, let the segments $P R$ and $Q S$ cross at $O$, let $\omega_{1}$ and $\omega_{2}$ be the circles on diameters $P Q$ and $R S$, respectively, and let $\ell$ be their radical axis. By the Lemma, the three lines $A C$, $\ell$, and $P Q$ are concurrent or parallel, and similarly so are the three lines $A C, \ell$, and $R S$. Thus, if the lines $A C$ and $\ell$ are distinct, all four lines are concurrent or pairwise parallel. + +This is clearly the case when the lines $P S$ and $Q R$ are not parallel (since $\ell$ crosses $O A$ and $O C$ at the orthocentres of $O S P$ and $O Q R$, these orthocentres being distinct from $A$ and $C$ ). In this case, denote the concurrency point by $T$. If $T$ is not ideal, then we have $T P \cdot T Q=T R \cdot T S$ (as $T \in \ell$ ), so $P Q R S$ is cyclic. If $T$ is ideal (i.e., all four lines are parallel), then the segments $P Q$ and $R S$ have the same perpendicular bisector (namely, the line of centers of $\omega_{1}$ and $\omega_{2}$ ), and $P Q R S$ is cyclic again. + +Assume now $P S$ and $Q R$ parallel. By symmetry, $P Q$ and $R S$ may also be assumed parallel: otherwise, the preceding argument goes through after relabelling. In this case, we need to prove that the parallelogram $P Q R S$ is a rectangle. +![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-7.jpg?height=772&width=1603&top_left_y=168&top_left_x=199) + +Suppose, by way of contradiction, that $O P>O Q$. Let the line through $O$ and parallel to $P Q$ meet $A B$ at $M$, and $C B$ at $N$. Since $O P>O Q$, the angle $S P Q$ is acute and the angle $P Q R$ is obtuse, so the angle $A O B$ is obtuse, the angle $B O C$ is acute, $M$ lies on the segment $A B$, and $N$ lies on the extension of the segment $B C$ beyond $C$. Therefore: $O A>O M$, since the angle $O M A$ is obtuse; $O M>O N$, since $O M: O N=K P: K Q$, where $K$ is the projection of $O$ onto $P Q$; and $O N>O C$, since the angle $O C N$ is obtuse. Consequently, $O A>O C$. + +Similarly, $O R>O S$ yields $O C>O A$ : a contradiction. Consequently, $O P=O Q$ and $P Q R S$ is a rectangle. This ends the proof. + +Solution 2. (Ilya Bogdanov) To begin, we establish a useful lemma. +Lemma 2. If $P$ is a point on the side $A B$ of a triangle $O A B$, then + +$$ +\frac{\sin A O P}{O B}+\frac{\sin P O B}{O A}=\frac{\sin A O B}{O P} +$$ + +Proof. Let $[X Y Z]$ denote the area of a triangle $X Y Z$, to write +$0=2([A O B]-[P O B]-[P O C])=O A \cdot O B \cdot \sin A O B-O B \cdot O P \cdot \sin P O B-O P \cdot O A \cdot \sin A O P$, +and divide by $O A \cdot O B \cdot O P$ to get the required identity. +A similar statement remains valid if the point $C$ lies on the line $A B$; the proof is obtained by using signed areas and directed lengths. + +We now turn to the solution. We first prove some sort of a converse statement, namely: +Claim. Let $P Q R S$ be a cyclic quadrangle with $O=P R \cap Q S$; assume that no its diagonal is perpendicular to a side. Let $\ell_{A}, \ell_{B}, \ell_{C}$, and $\ell_{D}$ be the lines through $O$ perpendicular to $S P$, $P Q, Q R$, and $R S$, respectively. Choose any point $A \in \ell_{A}$ and successively define $B=A P \cap \ell_{B}$, $C=B Q \cap \ell_{C}, D=C R \cap \ell_{D}$, and $A^{\prime}=D S \cap \ell_{A}$. Then $A^{\prime}=A$. + +Proof. We restrict ourselves to the case when the points $A, B, C, D$, and $A^{\prime}$ lie on $\ell_{A}, \ell_{B}$, $\ell_{C}, \ell_{D}$, and $\ell_{A}$ on the same side of $O$ as their points of intersection with the respective sides of the quadrilateral $P Q R S$. Again, a general case is obtained by suitable consideration of directed lengths. +![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-8.jpg?height=755&width=1252&top_left_y=148&top_left_x=376) + +Denote + +$$ +\begin{gathered} +\alpha=\angle Q P R=\angle Q S R=\pi / 2-\angle P O B=\pi / 2-\angle D O S \\ +\beta=\angle R P S=\angle R Q S=\pi / 2-\angle A O P=\pi / 2-\angle Q O C \\ +\gamma=\angle S Q P=\angle S R P=\pi / 2-\angle B O Q=\pi / 2-\angle R O D \\ +\delta=\angle P R Q=\angle P S Q=\pi / 2-\angle C O R=\pi / 2-\angle S O A +\end{gathered} +$$ + +By Lemma 2 applied to the lines $A P B, P Q C, C R D$, and $D S A^{\prime}$, we get + +$$ +\begin{array}{ll} +\frac{\sin (\alpha+\beta)}{O P}=\frac{\cos \alpha}{O A}+\frac{\cos \beta}{O B}, & \frac{\sin (\beta+\gamma)}{O Q}=\frac{\cos \beta}{O B}+\frac{\cos \gamma}{O C} \\ +\frac{\sin (\gamma+\delta)}{O R}=\frac{\cos \gamma}{O C}+\frac{\cos \delta}{O D}, & \frac{\sin (\delta+\alpha)}{O S}=\frac{\cos \delta}{O D}+\frac{\cos \alpha}{O A^{\prime}} +\end{array} +$$ + +Adding the two equalities on the left and subtracting the two on the right, we see that the required equality $A=A^{\prime}$ (i.e., $\cos \alpha / O A=\cos \alpha / O A^{\prime}$, in view of $\cos \alpha \neq 0$ ) is equivalent to the relation + +$$ +\frac{\sin Q P S}{O P}+\frac{\sin S R Q}{O R}=\frac{\sin P Q R}{O Q}+\frac{\sin R S P}{O S} +$$ + +Let $d$ denote the circumdiameter of $P Q R S$, so $\sin Q P S=\sin S R Q=Q S / d$ and $\sin R S P=$ $\sin P Q R=P R / d$. Thus the required relation reads + +$$ +\frac{Q S}{O P}+\frac{Q S}{O R}=\frac{P R}{O S}+\frac{P R}{O Q}, \quad \text { or } \quad \frac{Q S \cdot P R}{O P \cdot O R}=\frac{P R \cdot Q S}{O S \cdot O Q} +$$ + +The last relation is trivial, due again to cyclicity. +Finally, it remains to derive the problem statement from our Claim. Assume that $P Q R S$ is not cyclic, e.g., that $O P \cdot O R>O Q \cdot O S$, where $O=P R \cap Q S$. Mark the point $S^{\prime}$ on the ray $O S$ so that $O P \cdot O R=O Q \cdot O S^{\prime}$. Notice that no diagonal of $P Q R S$ is perpendicular to a side, so the quadrangle $P Q R S^{\prime}$ satisfies the conditions of the claim. + +Let $\ell_{A}^{\prime}$ and $\ell_{D}^{\prime}$ be the lines through $O$ perpendicular to $P S^{\prime}$ and $R S^{\prime}$, respectively. Then $\ell_{A}^{\prime}$ and $\ell_{D}^{\prime}$ cross the segments $A P$ and $R D$, respectively, at some points $A^{\prime}$ and $D^{\prime}$. By the Claim, the line $A^{\prime} D^{\prime}$ passes through $S^{\prime}$. This is impossible, because the segment $A^{\prime} D^{\prime}$ crosses the segment $O S$ at some interior point, while $S^{\prime}$ lies on the extension of this segment. This contradiction completes the proof. + +Remark. According to the author, there is a remarkable corollary that is worth mentioning: Four lines dissect a convex quadrangle into nine smaller quadrangles to make it into a $3 \times 3$ array +![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-9.jpg?height=632&width=1075&top_left_y=158&top_left_x=462) +of quadrangular cells. Label these cells 1 through 9 from left to right and from top to bottom. If the first eight cells are orthodiagonal, then so is the ninth. + diff --git a/RMM/md/en-2018-RMM2018-Day1-English.md b/RMM/md/en-2018-RMM2018-Day1-English.md new file mode 100644 index 0000000000000000000000000000000000000000..0f44348b0115e30182a00d5e29dfb508e71446ca --- /dev/null +++ b/RMM/md/en-2018-RMM2018-Day1-English.md @@ -0,0 +1,73 @@ +# The $10^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 1 - Solutions + +Problem 1. Let $A B C D$ be a cyclic quadrangle and let $P$ be a point on the side $A B$. The diagonal $A C$ crosses the segment $D P$ at $Q$. The parallel through $P$ to $C D$ crosses the extension of the side $B C$ beyond $B$ at $K$, and the parallel through $Q$ to $B D$ crosses the extension of the side $B C$ beyond $B$ at $L$. Prove that the circumcircles of the triangles $B K P$ and $C L Q$ are tangent. + +## AleksandR Kuznetsov, Russia + +Solution. We show that the circles $B K P$ and $C L Q$ are tangent at the point $T$ where the line $D P$ crosses the circle $A B C D$ again. + +Since $B C D T$ is cyclic, we have $\angle K B T=\angle C D T$. Since $K P \| C D$, we get $\angle C D T=\angle K P T$. Thus, $\angle K B T=\angle C D T=\angle K P T$, which shows that $T$ lies on the circle $B K P$. Similarly, the equalities $\angle L C T=\angle B D T=\angle L Q T$ show that $T$ also lies on the circle $C L Q$. + +It remains to prove that these circles are indeed tangent at $T$. This follows from the fact that the chords $T P$ and $T Q$ in the circles $B K T P$ and $C L T Q$, respectively, both lie along the same line and subtend equal angles $\angle T B P=\angle T B A=\angle T C A=\angle T C Q$. +![](https://cdn.mathpix.com/cropped/2024_11_22_d0c1b0fd94de7f0403b4g-1.jpg?height=1024&width=1298&top_left_y=1110&top_left_x=359) + +Remarks. The point $T$ may alternatively be defined as the Miquel point of (any four of) the five lines $A B, B C, A C, K P$, and $L Q$. + +Of course, the result still holds if $P$ is chosen on the line $A B$, and the other points lie on the corresponding lines rather than segments/rays. The current formulation was chosen in order to avoid case distinction based on the possible configurations of points. + +Problem 2. Determine whether there exist non-constant polynomials $P(x)$ and $Q(x)$ with real coefficients satisfying + +$$ +P(x)^{10}+P(x)^{9}=Q(x)^{21}+Q(x)^{20} . +$$ + +## Ilya Bogdanov, Russia + +Solution 1. The answer is in the negative. Comparing the degrees of both sides in (*) we get $\operatorname{deg} P=21 n$ and $\operatorname{deg} Q=10 n$ for some positive integer $n$. Take the derivative of $(*)$ to obtain + +$$ +P^{\prime} P^{8}(10 P+9)=Q^{\prime} Q^{19}(21 Q+20) +$$ + +Since $\operatorname{gcd}(10 P+9, P)=\operatorname{gcd}(10 P+9, P+1)=1$, it follows that $\operatorname{gcd}\left(10 P+9, P^{9}(P+1)\right)=1$, so $\operatorname{gcd}(10 P+9, Q)=1$, by $(*)$. Thus $(* *)$ yields $10 P+9 \mid Q^{\prime}(21 Q+20)$, which is impossible since $0<\operatorname{deg}\left(Q^{\prime}(21 Q+20)\right)=20 n-1<21 n=\operatorname{deg}(10 P+9)$. A contradiction. + +Remark. A similar argument shows that there are no non-constant solutions of $P^{m}+P^{m-1}=$ $Q^{k}+Q^{k-1}$, where $k$ and $m$ are positive integers with $k \geq 2 m$. A critical case is $k=2 m$; but in this case there exist more routine ways of solving the problem. Thus, we decided to choose $k=2 m+1$. + +Solution 2. Letting $r$ and $s$ be integers such that $r \geq 2$ and $s \geq 2 r$, we show that if $P^{r}+P^{r-1}=$ $Q^{s}+Q^{s-1}$, then $Q$ is constant. + +Let $m=\operatorname{deg} P$ and $n=\operatorname{deg} Q$. A degree inspection in the given relation shows that $m \geq 2 n$. +We will prove that $P(P+1)$ has at least $m+1$ distinct complex roots. Assuming this for the moment, notice that $Q$ takes on one of the values 0 or -1 at each of those roots. Since $m+1 \geq 2 n+1$, it follows that $Q$ takes on one of the values 0 and -1 at more than $n$ distinct points, so $Q$ must be constant. + +Finally, we prove that $P(P+1)$ has at least $m+1$ distinct complex roots. This can be done either by referring to the Mason-Stothers theorem or directly, in terms of multiplicities of the roots in question. + +Since $P$ and $P+1$ are relatively prime, the Mason-Stothers theorem implies that the number of distinct roots of $P(P+1)$ is greater than $m$, hence at least $m+1$. + +For a direct proof, let $z_{1}, \ldots, z_{t}$ be the distinct complex roots of $P(P+1)$, and let $z_{k}$ have multiplicity $\alpha_{k}, k=1, \ldots, t$. Since $P$ and $P+1$ have no roots in common, and $P^{\prime}=(P+1)^{\prime}$, it follows that $P^{\prime}$ has a root of multiplicity $\alpha_{k}-1$ at $z_{k}$. Consequently, $m-1=\operatorname{deg} P^{\prime} \geq$ $\sum_{k=1}^{t}\left(\alpha_{k}-1\right)=\sum_{k=1}^{t} \alpha_{k}-t=2 m-t$; that is, $t \geq m+1$. This completes the prof. + +Remark. The Mason-Stothers theorem (in a particular case over the complex field) claims that, given coprime complex polynomials $P(x), Q(x)$, and $R(x)$, not all constant, such that $P(x)+Q(x)=R(x)$, the total number of their complex roots (not regarding multiplicities) is at least $\max \{\operatorname{deg} P, \operatorname{deg} Q, \operatorname{deg} R\}+1$. This theorem was a part of motivation for the famous $a b c$-conjecture. + +Problem 3. Ann and Bob play a game on an infinite checkered plane making moves in turn; Ann makes the first move. A move consists in orienting any unit grid-segment that has not been oriented before. If at some stage some oriented segments form an oriented cycle, Bob wins. Does Bob have a strategy that guarantees him to win? + +Maxim Didin, Russia + +Solution. The answer is in the negative: Ann has a strategy allowing her to prevent Bob's victory. + +We say that two unit grid-segments form a low-left corner (or LL-corner) if they share an endpoint which is the lowest point of one and the leftmost point of the other. An up-right corner (or $U R$-corner) is defined similarly. The common endpoint of two unit grid-segments at a corner is the joint of that corner. + +Fix a vertical line on the grid and call it the midline; the unit grid-segments along the midline are called middle segments. The unit grid-segments lying to the left/right of the midline are called left/right segments. Partition all left segments into LL-corners, and all right segments into UR-corners. + +We now describe Ann's strategy. Her first move consists in orienting some middle segment arbitrarily. Assume that at some stage, Bob orients some segment $s$. If $s$ is a middle segment, Ann orients any free middle segment arbitrarily. Otherwise, $s$ forms a corner in the partition with some other segment $t$. Then Ann orients $t$ so that the joint of the corner is either the source of both arrows, or the target of both. Notice that after any move of Ann's, each corner in the partition is either completely oriented or completely not oriented. This means that Ann can always make a required move. + +Assume that Bob wins at some stage, i.e., an oriented cycle $C$ occurs. Let $X$ be the lowest of the leftmost points of $C$, and let $Y$ be the topmost of the rightmost points of $C$. If $X$ lies (strictly) to the left of the midline, then $X$ is the joint of some corner whose segments are both oriented. But, according to Ann's strategy, they are oriented so that they cannot occur in a cycle - a contradiction. Otherwise, $Y$ lies to the right of the midline, and a similar argument applies. Thus, Bob will never win, as desired. + +Remarks. (1) There are several variations of the argument in the solution above. For instance, instead of the midline, Ann may choose any infinite in both directions down going polyline along the grid (i.e., consisting of steps to the right and steps-down alone). Alternatively, she may split the plane into four quadrants, use their borders as "trash bin" (as the midline was used in the solution above), partition all segments in the upper-right quadrant into UR-corners, all segments in the lower-right quadrant into LR-corners, and so on. +(2) The problem becomes easier if Bob makes the first move. In this case, his opponent just partitions the whole grid into LL-corners. In particular, one may change the problem to say that the first player to achieve an oriented cycle wins (in this case, the result is a draw). + +On the other hand, this version is closer to known problems. In particular, the following problem is known: + +Ann and Bob play the game on an infinite checkered plane making moves in turn (Ann makes the first move). A move consists in painting any unit grid segment that has not been painted before (Ann paints in blue, Bob paints in red). If a player creates a cycle of her/his color, (s)he wins. Does any of the players have a winning strategy? + +Again, the solution is pairing strategy with corners of a fixed orientation (with a little twist for Ann's strategy - in this problem, it is clear that Ann has better chances). + diff --git a/RMM/md/en-2018-RMM2018-Day2-English.md b/RMM/md/en-2018-RMM2018-Day2-English.md new file mode 100644 index 0000000000000000000000000000000000000000..b117b4712d689f1c1973ba64d2216e73bb06a146 --- /dev/null +++ b/RMM/md/en-2018-RMM2018-Day2-English.md @@ -0,0 +1,157 @@ +# The $10^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 2 - Solutions + +Problem 4. Let $a, b, c, d$ be positive integers such that $a d \neq b c$ and $\operatorname{gcd}(a, b, c, d)=1$. Prove that, as $n$ runs through the positive integers, the values $\operatorname{gcd}(a n+b, c n+d)$ may achieve form the set of all positive divisors of some integer. + +Raul Alcantara, Peru + +Solution 1. We extend the problem statement by allowing $a$ and $c$ take non-negative integer values, and allowing $b$ and $d$ to take arbitrary integer values. (As usual, the greatest common divisor of two integers is non-negative.) Without loss of generality, we assume $0 \leq a \leq c$. Let $S(a, b, c, d)=\left\{\operatorname{gcd}(a n+b, c n+d): n \in \mathbb{Z}_{>0}\right\}$. + +Now we induct on $a$. We first deal with the inductive step, leaving the base case $a=0$ to the end of the solution. So, assume that $a>0$; we intend to find a 4 -tuple $\left(a^{\prime}, b^{\prime}, c^{\prime}, d^{\prime}\right)$ satisfying the requirements of the extended problem, such that $S\left(a^{\prime}, b^{\prime}, c^{\prime}, d^{\prime}\right)=S(a, b, c, d)$ and $0 \leq a^{\prime}1)$. We thus get $\operatorname{gcd}\left(b^{\prime}, c\right)=1$ and $S\left(0, b^{\prime}, c, d\right)=S(0, b, c, d)$. + +Finally, it is easily seen that $S\left(0, b^{\prime}, c, d\right)$ is the set of all positive divisors of $b^{\prime}$. Each member of $S\left(0, b^{\prime}, c, d\right)$ is clearly a divisor of $b^{\prime}$. Conversely, if $\delta$ is a positive divisor of $b^{\prime}$, then $c n+d \equiv \delta$ $\left(\bmod b^{\prime}\right)$ for some $n$, since $b^{\prime}$ and $c$ are coprime, so $\delta$ is indeed a member of $S\left(0, b^{\prime}, c, d\right)$. + +Solution 2. (Alexander Betts) For positive integers $s$ and $t$ and prime $p$, we will denote by $\operatorname{gcd}_{p}(s, t)$ the greatest common $p$-power divisor of $s$ and $t$. +Claim 1. For any positive integer $n, \operatorname{gcd}(a n+b, c n+d) \mid a d-b c$. +Proof. This is clear from the identity + +$$ +a(c n+d)-c(a n+b)=a d-b c +$$ + +Claim 2. The set of values taken by $\operatorname{gcd}(a n+b, c n+d)$ is exactly the set of values taken by the product + +$$ +\prod_{p \mid a d-b c} \operatorname{gcd}_{p}\left(a n_{p}+b, c n_{p}+d\right) +$$ + +as the $\left(n_{p}\right)_{p \mid a d-b c}$ each range over positive integers. + +Proof. From the identity + +$$ +\operatorname{gcd}(a n+b, c n+d)=\prod_{p \mid a d-b c} \operatorname{gcd}_{p}(a n+b, c n+d) +$$ + +it is clear that every value taken by $\operatorname{gcd}(a n+b, c n+d)$ is also a value taken by the product (with all $n_{p}=n$ ). Conversely, it suffices to show that, given any positive integers $\left(n_{p}\right)_{p \mid a d-b c}$, there is a positive integer $n$ such that $\operatorname{gcd}_{p}(a n+b, c n+d)=\operatorname{gcd}_{p}\left(a n_{p}+b, c n_{p}+d\right)$ for each $p \mid a d-b c$. This can be achieved by requiring that $n$ be congruent to $n_{p}$ modulo a sufficiently large ${ }^{1}$ power of $p$ (using the Chinese Remainder Theorem). + +Using Claim 2, it suffices to determine the sets of values taken by $\operatorname{gcd}_{p}(a n+b, c n+d)$ as $n$ ranges over all positive integers. There are two cases. + +Claim 3. If $p \mid a, c$, then $\operatorname{gcd}_{p}(a n+b, c n+d)=1$ for all $n$. +Proof. If $p \mid a n+b, c n+d$, then we would have $p \mid a, b, c, d$, which is not the case. +Claim 4. If $p \nmid a$ or $p \nmid c$, then the values taken by $\operatorname{gcd}_{p}(a n+b, c n+d)$ are exactly the $p$-power divisors of $a d-b c$. +Proof. Assume without loss of generality that $p \nmid a$. Then from identity $(\dagger)$ we have $\operatorname{grd}_{p}(a n+$ $b, c n+d)=\operatorname{gcd}_{p}(a n+b, a d-b c)$. But since $p \nmid a$, the arithmetic progression $a n+b$ takes all possible values modulo the highest $p$-power divisor of $a d-b c$, and in particular the values taken by $\operatorname{gcd}_{p}(a n+b, a d-b c)$ are exactly the $p$-power divisors of $a d-b c$. +Conclusion. Using claims 2,3 and 4 , we see that the set of values taken by $\operatorname{gcd}(a n+b, c n+d)$ is equal to the set of products of $p$-power divisors of $a d-b c$, where we only consider those primes $p$ not dividing $\operatorname{gcd}(a, c)$. Thus the set of values of $\operatorname{gcd}(a n+b, c n+d)$ is equal to the set of divisors of the largest factor of $a d-b c$ coprime to $\operatorname{gcd}(a, c)$. + +Remarks. (1) If $S(a, b, c, d)$ is the set of all positive divisors of some integer, then necessarily $a d \neq b c$ and $\operatorname{gcd}(a, b, c, d)=1$ : finiteness of $S(a, b, c, d)$ forces the former, and membership of 1 forces the latter. +(2) One may modify the problem statement according to the first paragraph of the solution. However, it seems that in this case one needs to include a clarification of the agreement on gcd being necessarily non-negative. + +Problem 5. Let $n$ be a positive integer and fix $2 n$ distinct points on a circumference. Split these points into $n$ pairs and join the points in each pair by an arrow (i.e., an oriented line segment). The resulting configuration is good if no two arrows cross, and there are no arrows $\overrightarrow{A B}$ and $\overrightarrow{C D}$ such that $A B C D$ is a convex quadrangle oriented clockwise. Determine the number of good configurations. + +Fedor Petrov, Russia +Solution 1. The required number is $\binom{2 n}{n}$. To prove this, trace the circumference counterclockwise to label the points $a_{1}, a_{2}, \ldots, a_{2 n}$. + +Let $\mathcal{C}$ be any good configuration and let $O(\mathcal{C})$ be the set of all points from which arrows emerge. We claim that every $n$-element subset $S$ of $\left\{a_{1}, \ldots, a_{2 n}\right\}$ is an $O$-image of a unique good configuration; clearly, this provides the answer. + +To prove the claim induct on $n$. The base case $n=1$ is clear. For the induction step, consider any $n$-element subset $S$ of $\left\{a_{1}, \ldots, a_{2 n}\right\}$, and assume that $S=O(\mathcal{C})$ for some good configuration $\mathcal{C}$. Take any index $k$ such that $a_{k} \in S$ and $a_{k+1} \notin S$ (assume throughout that indices are cyclic modulo $2 n$, i.e., $a_{2 n+1}=a_{1}$ etc.). + +If the arrow from $a_{k}$ points to some $a_{\ell}, k+1<\ell(<2 n+k)$, then the arrow pointing to $a_{k+1}$ emerges from some $a_{m}, m$ in the range $k+2$ through $\ell-1$, since these two arrows do not cross. Then the arrows $a_{k} \rightarrow a_{\ell}$ and $a_{m} \rightarrow a_{k+1}$ form a prohibited quadrangle. Hence, $\mathcal{C}$ contains an arrow $a_{k} \rightarrow a_{k+1}$. + +On the other hand, if any configuration $\mathcal{C}$ contains the arrow $a_{k} \rightarrow a_{k+1}$, then this arrow cannot cross other arrows, neither can it occur in prohibited quadrangles. + +Thus, removing the points $a_{k}, a_{k+1}$ from $\left\{a_{1}, \ldots, a_{2 n}\right\}$ and the point $a_{k}$ from $S$, we may apply the induction hypothesis to find a unique good configuration $\mathcal{C}^{\prime}$ on $2 n-2$ points compatible with the new set of sources (i.e., points from which arrows emerge). Adjunction of the arrow $a_{k} \rightarrow a_{k+1}$ to $\mathcal{C}^{\prime}$ yields a unique good configuration on $2 n$ points, as required. + +Solution 2. Use the counterclockwise labelling $a_{1}, a_{2}, \ldots, a_{2 n}$ in the solution above. +Letting $D_{n}$ be the number of good configurations on $2 n$ points, we establish a recurrence relation for the $D_{n}$. To this end, let $C_{n}=\frac{(2 n)!}{n!(n+1)!}$ the $n$th Catalan number; it is well-known that $C_{n}$ is the number of ways to connect $2 n$ given points on the circumference by $n$ pairwise disjoint chords. + +Since no two arrows cross, in any good configuration the vertex $a_{1}$ is connected to some $a_{2 k}$. Fix $k$ in the range 1 through $n$ and count the number of good configurations containing the arrow $a_{1} \rightarrow a_{2 k}$. Let $\mathcal{C}$ be any such configuration. + +In $\mathcal{C}$, the vertices $a_{2}, \ldots, a_{2 k-1}$ are paired off with one other, each arrow pointing from the smaller to the larger index, for otherwise it would form a prohibited quadrangle with $a_{1} \rightarrow a_{2 k}$. Consequently, there are $C_{k-1}$ ways of drawing such arrows between $a_{2}, \ldots, a_{2 k-1}$. + +On the other hand, the arrows between $a_{2 k+1}, \ldots, a_{2 n}$ also form a good configuration, which can be chosen in $D_{n-k}$ ways. Finally, it is easily seen that any configuration of the first kind and any configuration of the second kind combine together to yield an overall good configuration. + +Thus the number of good configurations containing the arrow $a_{1} \rightarrow a_{2 k}$ is $C_{k-1} D_{n-k}$. Clearly, this is also the number of good configurations containing the arrow $a_{2(n-k+1)} \rightarrow a_{1}$, so + +$$ +D_{n}=2 \sum_{k=1}^{n} C_{k-1} D_{n-k} . +$$ + +To find an explicit formula for $D_{n}$, let $d(x)=\sum_{n=0}^{\infty} D_{n} x^{n}$ and let $c(x)=\sum_{n=0}^{\infty} C_{n} x^{n}=$ $\frac{1-\sqrt{1-4 x}}{2 x}$ be the generating functions of the $D_{n}$ and the $C_{n}$, respectively. Since $D_{0}=1$, relation ( $*$ ) +yields $d(x)=2 x c(x) d(x)+1$, so + +$$ +\begin{aligned} +d(x)=\frac{1}{1-2 x c(x)}=(1-4 x)^{-1 / 2} & =\sum_{n \geq 0}\left(-\frac{1}{2}\right)\left(-\frac{3}{2}\right) \ldots\left(-\frac{2 n-1}{2}\right) \frac{(-4 x)^{n}}{n!} \\ +& =\sum_{n \geq 0} \frac{2^{n}(2 n-1)!!}{n!} x^{n}=\sum_{n \geq 0}\binom{2 n}{n} x^{n} . +\end{aligned} +$$ + +Consequently, $D_{n}=\binom{2 n}{n}$. +Solution 3. Let $C_{n}=\frac{1}{n+1}\binom{2 n}{n}$ denote the $n$th Catalan number and recall that there are exactly $C_{n}$ ways to join $2 n$ distinct points on a circumference by $n$ pairwise disjoint chords. Such a configuration of chords will be referred to as a Catalan n-configuration. An orientation of the chords in a Catalan configuration $\mathcal{C}$ making it into a good configuration (in the sense defined in the statement of the problem) will be referred to as a good orientation for $\mathcal{C}$. + +We show by induction on $n$ that there are exactly $n+1$ good orientations for any Catalan $n$-configuration, so there are exactly $(n+1) C_{n}=\binom{2 n}{n}$ good configurations on $2 n$ points. The base case $n=1$ is clear. + +For the induction step, let $n>1$, let $\mathcal{C}$ be a Catalan $n$-configuration, and let $a b$ be a chord of minimal length in $\mathcal{C}$. By minimality, the endpoints of the other chords in $\mathcal{C}$ all lie on the major $\operatorname{arc} a b$ of the circumference. + +Label the $2 n$ endpoints $1,2, \ldots, 2 n$ counterclockwise so that $\{a, b\}=\{1,2\}$, and notice that the good orientations for $\mathcal{C}$ fall into two disjoint classes: Those containing the arrow $1 \rightarrow 2$, and those containing the opposite arrow. + +Since the arrow $1 \rightarrow 2$ cannot be involved in a prohibited quadrangle, the induction hypothesis applies to the Catalan $(n-1)$-configuration formed by the other chords to show that the first class contains exactly $n$ good orientations. + +Finally, the second class consists of a single orientation, namely, $2 \rightarrow 1$, every other arrow emerging from the smaller endpoint of the respective chord; a routine verification shows that this is indeed a good orientation. This completes the induction step and ends the proof. + +Remark. Combining the arguments from Solutions 1 and 3 one gets a way (though not the easiest) to compute the Catalan number $C_{n}$. + +Solution 4, sketch. (Sang-il Oum) As in the previous solution, we intend to count the number of good orientations of a Catalan $n$-configuration. + +For each such configuration, we consider its dual graph $T$ whose vertices are finite regions bounded by chords and the circle, and an edge connects two regions sharing a boundary segment. This graph $T$ is a plane tree with $n$ edges and $n+1$ vertices. + +There is a canonical bijection between orientations of chords and orientations of edges of $T$ in such a way that each chord crosses an edge of $T$ from the right to the left of the arrow on that edge. A good orientation of chords corresponds to an orientation of the tree containing no two edges oriented towards each other. Such an orientation is defined uniquely by its source vertex, i.e., the unique vertex having no in-arrows. + +Therefore, for each tree $T$ on $n+1$ vertices, there are exactly $n+1$ ways to orient it so that the source vertex is unique - one for each choice of the source. Thus, the answer is obtained in the same way as above. + +Problem 6. Fix a circle $\Gamma$, a line $\ell$ tangent to $\Gamma$, and another circle $\Omega$ disjoint from $\ell$ such that $\Gamma$ and $\Omega$ lie on opposite sides of $\ell$. The tangents to $\Gamma$ from a variable point $X$ on $\Omega$ cross $\ell$ at $Y$ and $Z$. Prove that, as $X$ traces $\Omega$, the circle $X Y Z$ is tangent to two fixed circles. + +Russia, Ivan Frolov +Solution. Assume $\Gamma$ of unit radius and invert with respect to $\Gamma$. No reference will be made to the original configuration, so images will be denoted by the same letters. Letting $\Gamma$ be centred at $G$, notice that inversion in $\Gamma$ maps tangents to $\Gamma$ to circles of unit diameter through $G$ (hence internally tangent to $\Gamma$ ). Under inversion, the statement reads as follows: + +Fix a circle $\Gamma$ of unit radius centred at $G$, a circle $\ell$ of unit diameter through $G$, and a circle $\Omega$ inside $\ell$ disjoint from $\ell$. The circles $\eta$ and $\zeta$ of unit diameter, through $G$ and a variable point $X$ on $\Omega$, cross $\ell$ again at $Y$ and $Z$, respectively. Prove that, as $X$ traces $\Omega$, the circle $X Y Z$ is tangent to two fixed circles. +![](https://cdn.mathpix.com/cropped/2024_11_22_c91d66364940611e590ag-5.jpg?height=1061&width=1118&top_left_y=880&top_left_x=446) + +Since $\eta$ and $\zeta$ are the reflections of the circumcircle $\ell$ of the triangle $G Y Z$ in its sidelines $G Y$ and $G Z$, respectively, they pass through the orthocentre of this triangle. And since $\eta$ and $\zeta$ cross again at $X$, the latter is the orthocentre of the triangle $G Y Z$. Hence the circle $\xi$ through $X, Y, Z$ is the reflection of $\ell$ in the line $Y Z$; in particular, $\xi$ is also of unit diameter. + +Let $O$ and $L$ be the centres of $\Omega$ and $\ell$, respectively, and let $R$ be the (variable) centre of $\xi$. Let $G X \operatorname{cross} \xi$ again at $X^{\prime}$; then $G$ and $X^{\prime}$ are reflections of one another in the line $Y Z$, so $G L R X^{\prime}$ is an isosceles trapezoid. Then $L R \| G X$ and $\angle(L G, G X)=\angle\left(G X^{\prime}, X^{\prime} R\right)=\angle(R X, X G)$, i.e., $L G \| R X$; this means that $G L R X$ is a parallelogram, so $\overrightarrow{X R}=\overrightarrow{G L}$ is constant. + +Finally, consider the fixed point $N$ defined by $\overrightarrow{O N}=\overrightarrow{G L}$. Then $X R N O$ is a parallelogram, so the distance $R N=O X$ is constant. Consequently, $\xi$ is tangent to the fixed circles centred at $N$ of radii $|1 / 2-O X|$ and $1 / 2+O X$. + +One last check is needed to show that the inverse images of the two obtained circles are indeed circles and not lines. This might happen if one of them contained $G$; we show that this is +impossible. Indeed, since $\Omega$ lies inside $\ell$, we have $O L<1 / 2-O X$, so + +$$ +N G=|\overrightarrow{G L}+\overrightarrow{L O}+\overrightarrow{O N}|=|2 \overrightarrow{G L}+\overrightarrow{L O}| \geq 2|\overrightarrow{G L}|-|\overrightarrow{L O}|>1-(1 / 2-O X)=1 / 2+O X +$$ + +this shows that $G$ is necessarily outside the obtained circles. +Remarks. (1) The last check could be omitted, if we allowed in the problem statement to regard a line as a particular case of a circle. On the other hand, the Problem Selection Committee suggests not to punish students who have not performed this check. +(2) Notice that the required fixed circles are also tangent to $\Omega$. diff --git a/RMM/md/en-2019-RMM2019-Day1-English.md b/RMM/md/en-2019-RMM2019-Day1-English.md new file mode 100644 index 0000000000000000000000000000000000000000..62c47d23111f58a98b5d5994939a1960e0f44b10 --- /dev/null +++ b/RMM/md/en-2019-RMM2019-Day1-English.md @@ -0,0 +1,123 @@ +# The $11^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 1 - Solutions + +Problem 1. Amy and Bob play the game. At the beginning, Amy writes down a positive integer on the board. Then the players take moves in turn, Bob moves first. On any move of his, Bob replaces the number $n$ on the blackboard with a number of the form $n-a^{2}$, where $a$ is a positive integer. On any move of hers, Amy replaces the number $n$ on the blackboard with a number of the form $n^{k}$, where $k$ is a positive integer. Bob wins if the number on the board becomes zero. Can Amy prevent Bob's win? + +Russia, Maxim Didin + +Solution. The answer is in the negative. For a positive integer $n$, we define its square-free part $S(n)$ to be the smallest positive integer $a$ such that $n / a$ is a square of an integer. In other words, $S(n)$ is the product of all primes having odd exponents in the prime expansion of $n$. We also agree that $S(0)=0$. + +Now we show that (i) on any move of hers, Amy does not increase the square-free part of the positive integer on the board; and (ii) on any move of his, Bob always can replace a positive integer $n$ with a non-negative integer $k$ with $S(k)\varepsilon v$. + +For each edge $b$ in $B$, adjoining $b$ to $F$ produces a unique simple cycle $C_{b}$ through $b$. Let $S_{b}$ be the set of edges in $A$ along $C_{b}$. Since the $C_{b}$ have pairwise distinct lengths, $\sum_{b \in B}\left|S_{b}\right| \geq$ $2+\cdots+(|B|+1)=|B|(|B|+3) / 2>|B|^{2} / 2>\varepsilon^{2} v^{2} / 2$. + +Consequently, some edge in $A$ lies in more than $\varepsilon^{2} v^{2} /(2 v)=\varepsilon^{2} v / 2$ of the $S_{b}$. Fix such an edge $a$ in $A$, and let $B^{\prime}$ be the set of all edges $b$ in $B$ whose corresponding $S_{b}$ contain $a$, so $\left|B^{\prime}\right|>\varepsilon^{2} v / 2$. + +For each 2-edge subset $\left\{b_{1}, b_{2}\right\}$ of $B^{\prime}$, the union $C_{b_{1}} \cup C_{b_{2}}$ of the cycles $C_{b_{1}}$ and $C_{b_{2}}$ forms a $\theta$-graph, since their common part is a path in $F$ through $a$; and since neither of the $b_{i}$ lies along this path, $C_{b_{1}} \cup C_{b_{2}}$ contains a third simple cycle $C_{b_{1}, b_{2}}$ through both $b_{1}$ and $b_{2}$. Finally, since $B^{\prime} \cap C_{b_{1}, b_{2}}=\left\{b_{1}, b_{2}\right\}$, the assignment $\left\{b_{1}, b_{2}\right\} \mapsto C_{b_{1}, b_{2}}$ is injective, so the total number of simple cycles in $G$ is at least $\binom{\left|B^{\prime}\right|}{2}>\binom{\varepsilon^{2} v / 2}{2}$. This establishes the desired lower bound and concludes the proof. + +Remarks. (1) The problem of finding two cycles of equal lengths in a graph on $v$ vertices with $2 v$ edges is known and much easier - simply consider all cycles of the form $C_{b}$. + +The solution above shows that a graph on $v$ vertices with at least $v+\Theta\left(v^{3 / 4}\right)$ edges has two cycles of equal lengths. The constant $3 / 4$ is not sharp; a harder proof seems to show that $v+\Theta(\sqrt{v \log v})$ edges would suffice. On the other hand, there exist graphs on $v$ vertices with $v+\Theta(\sqrt{v})$ edges having no such cycles. +(2) To avoid graph terminology, the statement of the problem may be rephrased as follows: + +Given any positive real number $\varepsilon$, prove that, for all but finitely many positive integers $v$, any $v$-member company, within which there are at least $(1+\varepsilon) v$ friendship relations, satisfies the following condition: For some integer $u \geq 3$, there exist two distinct $u$ member cyclic arrangements in each of which any two neighbours are friends. (Two arrangements are distinct if they are not obtained from one another through rotation and/or symmetry; a member of the company may be included in neither arrangement, in one of them or in both.) + +Sketch of solution 2. (Po-Shen Loh) Recall that the girth of a graph $G$ is the minimal length of a (simple) cycle in this graph. + +Lemma. For any fixed positive $\delta$, a graph on $v$ vertices whose girth is at least $\delta v$ has at most $v+o(v)$ edges. +Proof. Define $f(v)$ to be the maximal number $f$ such that a graph on $v$ vertices whose girth is at least $\delta v$ may have $v+f$ edges. We are interested in the recursive estimates for $f$. + +Let $G$ be a graph on $v$ vertices whose gifth is at least $\delta v$ containing $v+f(v)$ edges. If $G$ contains a leaf (i.e., a vertex of degree 1 ), then one may remove this vertex along with its edge, obtaining a graph with at most $v-1+f(v-1)$ edges. Thus, in this case $f(v) \leq f(v-1)$. + +Define an isolated path of length $k$ to be a sequence of vertices $v_{0}, v_{1}, \ldots, v_{k}$, such that $v_{i}$ is connected to $v_{i+1}$, and each of the vertices $v_{1}, \ldots, v_{k-1}$ has degree 2 (so, these vertices are connected only to their neighbors in the path). If $G$ contains an isolated path $v_{0}, \ldots, v_{k}$ of length, say, $k>\sqrt{v}$, then one may remove all its middle vertices $v_{1}, \ldots, v_{k-1}$, along with all their $k$ edges. We obtain a graph on $v-k+1$ vertices with at most $(v-k+1)+f(v-k+1)$ edges. Thus, in this case $f(v) \leq f(v-k+1)+1$. + +Assume now that the lengths of all isolated paths do not exceed $\sqrt{v}$; we show that in this case $v$ is bounded from above. For that purpose, we replace each maximal isolated path by an edge between its endpoints, removing all middle vertices. We obtain a graph $H$ whose girth is at least $\delta v / \sqrt{v}=\delta \sqrt{v}$. Each vertex of $H$ has degree at least 3. By the girth condition, the neighborhood of any vertex $x$ of radius $r=\lfloor(\delta \sqrt{v}-1) / 2\rfloor$ is a tree rooted at $x$. Any vertex at level $i\sqrt{v}$. This easily yields $f(v)=o(v)$, as desired. + +Now we proceed to the problem. Consider a graph on $v$ vertices containing no two simple cycles of the same length. Take its $\lfloor\varepsilon v / 2\rfloor$ shortest cycles (or all its cycles, if their total number is smaller) and remove an edge from each. We get a graph of girth at least $\varepsilon v / 2$. By the lemma, the number of edges in the obtained graph is at most $v+o(v)$, so the number of edges in the initial graph is at most $v+\varepsilon v / 2+o(v)$, which is smaller than $(1+\varepsilon) v$ if $v$ is large enough. + diff --git a/RMM/md/en-2019-RMM2019-Day2-English.md b/RMM/md/en-2019-RMM2019-Day2-English.md new file mode 100644 index 0000000000000000000000000000000000000000..9f482622936d0a2fbc1218ccf6f83939b44fd9eb --- /dev/null +++ b/RMM/md/en-2019-RMM2019-Day2-English.md @@ -0,0 +1,29 @@ +# The $11^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 2: Saturday, February 23, 2019, Bucharest + +Language: English + +Problem 4. Prove that for every positive integer $n$ there exists a (not necessarily convex) polygon with no three collinear vertices, which admits exactly $n$ different triangulations. +(A triangulation is a dissection of the polygon into triangles by interior diagonals which have no common interior points with each other nor with the sides of the polygon.) + +Problem 5. Determine all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfying + +$$ +f(x+y f(x))+f(x y)=f(x)+f(2019 y) +$$ + +for all real numbers $x$ and $y$. +Problem 6. Find all pairs of integers $(c, d)$, both greater than 1 , such that the following holds: + +For any monic polynomial $Q$ of degree $d$ with integer coefficients and for any prime $p>c(2 c+1)$, there exists a set $S$ of at most $\left(\frac{2 c-1}{2 c+1}\right) p$ integers, such that + +$$ +\bigcup_{s \in S}\{s, Q(s), Q(Q(s)), Q(Q(Q(s))), \ldots\} +$$ + +is a complete residue system modulo $p$ (i.e., intersects with every residue class modulo $p$ ). + +Each of the three problems is worth 7 points. +Time allowed $4 \frac{1}{2}$ hours. + diff --git a/RMM/md/en-2021-RMM2021-Day1-English_Solutions.md b/RMM/md/en-2021-RMM2021-Day1-English_Solutions.md new file mode 100644 index 0000000000000000000000000000000000000000..32598285d7553b50b1f5446198a35da8abde70d7 --- /dev/null +++ b/RMM/md/en-2021-RMM2021-Day1-English_Solutions.md @@ -0,0 +1,55 @@ +# The $13^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 1 - Solutions + +Problem 1. Let $T_{1}, T_{2}, T_{3}, T_{4}$ be pairwise distinct collinear points such that $T_{2}$ lies between $T_{1}$ and $T_{3}$, and $T_{3}$ lies between $T_{2}$ and $T_{4}$. Let $\omega_{1}$ be a circle through $T_{1}$ and $T_{4}$; let $\omega_{2}$ be the circle through $T_{2}$ and internally tangent to $\omega_{1}$ at $T_{1}$; let $\omega_{3}$ be the circle through $T_{3}$ and externally tangent to $\omega_{2}$ at $T_{2}$; and let $\omega_{4}$ be the circle through $T_{4}$ and externally tangent to $\omega_{3}$ at $T_{3}$. A line crosses $\omega_{1}$ at $P$ and $W, \omega_{2}$ at $Q$ and $R, \omega_{3}$ at $S$ and $T$, and $\omega_{4}$ at $U$ and $V$, the order of these points along the line being $P, Q, R, S, T, U, V, W$. Prove that $P Q+T U=R S+V W$. + +Hungary, Geza Kos + +Solution. Let $O_{i}$ be the centre of $\omega_{i}, i=1,2,3,4$. Notice that the isosceles triangles $O_{i} T_{i} T_{i-1}$ are similar (indices are reduced modulo 4 ), to infer that $\omega_{4}$ is internally tangent to $\omega_{1}$ at $T_{4}$, and $O_{1} O_{2} O_{3} O_{4}$ is a (possibly degenerate) parallelogram. + +Let $F_{i}$ be the foot of the perpendicular from $O_{i}$ to $P W$. The $F_{i}$ clearly bisect the segments $P W, Q R, S T$ and $U V$, respectively. + +The proof can now be concluded in two similar ways. +![](https://cdn.mathpix.com/cropped/2024_11_22_ad36eb88be904f8a739dg-1.jpg?height=580&width=1052&top_left_y=1115&top_left_x=476) + +First Approach. Since $O_{1} O_{2} O_{3} O_{4}$ is a parallelogram, $\overrightarrow{F_{1} F_{2}}+\overrightarrow{F_{3} F_{4}}=\mathbf{0}$ and $\overrightarrow{F_{2} F_{3}}+\overrightarrow{F_{4} F_{1}}=\mathbf{0}$; this still holds in the degenerate case, for if the $O_{i}$ are collinear, then they all lie on the line $T_{1} T_{4}$, and each $O_{i}$ is the midpoint of the segment $T_{i} T_{i+1}$. Consequently, + +$$ +\begin{aligned} +\overrightarrow{P Q}-\overrightarrow{R S}+\overrightarrow{T U}-\overrightarrow{V W}= & \left(\overrightarrow{P F_{1}}+\overrightarrow{F_{1} F_{2}}+\overrightarrow{F_{2} Q}\right)-\left(\overrightarrow{R F_{2}}+\overrightarrow{F_{2} F_{3}}+\overrightarrow{F_{3} S}\right) \\ +& +\left(\overrightarrow{T F_{3}}+\overrightarrow{F_{3} F_{4}}+\overrightarrow{F_{4} U}\right)-\left(\overrightarrow{V F_{4}}+\overrightarrow{F_{4} F_{1}}+\overrightarrow{F_{1} W}\right) \\ += & \left(\overrightarrow{P F_{1}}-\overrightarrow{F_{1} W}\right)-\left(\overrightarrow{R F_{2}}-\overrightarrow{F_{2} Q}\right)+\left(\overrightarrow{T F_{3}}-\overrightarrow{F_{3} S}\right)-\left(\overrightarrow{V F_{4}}-\overrightarrow{F_{4} U}\right) \\ +& +\left(\overrightarrow{F_{1} F_{2}}+\overrightarrow{F_{3} F_{4}}\right)-\left(\overrightarrow{F_{2} F_{3}}+\overrightarrow{F_{4} F_{1}}\right)=\mathbf{0} +\end{aligned} +$$ + +Alternatively, but equivalently, $\overrightarrow{P Q}+\overrightarrow{T U}=\overrightarrow{R S}+\overrightarrow{V W}$, as required. +Second Approach. This is merely another way of reading the previous argument. Fix an orientation of the line $P W$, say, from $P$ towards $W$, and use a lower case letter to denote the coordinate of a point labelled by the corresponding upper case letter. + +Since the diagonals of a parallelogram bisect one another, $f_{1}+f_{3}=f_{2}+f_{4}$, the common value being twice the coordinate of the projection to $P W$ of the point where $O_{1} O_{3}$ and $O_{2} O_{4}$ cross; the relation clearly holds in the degenerate case as well. + +Plug $f_{1}=\frac{1}{2}(p+w), f_{2}=\frac{1}{2}(q+r), f_{3}=\frac{1}{2}(s+t)$ and $f_{4}=\frac{1}{2}(u+v)$ into the above equality to get $p+w+s+t=q+r+u+v$. Alternatively, but equivalently, $(q-p)+(u-t)=(s-r)+(w-v)$, that is, $P Q+T U=R Q+V W$, as required. + +Problem 2. Xenia and Sergey play the following game. Xenia thinks of a positive integer $N$ not exceeding 5000. Then she fixes 20 distinct positive integers $a_{1}, a_{2}, \ldots, a_{20}$ such that, for each $k=1,2, \ldots, 20$, the numbers $N$ and $a_{k}$ are congruent modulo $k$. By a move, Sergey tells Xenia a set $S$ of positive integers not exceeding 20, and she tells him back the set $\left\{a_{k}: k \in S\right\}$ without spelling out which number corresponds to which index. How many moves does Sergey need to determine for sure the number Xenia thought of? + +Russia, Sergey Kudrya +Solution. Sergey can determine Xenia's number in 2 but not fewer moves. +We first show that 2 moves are sufficient. Let Sergey provide the set $\{17,18\}$ on his first move, and the set $\{18,19\}$ on the second move. In Xenia's two responses, exactly one number occurs twice, namely, $a_{18}$. Thus, Sergey is able to identify $a_{17}, a_{18}$, and $a_{19}$, and thence the residue of $N$ modulo $17 \cdot 18 \cdot 19=5814>5000$, by the Chinese Remainder Theorem. This means that the given range contains a single number satisfying all congruences, and Sergey achieves his goal. + +To show that 1 move is not sufficient, let $M=\operatorname{lcm}(1,2, \ldots, 10)=2^{3} \cdot 3^{2} \cdot 5 \cdot 7=2520$. Notice that $M$ is divisible by the greatest common divisor of every pair of distinct positive integers not exceeding 20. Let Sergey provide the set $S=\left\{s_{1}, s_{2}, \ldots, s_{k}\right\}$. We show that there exist pairwise distinct positive integers $b_{1}, b_{2}, \ldots, b_{k}$ such that $1 \equiv b_{i}\left(\bmod s_{i}\right)$ and $M+1 \equiv b_{i-1}\left(\bmod s_{i}\right)$ (indices are reduced modulo $k$ ). Thus, if in response Xenia provides the set $\left\{b_{1}, b_{2}, \ldots, b_{k}\right\}$, then Sergey will be unable to distinguish 1 from $M+1$, as desired. + +To this end, notice that, for each $i$, the numbers of the form $1+m s_{i}, m \in \mathbb{Z}$, cover all residues modulo $s_{i+1}$ which are congruent to $1(\equiv M+1)$ modulo $\operatorname{gcd}\left(s_{i}, s_{i+1}\right) \mid M$. Xenia can therefore choose a positive integer $b_{i}$ such that $b_{i} \equiv 1\left(\bmod s_{i}\right)$ and $b_{i} \equiv M+1\left(\bmod s_{i+1}\right)$. Clearly, such choices can be performed so as to make the $b_{i}$ pairwise distinct, as required. + +Problem 3. A number of 17 workers stand in a row. Every contiguous group of at least 2 workers is a brigade. The chief wants to assign each brigade a leader (which is a member of the brigade) so that each worker's number of assignments is divisible by 4. Prove that the number of such ways to assign the leaders is divisible by 17 . + +Russia, Mikhail Antipov + +Solution. Assume that every single worker also forms a brigade (with a unique possible leader). In this modified setting, we are interested in the number $N$ of ways to assign leadership so that each worker's number of assignments is congruent to 1 modulo 4. + +Consider the variables $x_{1}, x_{2}, \ldots, x_{17}$ corresponding to the workers. Assign each brigade (from the $i$-th through the $j$-th worker) the polynomial $f_{i j}=x_{i}+x_{i+1}+\cdots+x_{j}$, and form the product $f=\prod_{1 \leq i \leq j \leq 17} f_{i j}$. The number $N$ is the sum $\Sigma(f)$ of the coefficients of all monomials $x_{1}^{\alpha_{1}} x_{2}^{\alpha_{2}} \ldots x_{17}^{\alpha_{17}}$ in the expansion of $f$, where the $\alpha_{i}$ are all congruent to 1 modulo 4 . For any polynomial $P$, let $\Sigma(P)$ denote the corresponding sum. From now on, all polynomials are considered with coefficients in the finite field $\mathbb{F}_{17}$. + +Recall that for any positive integer $n$, and any integers $a_{1}, a_{2}, \ldots, a_{n}$, there exist indices $i \leq j$ such that $a_{i}+a_{i+1}+\cdots+a_{j}$ is divisible by $n$. Consequently, $f\left(a_{1}, a_{2}, \ldots, a_{17}\right)=0$ for all $a_{1}, a_{2}, \ldots, a_{17}$ in $\mathbb{F}_{17}$. + +Now, if some monomial in the expansion of $f$ is divisible by $x_{i}^{17}$, replace that $x_{i}^{17}$ by $x_{i}$; this does not alter the above overall vanishing property (by Fermat's Little Theorem), and preserves $\Sigma(f)$. After several such changes, $f$ transforms into a polynomial $g$ whose degree in each variable does not exceed 16 , and $g\left(a_{1}, a_{2}, \ldots, a_{17}\right)=0$ for all $a_{1}, a_{2}, \ldots, a_{17}$ in $\mathbb{F}_{17}$. For such a polynomial, an easy induction on the number of variables shows that it is identically zero. Consequently, $\Sigma(g)=0$, so $\Sigma(f)=0$ as well, as desired. + diff --git a/RMM/md/en-2021-RMM2021-Day2-English_Solutions.md b/RMM/md/en-2021-RMM2021-Day2-English_Solutions.md new file mode 100644 index 0000000000000000000000000000000000000000..3df8d1017dc1728ecf331d7a3152d79da92d56c0 --- /dev/null +++ b/RMM/md/en-2021-RMM2021-Day2-English_Solutions.md @@ -0,0 +1,117 @@ +# The $13^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 2 - Solutions + +Problem 4. Consider an integer $n \geq 2$ and write the numbers $1,2, \ldots, n$ down on a board. A move consists in erasing any two numbers $a$ and $b$, and, for each $c$ in $\{a+b,|a-b|\}$, writing $c$ down on the board, unless $c$ is already there; if $c$ is already on the board, do nothing. For all integers $n \geq 2$, determine whether it is possible to be left with exactly two numbers on the board after a finite number of moves. + +## China + +Solution. The answer is in the affirmative for all $n \geq 2$. Induct on $n$. Leaving aside the trivial case $n=2$, deal first with particular cases $n=5$ and $n=6$. + +If $n=5$, remove first the pair $(2,5)$, notice that $3=|2-5|$ is already on the board, so $7=2+5$ alone is written down. Removal of the pair $(3,4)$ then leaves exactly two numbers on the board, 1 and 7 , since $|3 \pm 4|$ are both already there. + +If $n=6$, remove first the pair $(1,6)$, notice that $5=|1-6|$ is already on the board, so $7=1+6$ alone is written down. Next, remove the pair $(2,5)$ and notice that $|2 \pm 5|$ are both already on the board, so no new number is written down. Finally, removal of the pair $(3,4)$ provides a single number to be written down, $1=|3-4|$, since $7=3+4$ is already on the board. At this stage, the process comes to an end: 1 and 7 are the two numbers left. + +In the remaining cases, the problem for $n$ is brought down to the corresponding problem for $\lceil n / 2\rceilb$ on the board, we can replace them by $a+b$ and $a-b$, and then, performing a move on the two new numbers, by $(a+b)+(a-b)=2 a$ and $(a+b)-(a-b)=2 b$. So we can double any two numbers on the board. + +We now show that, if the board contains two even numbers $a$ and $b$, we can divide them both by 2 , while keeping the other numbers unchanged. If $k$ is even, split the other numbers into pairs to multiply each pair by 2 ; then clear out the common factor 2 . If $k$ is odd, split all numbers but $a$ into pairs to multiply each by 2 ; then do the same for all numbers but $b$; finally, clear out the common factor 4. + +Back to the problem, if two of the numbers $a_{1}, \ldots, a_{k}$ are even, reduce them both by 2 to get a set with a smaller sum, which is impossible. Otherwise, two numbers, say, $a_{1}1$. + +Problem 6. Initially, a non-constant polynomial $S(x)$ with real coefficients is written down on a board. Whenever the board contains a polynomial $P(x)$, not necessarily alone, one can write down on the board any polynomial of the form $P(C+x)$ or $C+P(x)$, where $C$ is a real constant. Moreover, if the board contains two (not necessarily distinct) polynomials $P(x)$ and $Q(x)$, one can write $P(Q(x))$ and $P(x)+Q(x)$ down on the board. No polynomial is ever erased from the board. + +Given two sets of real numbers, $A=\left\{a_{1}, a_{2}, \ldots, a_{n}\right\}$ and $B=\left\{b_{1}, b_{2}, \ldots, b_{n}\right\}$, a polynomial $f(x)$ with real coefficients is $(A, B)$-nice if $f(A)=B$, where $f(A)=\left\{f\left(a_{i}\right): i=1,2, \ldots, n\right\}$. + +Determine all polynomials $S(x)$ that can initially be written down on the board such that, for any two finite sets $A$ and $B$ of real numbers, with $|A|=|B|$, one can produce an $(A, B)$-nice polynomial in a finite number of steps. + +Iran, Navid SafaEi +Solution. The required polynomials are all polynomials of an even degree $d \geq 2$, and all polynomials of odd degree $d \geq 3$ with negative leading coefficient. + +Part I. We begin by showing that any (non-constant) polynomial $S(x)$ not listed above is not $(A, B)$-nice for some pair $(A, B)$ with either $|A|=|B|=2$, or $|A|=|B|=3$. + +If $S(x)$ is linear, then so are all the polynomials appearing on the board. Therefore, none of them will be $(A, B)$-nice, say, for $A=\{1,2,3\}$ and $B=\{1,2,4\}$, as desired. + +Otherwise, $\operatorname{deg} S=d \geq 3$ is odd, and the leading coefficient is positive. In this case, we make use of the following technical fact, whose proof is presented at the end of the solution. + +Claim. There exists a positive constant $T$ such that $S(x)$ satisfies the following condition: + +$$ +S(b)-S(a) \geq b-a \quad \text { whenever } \quad b-a \geq T +$$ + +Fix a constant $T$ provided by the Claim. Then, an immediate check shows that all newly appearing polynomials on the board also satisfy $(*)$ (with the same value of $T$ ). Therefore, none of them will be $(A, B)$-nice, say, for $A=\{0, T\}$ and $B=\{0, T / 2\}$, as desired. + +Part II. We show that the polynomials listed in the Answer satisfy the requirements. We will show that for any $a_{1}\max _{x \in \Delta} S(x)$. Therefore, for any $x, y, z$ with $x \leq \alpha \leq y \leq \beta \leq z$ we get $S(x) \leq S(\alpha) \leq$ $S(y) \leq S(\beta) \leq S(z)$. + +We may decrease $\alpha$ and increase $\beta$ (preserving the condition above) so that, in addition, $S^{\prime}(x)>3$ for all $x \notin[\alpha, \beta]$. Now we claim that the number $T=3(\beta-\alpha)$ fits the bill. + +Indeed, take any $a$ and $b$ with $b-a \geq T$. Even if the segment $[a, b]$ crosses $[\alpha, \beta]$, there still is a segment $\left[a^{\prime}, b^{\prime}\right] \subseteq[a, b] \backslash(\alpha, \beta)$ of length $b^{\prime}-a^{\prime} \geq(b-a) / 3$. Then + +$$ +S(b)-S(a) \geq S\left(b^{\prime}\right)-S\left(a^{\prime}\right)=\left(b^{\prime}-a^{\prime}\right) \cdot S^{\prime}(\xi) \geq 3\left(b^{\prime}-a^{\prime}\right) \geq b-a +$$ + +for some $\xi \in\left(a^{\prime}, b^{\prime}\right)$. +Proof of Lemma 1. If $S(x)$ has an even degree, then the polynomial $T(x)=S\left(x+a_{2}\right)-S\left(x+a_{1}\right)$ has an odd degree, hence there exists $x_{0}$ with $T\left(x_{0}\right)=S\left(x_{0}+a_{2}\right)-S\left(x_{0}+a_{1}\right)=b_{2}-b_{1}$. Setting $G(x)=S\left(x+x_{0}\right)$, we see that $G\left(a_{2}\right)-G\left(a_{1}\right)=b_{2}-b_{1}$, so a suitable shift $F(x)=G(x)+\left(b_{1}-G\left(a_{1}\right)\right)$ fits the bill. + +Assume now that $S(x)$ has odd degree and a negative leading coefficient. Notice that the polynomial $S^{2}(x):=S(S(x))$ has an odd degree and a positive leading coefficient. So, the polynomial $S^{2}\left(x+a_{2}\right)-S^{2}\left(x+a_{1}\right)$ attains all sufficiently large positive values, while $S\left(x+a_{2}\right)-$ $S\left(x+a_{1}\right)$ attains all sufficiently large negative values. Therefore, the two-variable polynomial $S^{2}\left(x+a_{2}\right)-S^{2}\left(x+a_{1}\right)+S\left(y+a_{2}\right)-S\left(y+a_{1}\right)$ attains all real values; in particular, there exist $x_{0}$ and $y_{0}$ with $S^{2}\left(x_{0}+a_{2}\right)+S\left(y_{0}+a_{2}\right)-S^{2}\left(x_{0}+a_{1}\right)-S\left(y_{0}+a_{1}\right)=b_{2}-b_{1}$. Setting $G(x)=S^{2}\left(x+x_{0}\right)+S\left(x+y_{0}\right)$, we see that $G\left(a_{2}\right)-G\left(a_{1}\right)=b_{2}-b_{1}$, so a suitable shift of $G$ fits the bill. + +Proof of Lemma 2. Let $\Delta$ denote the segment $\left[a_{1} ; a_{n}\right]$. We modify the proof of Lemma 1 in order to obtain a polynomial $F$ convex (or concave) on $\Delta$ such that $F\left(a_{1}\right)=F\left(a_{2}\right)$; then $F$ is a desired polynomial. Say that a polynomial $H(x)$ is good if $H$ is convex on $\Delta$. + +If $\operatorname{deg} S$ is even, and its leading coefficient is positive, then $S(x+c)$ is good for all sufficiently large negative $c$, and $S\left(a_{2}+c\right)-S\left(a_{1}+c\right)$ attains all sufficiently large negative values for such $c$. Similarly, $S(x+c)$ is good for all sufficiently large positive $c$, and $S\left(a_{2}+c\right)-S\left(a_{1}+c\right)$ attains all sufficiently large positive values for such $c$. Therefore, there exist large $c_{1}<0T \quad \text { whenever } \quad b-a>T +$$ + +Let us sketch an alternative approach for Part II. It suffices to construct, for each $i$, a polynomial $f_{i}(x)$ such that $f_{i}\left(a_{i}\right)=b_{i}$ and $f_{i}\left(a_{j}\right)=0, j \neq i$. The construction of such polynomials may be reduced to the construction of those for $n=3$ similarly to what happens in the proof of Lemma 2. However, this approach (as well as any in this part) needs some care in order to work properly. + diff --git a/RMM/md/en-2023-RMM2023-Day1-English_Solutions.md b/RMM/md/en-2023-RMM2023-Day1-English_Solutions.md new file mode 100644 index 0000000000000000000000000000000000000000..9008b861213c02ec1a53497769c2da62b0615ad3 --- /dev/null +++ b/RMM/md/en-2023-RMM2023-Day1-English_Solutions.md @@ -0,0 +1,205 @@ +Problem 1. Determine all prime numbers $p$ and all positive integers $x$ and $y$ satisfying $x^{3}+y^{3}=$ $p(x y+p)$. + +Solution 1. Up to a swap of the first two entries, the only solutions are $(x, y, p)=(1,8,19)$, $(x, y, p)=(2,7,13)$ and $(x, y, p)=(4,5,7)$. The verification is routine. + +Set $s=x+y$. Rewrite the equation in the form $s\left(s^{2}-3 x y\right)=p(p+x y)$, and express $x y$ : + +$$ +x y=\frac{s^{3}-p^{2}}{3 s+p} +$$ + +In particular, + +$$ +s^{2} \geq 4 x y=\frac{4\left(s^{3}-p^{2}\right)}{3 s+p} +$$ + +or + +$$ +(s-2 p)\left(s^{2}+s p+2 p^{2}\right) \leq p^{2}-p^{3}<0 +$$ + +so $s<2 p$. +If $p \mid s$, then $s=p$ and $x y=p(p-1) / 4$ which is impossible for $x+y=p$ (the equation $t^{2}-p t+p(p-1) / 4=0$ has no integer solutions). + +If $p \nmid s$, rewrite $(*)$ in the form + +$$ +27 x y=\left(9 s^{2}-3 s p+p^{2}\right)-\frac{p^{2}(p+27)}{3 s+p} +$$ + +Since $p \nmid s$, this could be integer only if $3 s+p \mid$ $p+27$, and hence $3 s+p \mid 27-s$. + +If $s \neq 9$, then $|3 s-27| \geq 3 s+p$, so $27-3 s \geq$ $3 s+p$, or $27-p \geq 6 s$, whence $s \leq 4$. These cases are ruled out by hand. + +If $s=x+y=9$, then $(*)$ yields $x y=27-p$. Up to a swap of $x$ and $y$, all such triples $(x, y, p)$ are $(1,8,19),(2,7,13)$, and $(4,5,7)$. + +Solution 2. Set again $s=x+y$. It is readily checked that $s \leq 8$ provides no solutions, so assume $s \geq 9$. Notice that $x^{3}+y^{3}=s\left(x^{2}-x y+y^{2}\right) \geq$ $\frac{1}{4} s^{3}$ and $x y \leq \frac{1}{4} s^{2}$. The condition in the statement then implies $s^{2}(s-p) \leq 4 p^{2}$, so $s1$. By the lemma, there exist monic polynomials $U(x)$ and $V(x)$ of degree $b$ and $a$, respectively, such that $\operatorname{deg}\left(P(x)-U(x)^{c}\right)<(c-1) b$ and $\operatorname{deg}(R(x)-$ $\left.V(x)^{c}\right)<(c-1) a$. Then $\operatorname{deg}\left(F(x)-U(Q(x))^{c}\right)=$ $\operatorname{deg}\left(P(Q(x))-U(Q(x))^{c}\right)<(c-1) a b d, \operatorname{deg}(F(x)-$ $\left.V(S(x))^{c}\right)=\operatorname{deg}\left(R(S(x))-V(S(x))^{c}\right)<(c-1) a b d$, so $\operatorname{deg}\left(U(Q(x))^{c}-V(S(x))^{c}\right)=\operatorname{deg}((F(x)-$ $\left.\left.V(S(x))^{c}\right)-\left(F(x)-U(Q(x))^{c}\right)\right)<(c-1) a b d$. + +On the other hand, $U(Q(x))^{c}-V(S(x))^{c}=$ $(U(Q(x))-V(S(x)))\left(U(Q(x))^{c-1}+\cdots+\right.$ $\left.V(S(x))^{c-1}\right)$. + +By the preceding, the degree of the left-hand member is (strictly) less than $(c-1) a b d$ which is precisely the degree of the second factor in the righthand member. This forces $U(Q(x))=V(S(x))$, so $U(Q(x))=V(S(x))$ has degree $a b d1$. Let $V$ denote the vertex set of $\Gamma$, and let $T_{r}, T_{g}$, and $T_{b}$ be the trees with exactly $r$ red edges, $g$ green edges, and $b$ blue edges, respectively. Consider two cases. +Case 1: There exists a partition $V=A \sqcup B$ of the vertex set into two non-empty parts such that the edges joining the parts all bear the same colour, say, blue. + +Since $\Gamma$ is connected, it has a (necessarily blue) edge connecting $A$ and $B$. Let $e$ be one such. + +Assume that $T$, one of the three trees, does not contain $e$. Then the graph $T \cup\{e\}$ has a cycle $C$ through $e$. The cycle $C$ should contain another edge $e^{\prime}$ connecting $A$ and $B$; the edge $e^{\prime}$ is also blue. Replace $e^{\prime}$ by $e$ in $T$ to get another tree $T^{\prime}$ with the same number of edges of each colour as in $T$, but containing $e$. + +Performing such an operation to all three trees, we arrive at the situation where the three trees $T_{r}^{\prime}$, $T_{g}^{\prime}$, and $T_{b}^{\prime}$ all contain $e$. Now shrink $e$ by identifying its endpoints to obtain a graph $\Gamma^{*}$, and set $r^{*}=r, g^{*}=g$, and $b^{*}=b-1$. The new graph satisfies the conditions in the statement for those new values - indeed, under the shrinking, each of the trees $T_{r}^{\prime}, T_{g}^{\prime}$, and $T_{b}^{\prime}$ loses a blue edge. So $\Gamma^{*}$ has a spanning tree with exactly $r$ red, exactly $g$ +green, and exactly $b-1$ blue edges. Finally, pass back to $\Gamma$ by restoring $e$, to obtain the a desired spanning tree in $\Gamma$. + +Case 2: There is no such a partition. +Consider all possible collections $(R, G, B)$, where $R, G$ and $B$ are acyclic sets consisting of $r$ red edges, $g$ green edges, and $b$ blue edges, respectively. By the problem assumptions, there is at least one such collection. Amongst all such collections, consider one such that the graph on $V$ with edge set $R \cup G \cup B$ has the smallest number $k$ of components. If $k=1$, then the collection provides the edges of a desired tree (the number of edges is one less than the number of vertices). + +Assume now that $k \geq 2$; then in the resulting graph some component $K$ contains a cycle $C$. Since $R, G$, and $B$ are acyclic, $C$ contains edges of at least two colours, say, red and green. By assumption, the edges joining $V(K)$ to $V \backslash V(K)$ bear at least two colours; so one of these edges is either red or green. Without loss of generality, consider a red such edge $e$. + +Let $e^{\prime}$ be a red edge in $C$ and set $R^{\prime}=R \backslash\left\{e^{\prime}\right\} \cup$ $\{e\}$. Then $\left(R^{\prime}, G, B\right)$ is a valid collection providing a smaller number of components. This contradicts minimality of the choice above and concludes the proof. + +Problem 6. Let $r, g, b$ be non-negative integers. Let $\Gamma$ be a connected graph on $r+g+b+1$ vertices. The edges of $\Gamma$ are each coloured red, green or blue. It turns out that $\Gamma$ has + +- a spanning tree in which exactly $r$ of the edges are red, +- a spanning tree in which exactly $g$ of the edges are green and +- a spanning tree in which exactly $b$ of the edges are blue. + +Prove that $\Gamma$ has a spanning tree in which exactly $r$ of the edges are red, exactly $g$ of the edges are green and exactly $b$ of the edges are blue. + +Solution 2. For a spanning tree $T$ in $\Gamma$, denote by $r(T), g(T)$, and $b(T)$ the number of red, green, and blue edges in $T$, respectively. + +Assume that $\mathcal{C}$ is some collection of spanning trees in $\Gamma$. Write + +$$ +\begin{array}{rlrl} +r(\mathcal{C}) & =\min _{T \in \mathcal{C}} r(T), & & g(\mathcal{C})=\min _{T \in \mathcal{C}} g(T) \\ +b(\mathcal{C}) & =\min _{T \in \mathcal{C}} b(T), & & R(\mathcal{C})=\max _{T \in \mathcal{C}}(T) \\ +G(\mathcal{C}) & =\max _{T \in \mathcal{C}} g(T), & B(\mathcal{C})=\max _{T \in \mathcal{C}} b(T) +\end{array} +$$ + +Say that a collection $\mathcal{C}$ is good if $r \in[r(\mathcal{C}, R(\mathcal{C})]$, $g \in[g(\mathcal{C}, G(\mathcal{C})]$, and $b \in[b(\mathcal{C}, B(\mathcal{C})]$. By the problem conditions, the collection of all spanning trees in $\Gamma$ is good. + +For a good collection $\mathcal{C}$, say that an edge $e$ of $\Gamma$ is suspicious if $e$ belongs to some tree in $\mathcal{C}$ but not to all trees in $\mathcal{C}$. Choose now a good collection $\mathcal{C}$ minimizing the number of suspicious edges. If $\mathcal{C}$ contains a desired tree, we are done. Otherwise, without loss of generality, $r(\mathcal{C})g$. + +We now distinguish two cases. +Case 1: $B(\mathcal{C})=b$ 。 +Let $T^{0}$ be a tree in $\mathcal{C}$ with $g\left(T^{0}\right)=g(\mathcal{C}) \leq g$. Since $G(\mathcal{C})>g$, there exists a green edge $e$ contained in some tree in $\mathcal{C}$ but not in $T^{0}$; clearly, $e$ is suspicious. Fix one such green edge $e$. + +Now, for every $T$ in $\mathcal{C}$, define a spanning tree $T_{1}$ of $\Gamma$ as follows. If $T$ does not contain $e$, then $T_{1}=T$; in particular, $\left(T^{0}\right)_{1}=T^{0}$. Otherwise, the graph $T \backslash\{e\}$ falls into two components. The tree $T_{0}$ contains some edge $e^{\prime}$ joining those components; this edge is necessarily suspicious. Choose one such edge and define $T_{1}=T \backslash\{e\} \cup\left\{e^{\prime}\right\}$. + +Let $\mathcal{C}_{1}=\left\{T_{1}: T \in \mathcal{C}\right\}$. All edges suspicious for $\mathcal{C}_{1}$ are also suspicious for $\mathcal{C}$, but no tree in $\mathcal{C}_{1}$ con- + +## Russia, Vasily Mokin + +tains $e$. So the number of suspicious edges for $\mathcal{C}_{1}$ is strictly smaller than that for $\mathcal{C}$. + +We now show that $\mathcal{C}_{1}$ is good, reaching thereby a contradiction with the choice of $\mathcal{C}$. For every $T$ in $\mathcal{C}$, the tree $T_{1}$ either coincides with $T$ or is obtained from it by removing a green edge and adding an edge of some colour. This already shows that $g\left(\mathcal{C}_{1}\right) \leq g(\mathcal{C}) \leq g, G\left(\mathcal{C}_{1}\right) \geq G(\mathcal{C})-1 \geq g$, $R\left(\mathcal{C}_{1}\right) \geq R(\mathcal{C}) \geq r, r\left(\mathcal{C}_{1}\right) \leq r(\mathcal{C})+1 \leq r$, and $B\left(\mathcal{C}_{1}\right) \geq B(\mathcal{C}) \geq b$. Finally, we get $b\left(T^{0}\right) \leq$ $B(\mathcal{C})=b$; since $\mathcal{C}_{1}$ contains $T^{0}$, it follows that $b\left(\mathcal{C}_{1}\right) \leq b\left(T^{0}\right) \leq b$, which concludes the proof. +Case 2: $B(\mathcal{C})>b$. +Consider a tree $T^{0}$ in $\mathcal{C}$ satisfying $r\left(T^{0}\right)=$ $R(\mathcal{C}) \geq r$. Since $r(\mathcal{C})3$ and for each $n$-admissible set $\mathcal{S}$, there exist pairwise distinct points $P_{1}, \ldots, P_{n}$ in the plane such that the angles of the triangle $P_{i} P_{j} P_{k}$ are all less than $61^{\circ}$ for any triple $\{i, j, k\}$ in $\mathcal{S}$ ? + +Each problem is worth 7 marks. +Time allowed: $4 \frac{1}{2}$ hours. + diff --git a/RMM/md/en-2024-RMM2024-Day2-English.md b/RMM/md/en-2024-RMM2024-Day2-English.md new file mode 100644 index 0000000000000000000000000000000000000000..b2ca4e98aec6fcb3007e03c397836d414ae8ca61 --- /dev/null +++ b/RMM/md/en-2024-RMM2024-Day2-English.md @@ -0,0 +1,21 @@ +# The $15^{\text {th }}$ Romanian Master of Mathematics Competition + +Day 2: Thursday, February $29^{\text {th }}$, 2024, Bucharest + +Language: English + +Problem 4. Fix integers $a$ and $b$ greater than 1 . For any positive integer $n$, let $r_{n}$ be the (non-negative) remainder that $b^{n}$ leaves upon division by $a^{n}$. Assume there exists a positive integer $N$ such that $r_{n}<2^{n} / n$ for all integers $n \geq N$. Prove that $a$ divides $b$. + +Problem 5. Let $B C$ be a fixed segment in the plane, and let $A$ be a variable point in the plane not on the line $B C$. Distinct points $X$ and $Y$ are chosen on the rays $\overrightarrow{C A}$ and $\overrightarrow{B A}$, respectively, such that $\angle C B X=\angle Y C B=\angle B A C$. Assume that the tangents to the circumcircle of $A B C$ at $B$ and $C$ meet line $X Y$ at $P$ and $Q$, respectively, such that the points $X, P, Y$, and $Q$ are pairwise distinct and lie on the same side of $B C$. Let $\Omega_{1}$ be the circle through $X$ and $P$ centred on $B C$. Similarly, let $\Omega_{2}$ be the circle through $Y$ and $Q$ centred on $B C$. Prove that $\Omega_{1}$ and $\Omega_{2}$ intersect at two fixed points as $A$ varies. + +Problem 6. A polynomial $P$ with integer coefficients is square-free if it is not expressible in the form $P=Q^{2} R$, where $Q$ and $R$ are polynomials with integer coefficients and $Q$ is not constant. For a positive integer $n$, let $\mathcal{P}_{n}$ be the set of polynomials of the form + +$$ +1+a_{1} x+a_{2} x^{2}+\cdots+a_{n} x^{n} +$$ + +with $a_{1}, a_{2}, \ldots, a_{n} \in\{0,1\}$. Prove that there exists an integer $N$ so that, for all integers $n \geq N$, more than $99 \%$ of the polynomials in $\mathcal{P}_{n}$ are square-free. + +Each problem is worth 7 marks. +Time allowed: $4 \frac{1}{2}$ hours. + diff --git a/RMM/raw/en-2011-Sols2011D1.pdf b/RMM/raw/en-2011-Sols2011D1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d147a912bb9eeb5307bdb1e231301f6f6bdd510d --- /dev/null +++ b/RMM/raw/en-2011-Sols2011D1.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce8d78396bd2283dbfd8bb25140d51427b9e0546ac19b649998e25a8db67fea2 +size 64262 diff --git a/RMM/raw/en-2011-Sols2011D2.pdf b/RMM/raw/en-2011-Sols2011D2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..13a0111525f157ac3f934cee527a5545c5559f09 --- /dev/null +++ b/RMM/raw/en-2011-Sols2011D2.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68571a0d147cc74578a89185b655890ffcb2b9c9b4a76e21af4765b5a31f0188 +size 101945 diff --git a/RMM/raw/en-2012-Solutions2012-1.pdf b/RMM/raw/en-2012-Solutions2012-1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..818f6b1a23850f94c8998599d34e27093335d729 --- /dev/null +++ b/RMM/raw/en-2012-Solutions2012-1.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b3dbd271d9c0a8e84a0e4c30a96a78eaa2a5e1605aeeadeb84766b232672d99 +size 62148 diff --git a/RMM/raw/en-2012-Solutions2012-2.pdf b/RMM/raw/en-2012-Solutions2012-2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..9f49439882fb02b2bd7133853ae8c0711452f3b4 --- /dev/null +++ b/RMM/raw/en-2012-Solutions2012-2.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8159e649bdb58319b60b1ac011dfc5663be5defdc1fe6289160162489a8718f1 +size 69503 diff --git a/RMM/raw/en-2013-Solutions2013-1.pdf b/RMM/raw/en-2013-Solutions2013-1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..be1f25f16171a56beba616755f0dd271486bf980 --- /dev/null +++ b/RMM/raw/en-2013-Solutions2013-1.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd28ceb151a6ed96706f0fb6fff948976dca87642f4e061081de119bcfebc957 +size 192918 diff --git a/RMM/raw/en-2013-Solutions2013-2.pdf b/RMM/raw/en-2013-Solutions2013-2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..57eae37f9e29fb50dbc717c1bb33a272b6f46689 --- /dev/null +++ b/RMM/raw/en-2013-Solutions2013-2.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:861f545e68a397fc8d65d3970bd0a87a6efae0fe1f8c91ad162e596f25212d76 +size 188229 diff --git a/RMM/raw/en-2015-Solutions_RMM2015-1.pdf b/RMM/raw/en-2015-Solutions_RMM2015-1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..dab3dbe7bc4d3ae741933034c0fdcf07898c785f --- /dev/null +++ b/RMM/raw/en-2015-Solutions_RMM2015-1.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b44077fb72520e64dcadaebf5e427ffe5ced194e0d809993df30d54784ef316a +size 170097 diff --git a/RMM/raw/en-2015-Solutions_RMM2015-2.pdf b/RMM/raw/en-2015-Solutions_RMM2015-2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5c3ebd6c0cdc154af6042d2f3dc249d59f8d2bae --- /dev/null +++ b/RMM/raw/en-2015-Solutions_RMM2015-2.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a02b84b874cdfd5244f7b7063f598304aa8f8dfae50549140b338b358e246533 +size 177510 diff --git a/RMM/raw/en-2016-Solutions_RMM2016-1.pdf b/RMM/raw/en-2016-Solutions_RMM2016-1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3c9792099d5411046c6ee032e26ba655fbf6d99d --- /dev/null +++ b/RMM/raw/en-2016-Solutions_RMM2016-1.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04a6e1d44f501fd3747976c7caddf6479bb54ba5f774065580cfc70de3ab743e +size 174522 diff --git a/RMM/raw/en-2016-Solutions_RMM2016-2.pdf b/RMM/raw/en-2016-Solutions_RMM2016-2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c01187a67b25c5cfe4faff8319fe55c7080d80f3 --- /dev/null +++ b/RMM/raw/en-2016-Solutions_RMM2016-2.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:218f8098fa64e27bf96cd8327aea2debb4e1dfd4b5b51ab7ce1df890e56b3edc +size 164651 diff --git a/RMM/raw/en-2017-Solutions_RMM2017-1.pdf b/RMM/raw/en-2017-Solutions_RMM2017-1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..381dc620c6361cbc1aa6e28948c2bcd81e3acd31 --- /dev/null +++ b/RMM/raw/en-2017-Solutions_RMM2017-1.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3477e9ff25c655154a73706ed8637de4ce6b4a747313e241f49e0fd207a5cab +size 192072 diff --git a/RMM/raw/en-2017-Solutions_RMM2017-2.pdf b/RMM/raw/en-2017-Solutions_RMM2017-2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..127643f9e1f6c4b3a37b3e198728a1cd8c4c2362 --- /dev/null +++ b/RMM/raw/en-2017-Solutions_RMM2017-2.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce47e2e521aca8dd7570aedfe8b75d80f650b6b4a50a18a26fc878c2549304b0 +size 234135 diff --git a/RMM/raw/en-2018-RMM2018-Day1-English.pdf b/RMM/raw/en-2018-RMM2018-Day1-English.pdf new file mode 100644 index 0000000000000000000000000000000000000000..ae1f194ee4df3955dc4bf5de1caf1827698bb965 --- /dev/null +++ b/RMM/raw/en-2018-RMM2018-Day1-English.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70cfc8fdfea49982ab6757fc92387e3957531d2311d95f03ed473e4d83b2c83d +size 153298 diff --git a/RMM/raw/en-2018-RMM2018-Day2-English.pdf b/RMM/raw/en-2018-RMM2018-Day2-English.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8183305104943d9f5a5ec5f2e0becd8e919da235 --- /dev/null +++ b/RMM/raw/en-2018-RMM2018-Day2-English.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6aec41927452927cb805f83fd66995019862f4c74057c9872a1db155b9966c15 +size 232116 diff --git a/RMM/raw/en-2019-RMM2019-Day1-English.pdf b/RMM/raw/en-2019-RMM2019-Day1-English.pdf new file mode 100644 index 0000000000000000000000000000000000000000..facff77b64765592951808ae521c7791434bb18c --- /dev/null +++ b/RMM/raw/en-2019-RMM2019-Day1-English.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ff926f8db74c4d7b9c47b1202711d40f74181fb506a496b52b3482cfc4366f6 +size 194832 diff --git a/RMM/raw/en-2019-RMM2019-Day2-English.pdf b/RMM/raw/en-2019-RMM2019-Day2-English.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8a37f0d9edcf2bc6caaaffb847cfdb7b4b7fe114 --- /dev/null +++ b/RMM/raw/en-2019-RMM2019-Day2-English.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b25b347b805a365e23ff1967fd29440addd9fc6e2f83cf4449e3267cbbb65d9 +size 108870 diff --git a/RMM/raw/en-2021-RMM2021-Day1-English_Solutions.pdf b/RMM/raw/en-2021-RMM2021-Day1-English_Solutions.pdf new file mode 100644 index 0000000000000000000000000000000000000000..fc51abe24497f7adaf1bc9b006a65f93d67ea739 --- /dev/null +++ b/RMM/raw/en-2021-RMM2021-Day1-English_Solutions.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec35b4e5afd0b62972dbb8d7e96cadd4eaf6fbf07933de706160a5e8bd53b8f3 +size 166910 diff --git a/RMM/raw/en-2021-RMM2021-Day2-English_Solutions.pdf b/RMM/raw/en-2021-RMM2021-Day2-English_Solutions.pdf new file mode 100644 index 0000000000000000000000000000000000000000..33dd60d0ba2eb81239ad59e0d8d137fd35c47c82 --- /dev/null +++ b/RMM/raw/en-2021-RMM2021-Day2-English_Solutions.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d99c660cc7373a41dcff12fde03dc4f72fff2a2f4717e34353eea40bda77f91 +size 160341 diff --git a/RMM/raw/en-2023-RMM2023-Day1-English_Solutions.pdf b/RMM/raw/en-2023-RMM2023-Day1-English_Solutions.pdf new file mode 100644 index 0000000000000000000000000000000000000000..90e8c35aeab3650a6bc31a5b277e4067cdaa3cfa --- /dev/null +++ b/RMM/raw/en-2023-RMM2023-Day1-English_Solutions.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:546e9271262297d281454cbbd51f83750f967bf9e63e28ed9ea3fd5e65ef6509 +size 407570 diff --git a/RMM/raw/en-2023-RMM2023-Day2-English_Solutions.pdf b/RMM/raw/en-2023-RMM2023-Day2-English_Solutions.pdf new file mode 100644 index 0000000000000000000000000000000000000000..64ffb36df3746d4af05c9df47599d6db926efacd --- /dev/null +++ b/RMM/raw/en-2023-RMM2023-Day2-English_Solutions.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a0348a4083e0390993a4fe041b81f981a44dba530a1ab41dbfd3bffb7009f6e +size 364971 diff --git a/RMM/raw/en-2024-RMM2024-Day1-English.pdf b/RMM/raw/en-2024-RMM2024-Day1-English.pdf new file mode 100644 index 0000000000000000000000000000000000000000..89aed5e704d458833fd608c776b685d0db52f118 --- /dev/null +++ b/RMM/raw/en-2024-RMM2024-Day1-English.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82826fe7a40e3ec7dba03c71ece91f4a877084984be7f485ac03225bd66bd8ee +size 122264 diff --git a/RMM/raw/en-2024-RMM2024-Day2-English.pdf b/RMM/raw/en-2024-RMM2024-Day2-English.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1701e0de53c4e68ef3222c8f1cf26552871d7aa5 --- /dev/null +++ b/RMM/raw/en-2024-RMM2024-Day2-English.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1514ed91a3f25faa9fb2c95e21834581484076889818b0f1f2e64ba45a9d2247 +size 117542 diff --git a/RMM/segment_script/segment.py b/RMM/segment_script/segment.py new file mode 100644 index 0000000000000000000000000000000000000000..09fa1e1c402f7b5ee08bb432271c7ffbf614bbe7 --- /dev/null +++ b/RMM/segment_script/segment.py @@ -0,0 +1,128 @@ +import re +import json + +from tqdm import tqdm +from loguru import logger + +from pathlib import Path +from typing import Tuple, List + + +problem_tag = 'Problem' +solution_tag = 'Solution' +problem_pattern = re.compile(r'(?:\n|# )Problem\s+(\d+)(.)?') +solution_pattern = re.compile(r'(?:\n|# )Solution(?:\s+(\d+)|\.|\n)') + + +def analyze(text: str) -> Tuple[List, int]: + """ + Analyze the text and return the tags and problem number. + + Args: + text (str): The markdown text to analyze. + + Returns: + Tuple[List, int]: A tuple containing the tags and problem number. + """ + tags = [] + tags.extend([(x, problem_tag) for x in problem_pattern.finditer(text)]) + problem_num = len(tags) + + tags.extend([(x, solution_tag) for x in solution_pattern.finditer(text)]) + tags.sort(key=lambda x: x[0].start()) + return tags, problem_num + + +def segment(text: str, tags): + starts = [] + ends = [] + + for i in range(len(tags)): + starts.append(tags[i][0].end()) + if i + 1 < len(tags): + ends.append(tags[i + 1][0].start()) + else: + ends.append(len(text)) + + return [text[start:end].strip() for start, end in zip(starts, ends)] + + +def join(tags, segments): + problem, solution = '', '' + problem_label, problem_match, solution_match = '', '', '' + pairs = [] + + has_solution = any([tag[1] == solution_tag for tag in tags]) + + for tag, segment in zip(tags, segments): + if tag[1] == problem_tag: + problem = segment + problem_match = tag[0].group(0) + problem_label = tag[0].group(1) + + # If there is no solution, add an empty solution + if not has_solution: + pairs.append((problem, '', problem_label, problem_match, '')) + else: + solution = segment + solution_match = tag[0].group(0) + pairs.append((problem, solution, problem_label, problem_match, solution_match)) + + return pairs + + +def write_pairs(output_file: Path, pairs): + year = re.search(r'(\d{4})', output_file.stem).group(1) + + output_jsonl_text = "" + for problem, solution, problem_label, problem_match, solution_match in pairs: + output_jsonl_text += json.dumps( + { + 'year': year, + 'problem_label': problem_label, + 'tier': 1, + 'problem': problem, + 'solution': solution, + 'problem_match': problem_match, + 'solution_match': solution_match + }, + ensure_ascii=False + ) + '\n' + + output_file.write_text(output_jsonl_text, encoding="utf-8") + + +def main(): + compet_base_path = Path(__file__).resolve().parent.parent + compet_md_path = compet_base_path / "md" + seg_output_path = compet_base_path / "segmented" + + total_problem_count = 0 + total_solution_count = 0 + + for apmo_md in tqdm(list(compet_md_path.glob('**/*.md')), desc='Segmenting'): + output_file = seg_output_path / apmo_md.relative_to(compet_md_path).with_suffix('.jsonl') + output_file.parent.mkdir(parents=True, exist_ok=True) + + text = '\n' + apmo_md.read_text(encoding="utf-8") + + tags, problem_num = analyze(text) + + if problem_num != 6 and problem_num != 3: + logger.warning(f"{apmo_md} problem number is {problem_num}") + + if problem_num > 0: + segments = segment(text, tags) + pairs = join(tags, segments) + write_pairs(output_file, pairs) + + total_problem_count += problem_num + total_solution_count += len(pairs) + else: + logger.warning(f"No problem found in {apmo_md}") + + logger.info(f"Total problem count: {total_problem_count}") + logger.info(f"Total solution count: {total_solution_count}") + +if __name__ == '__main__': + main() diff --git a/RMM/segmented/en-2011-Sols2011D1.jsonl b/RMM/segmented/en-2011-Sols2011D1.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..16b6f6c81156bd29b7e21b89920ec9166a7a1087 --- /dev/null +++ b/RMM/segmented/en-2011-Sols2011D1.jsonl @@ -0,0 +1,3 @@ +{"year": "2011", "problem_label": "1", "tier": 1, "problem": "Prove that there exist two functions\n\n$$\nf, g: \\mathbb{R} \\rightarrow \\mathbb{R}\n$$\n\nsuch that $f \\circ g$ is strictly decreasing, while $g \\circ f$ is strictly increasing.\n(Poland) Andrzej KomisArsKi \\& Marcin Kuczma\n\n#", "solution": "Let\n\n$$\n\\begin{aligned}\n& \\cdot A=\\bigcup_{k \\in \\mathbb{Z}}\\left(\\left[-2^{2 k+1},-2^{2 k}\\right) \\bigcup\\left(2^{2 k}, 2^{2 k+1}\\right]\\right) \\\\\n& \\cdot B=\\bigcup_{k \\in \\mathbb{Z}}\\left(\\left[-2^{2 k},-2^{2 k-1}\\right) \\bigcup\\left(2^{2 k-1}, 2^{2 k}\\right]\\right)\n\\end{aligned}\n$$\n\nThus $A=2 B, B=2 A, A=-A, B=-B, A \\cap B=\\varnothing$, and finally $A \\cup B \\cup\\{0\\}=\\mathbb{R}$. Let us take\n\n$$\nf(x)=\\left\\{\\begin{array}{lll}\nx & \\text { for } & x \\in A \\\\\n-x & \\text { for } & x \\in B \\\\\n0 & \\text { for } & x=0\n\\end{array}\\right.\n$$\n\nTake $g(x)=2 f(x)$. Thus $f(g(x))=f(2 f(x))=-2 x$ and $g(f(x))=2 f(f(x))=2 x$.", "problem_match": "\nProblem 1.", "solution_match": "# Solution."} +{"year": "2011", "problem_label": "2", "tier": 1, "problem": "Determine all positive integers $n$ for which there exists a polynomial $f(x)$ with real coefficients, with the following properties:\n(1) for each integer $k$, the number $f(k)$ is an integer if and only if $k$ is not divisible by $n$;\n(2) the degree of $f$ is less than $n$.\n(Hungary) GÉza Kós", "solution": "We will show that such polynomial exists if and only if $n=1$ or $n$ is a power of a prime.\n\nWe will use two known facts stated in Lemmata 1 and 2.\nLemma 1. If $p^{a}$ is a power of a prime and $k$ is an integer, then $\\frac{(k-1)(k-2) \\ldots\\left(k-p^{a}+1\\right)}{\\left(p^{a}-1\\right)!}$ is divisible by $p$ if and only if $k$ is not divisible by $p^{a}$.\n\nProof. First suppose that $p^{a} \\mid k$ and consider\n\n$$\n\\frac{(k-1)(k-2) \\cdots\\left(k-p^{a}+1\\right)}{\\left(p^{a}-1\\right)!}=\\frac{k-1}{p^{a}-1} \\cdot \\frac{k-2}{p^{a}-2} \\cdots \\frac{k-p^{a}+1}{1}\n$$\n\nIn every fraction on the right-hand side, $p$ has the same maximal exponent in the numerator as in the denominator.\n\nTherefore, the product (which is an integer) is not divisible by $p$.\n\nNow suppose that $p^{a} \\nmid k$. We have\n\n$$\n\\frac{(k-1)(k-2) \\cdots\\left(k-p^{a}+1\\right)}{\\left(p^{a}-1\\right)!}=\\frac{p^{a}}{k} \\cdot \\frac{k(k-1) \\cdots\\left(k-p^{a}+1\\right)}{\\left(p^{a}\\right)!} .\n$$\n\nThe last fraction is an integer. In the fraction $\\frac{p^{a}}{k}$, the denominator $k$ is not divisible by $p^{a}$.\nLemma 2. If $g(x)$ is a polynomial with degree less than $n$ then\n\n$$\n\\sum_{\\ell=0}^{n}(-1)^{\\ell}\\binom{n}{\\ell} g(x+n-\\ell)=0\n$$\n\nProof. Apply induction on $n$. For $n=1$ then $g(x)$ is a constant and\n\n$$\n\\binom{1}{0} g(x+1)-\\binom{1}{1} g(x)=g(x+1)-g(x)=0\n$$\n\nNow assume that $n>1$ and the Lemma holds for $n-1$. Let $h(x)=g(x+1)-g(x)$; the degree of $h$ is less than the degree of $g$, so the induction hypothesis applies for $g$ and $n-1$ :\n\n$$\n\\begin{gathered}\n\\sum_{\\ell=0}^{n-1}(-1)^{\\ell}\\binom{n-1}{\\ell} h(x+n-1-\\ell)=0 \\\\\n\\sum_{\\ell=0}^{n-1}(-1)^{\\ell}\\binom{n-1}{\\ell}(g(x+n-\\ell)-g(x+n-1-\\ell))=0 \\\\\n\\binom{n-1}{0} g(x+n)+\\sum_{\\ell=1}^{n-1}(-1)^{\\ell}\\left(\\binom{n-1}{\\ell-1}+\\right. \\\\\n\\left.\\binom{n-1}{\\ell}\\right) g(x+n-\\ell)-(-1)^{n-1}\\binom{n-1}{n-1} g(x)=0 \\\\\n\\sum_{\\ell=0}^{n}(-1)^{\\ell}\\binom{n}{\\ell} g(x+n-\\ell)=0\n\\end{gathered}\n$$\n\nLemma 3. If $n$ has at least two distinct prime divisors then the greatest common divisor of $\\binom{n}{1},\\binom{n}{2}, \\ldots,\\binom{n}{n-1}$ is 1 .\n\nProof. Suppose to the contrary that $p$ is a common prime divisor of $\\binom{n}{1}, \\ldots,\\binom{n}{n-1}$. In particular, $p \\left\\lvert\\,\\binom{ n}{1}=n\\right.$. Let $a$ be the exponent of $p$ in the prime factorization of $n$. Since $n$ has at least two prime divisors, we have $12$ cases, one comes up with the idea of spiral models for the true value $M=2 N-1$. The models presented are for odd $N$ (since 2011 is odd); similar models exist for even $N$ (but are less symmetric). The color red (preceded by green) marks the moment where the largest difference $M=2 N-1$ first appears.\n[1] Also see Sloane's Online Encyclopædia of Integer Sequences (OEIS), sequence A001222 for $\\Omega$ and sequence A008836 for $\\lambda$, which is called Liouville's function. Its summatory function $\\sum_{d \\mid n} \\lambda(d)$ is equal to 1 for a perfect square $n$, and 0 otherwise.\nPólya conjectured that $L(n):=\\sum_{k=1}^{n} \\lambda(k) \\leq 0$ for all $n$, but this has been proven false by Minoru Tanaka, who in 1980 computed that for $n=906,151,257$ its value was positive. Turán showed that if $T(n):=\\sum_{k=1}^{n} \\frac{\\lambda(k)}{k} \\geq 0$ for all large enough $n$, that\n\n| 7 | 2 | 6 |\n| :--- | :--- | :--- |\n| 3 | 1 | 5 |\n| 8 | 4 | 9 |\n\nTABLE I: The spiral $3 \\times 3$ array.\n\n| 16 | 14 | 7 | 13 | 16 |\n| :---: | :---: | :---: | :---: | :---: |\n| 12 | 8 | 2 | 6 | 12 |\n| 9 | 3 | 1 | 5 | 9 |\n| 15 | 10 | 4 | 11 | 15 |\n| 16 | 14 | 7 | 13 | |\n| | | | | |\n\nTABLE II: The spiral $4 \\times 4$ array.\n\n| 23 | 16 | 7 | 15 | 22 |\n| :---: | :---: | :---: | :---: | :---: |\n| 17 | 8 | 2 | 6 | 14 |\n| 9 | 3 | 1 | 5 | 13 |\n| 18 | 10 | 4 | 12 | 21 |\n| 24 | 19 | 11 | 20 | 25 |\n\nTABLE III: The spiral $5 \\times 5$ array.\n\n| 47 | 40 | 29 | 16 | 28 | 39 | 46 |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| 41 | 30 | 17 | 7 | 15 | 27 | 38 |\n| 31 | 18 | 8 | 2 | 6 | 14 | 26 |\n| 19 | 9 | 3 | 1 | 5 | 13 | 25 |\n| 32 | 20 | 10 | 4 | 12 | 24 | 37 |\n| 42 | 33 | 21 | 11 | 23 | 36 | 45 |\n| 48 | 43 | 34 | 22 | 35 | 44 | 49 |\n\nTABLE IV: The spiral $7 \\times 7$ array.\n\n| $(2 \\mathrm{n}+1)^{2}-2$ | $(2 \\mathrm{n}+1)^{2}-9$ | $\\ldots$ | | $\\mathrm{n}(2 \\mathrm{n}-1)+1$ | | $\\ldots$ | $(2 \\mathrm{n}+1)^{2}-10$ | $(2 \\mathrm{n}+1)^{2}-3$ |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| $(2 \\mathrm{n}+1)^{2}-8$ | | $\\ldots$ | $\\mathrm{n}(2 \\mathrm{n}-1)+2$ | | $\\mathrm{n}(2 \\mathrm{n}-1)$ | $\\ldots$ | | $(2 \\mathrm{n}+1)^{2}-11$ |\n| $\\vdots$ | $\\vdots$ | $\\ddots$ | $\\vdots$ | $\\vdots$ | $\\vdots$ | $\\ddots$ | $2 \\mathrm{n}(\\mathrm{n}+1)+3$ | $\\vdots$ |\n| | $2 \\mathrm{n}^{2}$ | $\\ldots$ | 8 | 2 | 6 | $\\ldots$ | $2 \\mathrm{n}(\\mathrm{n}-1)+2$ | $2 \\mathrm{n}(\\mathrm{n}+1)+2$ |\n| $2 \\mathrm{n}^{2}+1$ | | $\\ldots$ | 3 | 1 | 5 | $\\ldots$ | | $2 \\mathrm{n}(\\mathrm{n}+1)+1$ |\n| | $2 \\mathrm{n}^{2}+2$ | $\\ldots$ | 10 | 4 | 12 | $\\ldots$ | $2 \\mathrm{n}(\\mathrm{n}+1)$ | |\n| | $\\vdots$ | $\\ddots$ | $\\vdots$ | $\\vdots$ | $\\vdots$ | $\\ddots$ | $\\vdots$ | $\\vdots$ |\n| $\\vdots$ | $\\vdots$ | $\\ldots$ | $\\mathrm{n}(2 \\mathrm{n}+1)$ | | $\\mathrm{n}(2+1)+2$ | $\\ldots$ | | $(2 \\mathrm{n}+1)^{2}-4$ |\n| $(2 \\mathrm{n}+1)^{2}-7$ | | $\\ldots$ | $\\mathrm{n}(2 \\mathrm{n}+1)+1$ | | $\\ldots$ | $(2 \\mathrm{n}+1)^{2}-5$ | $(2 \\mathrm{n}+1)^{2}$ | |\n| $(2 \\mathrm{n}+1)^{2}-1$ | $(2 \\mathrm{n}+1)^{2}-6$ | $\\ldots$ | | | | | | |\n\nTABLE V: The general spiral $N \\times N$ array for $N=2 n+1 \\geq 5$.\nwill imply Riemann's Hypothesis; however, Haselgrove proved it is negative infinitely often.\n[2] Using the same procedure for point i), we only need notice that $\\lambda\\left((2 k+1)^{2}\\right)=\\lambda\\left((2 k)^{2}\\right)=1$, and these terms again are of different parity of their position.\n[3] Is this true for subsequences of all lengths $\\ell=3,4$, etc.? If no, up to which length $\\ell \\geq 2$ ?\n[4] Cells with coordinates $(x, y)$ and $\\left(x^{\\prime}, y^{\\prime}\\right)$ are considered to be neighbours if $x=x^{\\prime}$ and $y-y^{\\prime} \\equiv \\pm 1(\\bmod 2011)$, or if $y=y^{\\prime}$ and $x-x^{\\prime} \\equiv \\pm 1(\\bmod 2011)$.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2012-Solutions2012-1.jsonl b/RMM/segmented/en-2012-Solutions2012-1.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f220ea910b0b10d2d0c9680fb09c869e4b7039c2 --- /dev/null +++ b/RMM/segmented/en-2012-Solutions2012-1.jsonl @@ -0,0 +1,7 @@ +{"year": "2012", "problem_label": "1", "tier": 1, "problem": "Given a finite group of boys and girls, a covering set of boys is a set of boys such that every girl knows at least one boy in that set; and a covering set of girls is a set of girls such that every boy knows at least one girl in that set. Prove that the number of covering sets of boys and the number of covering sets of girls have the same parity. (Acquaintance is assumed to be mutual.)", "solution": ". A set $X$ of boys is separated from a set $Y$ of girls if no boy in $X$ is an acquaintance of a girl in $Y$. Similarly, a set $Y$ of girls is separated from a set $X$ of boys if no girl in $Y$ is an acquaintance of a boy in $X$. Since acquaintance is assumed mutual, separation is symmetric: $X$ is separated from $Y$ if and only if $Y$ is separated from $X$.\n\nThis enables doubly counting the number $n$ of ordered pairs $(X, Y)$ of separated sets $X$, of boys, and $Y$, of girls, and thereby showing that it is congruent modulo 2 to both numbers in question.\n\nGiven a set $X$ of boys, let $Y_{X}$ be the largest set of girls separated from $X$, to deduce that $X$ is separated from exactly $2^{\\left|Y_{X}\\right|}$ sets of girls. Consequently, $n=\\sum_{X} 2^{\\left|Y_{X}\\right|}$ which is clearly congruent modulo 2 to the number of covering sets of boys.\n\nMutatis mutandis, the argument applies to show $n$ congruent modulo 2 to the number of covering sets of girls.\n\nRemark. The argument in this solution translates verbatim in terms of the adjancency matrix of the associated acquaintance graph.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution 1"} +{"year": "2012", "problem_label": "1", "tier": 1, "problem": "Given a finite group of boys and girls, a covering set of boys is a set of boys such that every girl knows at least one boy in that set; and a covering set of girls is a set of girls such that every boy knows at least one girl in that set. Prove that the number of covering sets of boys and the number of covering sets of girls have the same parity. (Acquaintance is assumed to be mutual.)", "solution": ". (Ilya Bogdanov) Let $B$ denote the set of boys, let $G$ denote the set of girls and induct on $|B|+|G|$. The assertion is vacuously true if either set is empty.\n\nNext, fix a boy $b$, let $B^{\\prime}=B \\backslash\\{b\\}$, and let $G^{\\prime}$ be the set of all girls who do not know $b$. Notice that:\n(1) a covering set of boys in $B^{\\prime} \\cup G$ is still one in $B \\cup G$; and\n(2) a covering set of boys in $B \\cup G$ which is no longer one in $B^{\\prime} \\cup G$ is precisely the union of a covering set of boys in $B^{\\prime} \\cup G^{\\prime}$ and $\\{b\\}$,\nso the number of covering sets of boys in $B \\cup G$ is the sum of those in $B^{\\prime} \\cup G$ and $B^{\\prime} \\cup G^{\\prime}$. On the other hand,\n$\\left(1^{\\prime}\\right)$ a covering set of girls in $B \\cup G$ is still one in $B^{\\prime} \\cup G$; and\n$\\left(2^{\\prime}\\right)$ a covering set of girls in $B^{\\prime} \\cup G$ which is no longer one in $B \\cup G$ is precisely a covering set of girls in $B^{\\prime} \\cup G^{\\prime}$,\nso the number of covering sets of girls in $B \\cup G$ is the difference of those in $B^{\\prime} \\cup G$ and $B^{\\prime} \\cup G^{\\prime}$. Since the assertion is true for both $B^{\\prime} \\cup G$ and $B^{\\prime} \\cup G^{\\prime}$ by the induction hypothesis, the conclusion follows.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution 2"} +{"year": "2012", "problem_label": "1", "tier": 1, "problem": "Given a finite group of boys and girls, a covering set of boys is a set of boys such that every girl knows at least one boy in that set; and a covering set of girls is a set of girls such that every boy knows at least one girl in that set. Prove that the number of covering sets of boys and the number of covering sets of girls have the same parity. (Acquaintance is assumed to be mutual.)", "solution": ". (Géza Kós) Let $B$ and $G$ denote the sets of boys and girls, respectively. For every pair $(b, g) \\in B \\times G$, write $f(b, g)=0$ if they know each other, and $f(b, g)=1$ otherwise. A set $X$ of boys is covering if and only if\n\n$$\n\\prod_{g \\in G}\\left(1-\\prod_{b \\in X} f(b, g)\\right)=1\n$$\n\nHence the number of covering sets of boys is\n\n$$\n\\begin{aligned}\n\\sum_{X \\subseteq B} \\prod_{g \\in G}\\left(1-\\prod_{b \\in X} f(b, g)\\right) & \\equiv \\sum_{X \\subseteq B} \\prod_{g \\in G}\\left(1+\\prod_{b \\in X} f(b, g)\\right) \\\\\n& =\\sum_{X \\subseteq B} \\sum_{Y \\subseteq G} \\prod_{b \\in X} \\prod_{g \\in Y} f(b, g) \\quad(\\bmod 2)\n\\end{aligned}\n$$\n\nBy symmetry, the same is valid for the number of covering sets of girls.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution 3"} +{"year": "2012", "problem_label": "2", "tier": 1, "problem": "Given a triangle $A B C$, let $D, E$, and $F$ respectively denote the midpoints of the sides $B C, C A$, and $A B$. The circle $B C F$ and the line $B E$ meet again at $P$, and the circle $A B E$ and the line $A D$ meet again at $Q$. Finally, the lines $D P$ and $F Q$ meet at $R$. Prove that the centroid $G$ of the triangle $A B C$ lies on the circle $P Q R$.", "solution": ". We will use the following lemma.\nLemma. Let $A D$ be a median in triangle $A B C$. Then $\\cot \\angle B A D=2 \\cot A+\\cot B$ and $\\cot \\angle A D C=\\frac{1}{2}(\\cot B-\\cot C)$.\n\nProof. Let $C C_{1}$ and $D D_{1}$ be the perpendiculars from $C$ and $D$ to $A B$. Using the signed lengths we write\n\n$$\n\\cot B A D=\\frac{A D_{1}}{D D_{1}}=\\frac{\\left(A C_{1}+A B\\right) / 2}{C C_{1} / 2}=\\frac{C C_{1} \\cot A+C C_{1}(\\cot A+\\cot B)}{C C_{1}}=2 \\cot A+\\cot B\n$$\n\nSimilarly, denoting by $A_{1}$ the projection of $A$ onto $B C$, we get\n\n$$\n\\cot A D C=\\frac{D A_{1}}{A A_{1}}=\\frac{B C / 2-A_{1} C}{A A_{1}}=\\frac{\\left(A A_{1} \\cot B+A A_{1} \\cot C\\right) / 2-A A_{1} \\cot C}{A A_{1}}=\\frac{\\cot B-\\cot C}{2} .\n$$\n\nThe Lemma is proved.\nTurning to the solution, by the Lemma we get\n\n$$\n\\begin{aligned}\n\\cot \\angle B P D & =2 \\cot \\angle B P C+\\cot \\angle P B C=2 \\cot \\angle B F C+\\cot \\angle P B C \\quad(\\text { from circle } B F P C) \\\\\n& =2 \\cdot \\frac{1}{2}(\\cot A-\\cot B)+2 \\cot B+\\cot C=\\cot A+\\cot B+\\cot C\n\\end{aligned}\n$$\n\nSimilarly, $\\cot \\angle G Q F=\\cot A+\\cot B+\\cot C$, so $\\angle G P R=\\angle G Q F$ and $G P R Q$ is cyclic.\nRemark. The angle $\\angle G P R=\\angle G Q F$ is the Brocard angle.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 1"} +{"year": "2012", "problem_label": "2", "tier": 1, "problem": "Given a triangle $A B C$, let $D, E$, and $F$ respectively denote the midpoints of the sides $B C, C A$, and $A B$. The circle $B C F$ and the line $B E$ meet again at $P$, and the circle $A B E$ and the line $A D$ meet again at $Q$. Finally, the lines $D P$ and $F Q$ meet at $R$. Prove that the centroid $G$ of the triangle $A B C$ lies on the circle $P Q R$.", "solution": ". (Ilya Bogdanov and Marian Andronache) We also prove that $\\angle(R P, P G)=\\angle(R Q, Q G)$, or $\\angle(D P, P G)=\\angle(F Q, Q G)$.\n\nLet $S$ be the point on ray $G D$ such that $A G \\cdot G S=C G \\cdot G F$ (so the points $A, S, C, F$ are concyclic). Then $G P \\cdot G E=G P \\cdot \\frac{1}{2} G B=\\frac{1}{2} C G \\cdot G F=\\frac{1}{2} A G \\cdot G S=G D \\cdot G S$, hence the points $E, P, D, S$ are also concyclic, and $\\angle(D P, P G)=\\angle(G S, S E)$. The problem may therefore be rephrased as follows:\nGiven a triangle $A B C$, let $D, E$ and $F$ respectively denote the midpoints of the sides $B C, C A$ and $A B$. The circle $A B E$, respectively, $A C F$, and the line $A D$ meet again at $Q$, respectively, $S$. Prove that $\\angle A Q F=\\angle A S E($ and $E S=F Q)$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_582a7d16cf88812203a4g-3.jpg?height=667&width=840&top_left_y=1931&top_left_x=611)\n\nUpon inversion of pole $A$, the problem reads:\nGiven a triangle $A E^{\\prime} F^{\\prime}$, let the symmedian from $A$ meet the medians from $E^{\\prime}$ and $F^{\\prime}$ at $K=Q^{\\prime}$ and $L=S^{\\prime}$, respectively. Prove that the angles $A E^{\\prime} L$ and $A F^{\\prime} K$ are congruent.\n![](https://cdn.mathpix.com/cropped/2024_11_22_582a7d16cf88812203a4g-4.jpg?height=552&width=606&top_left_y=409&top_left_x=728)\n\nTo prove this, denote $E^{\\prime}=X, F^{\\prime}=Y$. Let the symmedian from $A$ meet the side $X Y$ at $V$ and let the lines $X L$ and $Y K$ meet the sides $A Y$ and $A X$ at $M$ and $N$, respectively. Since the points $K$ and $L$ lie on the medians, we have $V M\\|A X, V N\\| A Y$. Hence $A M V N$ is a parallelogram, the symmedian $A V$ of triangle $A X Y$ supports the median of triangle $A M N$, which implies that the triangles $A M N$ and $A X Y$ are similar. Hence the points $M, N, X, Y$ are concyclic, and $\\angle A X M=\\angle A Y N$, QED.\n\nRemark 1. We know that the points $X, Y, M, N$ are concyclic. Invert back from $A$ and consider the circles $A F Q$ and $A E S$ : the former meets $A C$ again at $M^{\\prime}$ and the latter meets $A B$ again at $N^{\\prime}$. Then the points $E, F, M^{\\prime}, N^{\\prime}$ are concyclic.\n\nRemark 2. The inversion at pole $A$ also allows one to show that $\\angle A Q F$ is the Brocard angle, thus providing one more solution. In our notation, it is equivalent to the fact that the points $Y$, $K$, and $Z$ are collinear, where $Z$ is the Brocard point (so $\\angle Z A X=\\angle Z Y A=\\angle Z X Y$ ). This is valid because the lines $A V, X K$, and $Y Z$ are the radical axes of the following circles: (i) passing through $X$ and tangent to $A Y$ at $A$; (ii) passing through $Y$ and tangent to $A X$ at $A$; and (iii) passing through $X$ and tangent to $A Y$ at $Y$. The point $K$ is the radical center of these three circles.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 2"} +{"year": "2012", "problem_label": "2", "tier": 1, "problem": "Given a triangle $A B C$, let $D, E$, and $F$ respectively denote the midpoints of the sides $B C, C A$, and $A B$. The circle $B C F$ and the line $B E$ meet again at $P$, and the circle $A B E$ and the line $A D$ meet again at $Q$. Finally, the lines $D P$ and $F Q$ meet at $R$. Prove that the centroid $G$ of the triangle $A B C$ lies on the circle $P Q R$.", "solution": ". (Ilya Bogdanov) Again, we will prove that $\\angle(D P, P G)=\\angle(F Q, Q G)$. Mark a point $T$ on the ray $G F$ such that $G F \\cdot G T=G Q \\cdot G D$; then the points $F, Q, D, T$ are concyclic, and $\\angle(F Q, Q G)=\\angle(T G, T D)=\\angle(T C, T D)$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_582a7d16cf88812203a4g-4.jpg?height=601&width=1072&top_left_y=1995&top_left_x=498)\n\nShift the point $P$ by the vector $\\overrightarrow{B D}$ to obtain point $P^{\\prime}$. Then $\\angle(D P, P G)=\\angle\\left(C P^{\\prime}, P^{\\prime} D\\right)$, and we need to prove that $\\angle\\left(C P^{\\prime}, P^{\\prime} D\\right)=\\angle(C T, T D)$. This is precisely the condition that the points $T, D, C, P^{\\prime}$ be concyclic.\n\nDenote $G E=x, G F=y$. Then $G P \\cdot G B=G C \\cdot G F$, so $G P=y^{2} / x$. On the other hand, $G B \\cdot G E=G Q \\cdot G A=2 G Q \\cdot G D=2 G T \\cdot G F$, so $G T=x^{2} / y$. Denote by $K$ the point of intersection of $D P^{\\prime}$ and $C T$; we need to prove that $T K \\cdot K C=D K \\cdot K P^{\\prime}$.\n\nNow, $D P^{\\prime}=B P=B G+G P=2 x+y^{2} / x, C T=C G+G T=2 y+x^{2} / y, D K=B G / 2=x$, $C K=C G / 2=y$. Hence the desired equality reads $x\\left(x+y^{2} / x\\right)=y\\left(y+x^{2} / y\\right)$ which is obvious.\n\nRemark. The points $B, T, E$, and $C$ are concyclic, hence the point $T$ is also of the same kind as $P$ and $Q$.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 3"} +{"year": "2012", "problem_label": "3", "tier": 1, "problem": "Each positive integer number is coloured red or blue. A function $f$ from the set of positive integer numbers into itself has the following two properties:\n(a) if $x \\leq y$, then $f(x) \\leq f(y)$; and\n(b) if $x, y$ and $z$ are all (not necessarily distinct) positive integer numbers of the same colour and $x+y=z$, then $f(x)+f(y)=f(z)$.\n\nProve that there exists a positive number $a$ such that $f(x) \\leq a x$ for all positive integer numbers $x$.", "solution": "For integer $x, y$, by a segment $[x, y]$ we always mean the set of all integers $t$ such that $x \\leq t \\leq y$; the length of this segment is $y-x$.\n\nIf for every two positive integers $x, y$ sharing the same colour we have $f(x) / x=f(y) / y$, then one can choose $a=\\max \\{f(r) / r, f(b) / b\\}$, where $r$ and $b$ are arbitrary red and blue numbers, respectively. So we can assume that there are two red numbers $x, y$ such that $f(x) / x \\neq f(y) / y$.\n\nSet $m=x y$. Then each segment of length $m$ contains a blue number. Indeed, assume that all the numbers on the segment $[k, k+m]$ are red. Then\n\n$$\n\\begin{aligned}\n& f(k+m)=f(k+x y)=f(k+x(y-1))+f(x)=\\cdots=f(k)+y f(x), \\\\\n& f(k+m)=f(k+x y)=f(k+(x-1) y)+f(y)=\\cdots=f(k)+x f(y),\n\\end{aligned}\n$$\n\nso $y f(x)=x f(y)$ - a contradiction. Now we consider two cases.\nCase 1. Assume that there exists a segment $[k, k+m]$ of length $m$ consisting of blue numbers. Define $D=\\max \\{f(k), \\ldots, f(k+m)\\}$. We claim that $f(z)-f(z-1) \\leq D$, whatever $z>k$, and the conclusion follows. Consider the largest blue number $b_{1}$ not exceeding $z$, so $z-b_{1} \\leq m$, and some blue number $b_{2}$ on the segment $\\left[b_{1}+k, b_{1}+k+m\\right]$, so $b_{2}>z$. Write $f\\left(b_{2}\\right)=f\\left(b_{1}\\right)+f\\left(b_{2}-b_{1}\\right) \\leq f\\left(b_{1}\\right)+D$ to deduce that $f(z+1)-f(z) \\leq f\\left(b_{2}\\right)-f\\left(b_{1}\\right) \\leq D$, as claimed.\n\nCase 2. Each segment of length $m$ contains numbers of both colours. Fix any red number $R \\geq 2 m$ such that $R+1$ is blue and set $D=\\max \\{f(R), f(R+1)\\}$. Now we claim that $f(z+1)-f(z) \\leq D$, whatever $z>2 m$. Consider the largest red number $r$ not exceeding $z$ and the largest blue number $b$ smaller than $r$; then $0z$. If $t$ is blue, then $f(t)=f(b)+f(R+1) \\leq f(b)+D$, and $f(z+1)-f(z) \\leq f(t)-f(b) \\leq D$. Otherwise, $f(t)=f(b+1)+f(R) \\leq f(b+1)+D$, hence $f(z+1)-f(z) \\leq f(t)-f(b+1) \\leq D$, as claimed.", "problem_match": "\nProblem 3.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2012-Solutions2012-2.jsonl b/RMM/segmented/en-2012-Solutions2012-2.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..1af054e1a9a89269411d446b8421a25d3e3a8d0a --- /dev/null +++ b/RMM/segmented/en-2012-Solutions2012-2.jsonl @@ -0,0 +1,5 @@ +{"year": "2012", "problem_label": "4", "tier": 1, "problem": "Prove that there are infinitely many positive integer numbers $n$ such that $2^{2^{n}+1}+1$ be divisible by $n$, but $2^{n}+1$ be not.", "solution": ". Throughout the solution $n$ stands for a positive integer. By Euler's theorem, $\\left(2^{3^{n}}+1\\right)\\left(2^{3^{n}}-1\\right)=2^{2 \\cdot 3^{n}}-1 \\equiv 0\\left(\\bmod 3^{n+1}\\right)$. Since $2^{3^{n}}-1 \\equiv 1(\\bmod 3)$, it follows that $2^{3^{n}}+1$ is divisible by $3^{n+1}$.\n\nThe number $\\left(2^{3^{n+1}}+1\\right) /\\left(2^{3^{n}}+1\\right)=2^{2 \\cdot 3^{n}}-2^{3^{n}}+1$ is greater than 3 and congruent to 3 modulo 9 , so it has a prime factor $p_{n}>3$ that does not divide $2^{3^{n}}+1$ (otherwise, $2^{3^{n}} \\equiv-1$ (mod $\\left.p_{n}\\right)$, so $2^{2 \\cdot 3^{n}}-2^{3^{n}}+1 \\equiv 3\\left(\\bmod p_{n}\\right)$, contradicting the fact that $p_{n}$ is a factor greater than 3 of $2^{2 \\cdot 3^{n}}-2^{3^{n}}+1$ ).\n\nWe now show that $a_{n}=3^{n} p_{n}$ satisfies the conditions in the statement. Since $2^{a_{n}}+1 \\equiv$ $2^{3^{n}}+1 \\not \\equiv 0\\left(\\bmod p_{n}\\right)$, it follows that $a_{n}$ does not divide $2^{a_{n}}+1$.\n\nOn the other hand, $3^{n+1}$ divides $2^{3^{n}}+1$ which in turn divides $2^{a_{n}}+1$, so $2^{3^{n+1}}+1$ divides $2^{2^{a_{n}}+1}+1$. Finally, both $3^{n}$ and $p_{n}$ divide $2^{3^{n+1}}+1$, so $a_{n}$ divides $2^{2^{a_{n}}+1}+1$.\n\nAs $n$ runs through the positive integers, the $a_{n}$ are clearly pairwise distinct and the conclusion follows.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 1"} +{"year": "2012", "problem_label": "4", "tier": 1, "problem": "Prove that there are infinitely many positive integer numbers $n$ such that $2^{2^{n}+1}+1$ be divisible by $n$, but $2^{n}+1$ be not.", "solution": ". (Géza Kós) We show that the numbers $a_{n}=\\left(2^{3^{n}}+1\\right) / 9, n \\geq 2$, satisfy the conditions in the statement. To this end, recall the following well-known facts:\n(1) If $N$ is an odd positive integer, then $\\nu_{3}\\left(2^{N}+1\\right)=\\nu_{3}(N)+1$, where $\\nu_{3}(a)$ is the exponent of 3 in the decomposition of the integer $a$ into prime factors; and\n(2) If $M$ and $N$ are odd positive integers, then $\\left(2^{M}+1,2^{N}+1\\right)=2^{(M, N)}+1$, where $(a, b)$ is the greatest common divisor of the integers $a$ and $b$.\nBy (1), $a_{n}=3^{n-1} m$, where $m$ is an odd positive integer not divisible by 3 , and by (2),\n\n$$\n\\left(m, 2^{a_{n}}+1\\right) \\left\\lvert\\,\\left(2^{3^{n}}+1,2^{a_{n}}+1\\right)=2^{\\left(3^{n}, a_{n}\\right)}+1=2^{3^{n-1}}+1<\\frac{2^{3^{n}}+1}{3^{n+1}}=m\\right.\n$$\n\nso $m$ cannot divide $2^{a_{n}}+1$.\nOn the other hand, $3^{n-1} \\mid 2^{2^{a_{n}}+1}+1$, for $\\nu_{3}\\left(2^{2^{a_{n}}+1}+1\\right)>\\nu_{3}\\left(2^{a_{n}}+1\\right)>\\nu_{3}\\left(a_{n}\\right)=n-1$, and $m \\mid 2^{2^{a_{n}}+1}+1$, for $3^{n-1} \\mid a_{n}$, so $3^{n} \\mid 2^{a_{n}}+1$ whence $m\\left|2^{3^{n}}+1\\right| 2^{2^{a_{n}}+1}+1$. Since $3^{n-1}$ and $m$ are coprime, the conclusion follows.\n\nRemarks. There are several variations of these solutions. For instance, let $b_{1}=3$ and $b_{n+1}=$ $2^{b_{n}}+1, n \\geq 1$, and notice that $b_{n}$ divides $b_{n+1}$. It can be shown that there are infinitely many indices $n$ such that some prime factor $p_{n}$ of $b_{n+1}$ does not divide $b_{n}$. One checks that for these $n$ 's the $a_{n}=p_{n} b_{n-1}$ satisfy the required conditions.\n\nFinally, the numbers $3^{n} \\cdot 571, n \\geq 2$, form yet another infinite set of positive integers fulfilling the conditions in the statement - the details are omitted.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 2"} +{"year": "2012", "problem_label": "4", "tier": 1, "problem": "Prove that there are infinitely many positive integer numbers $n$ such that $2^{2^{n}+1}+1$ be divisible by $n$, but $2^{n}+1$ be not.", "solution": ". (Dušan Djukić) Assume that $n$ satisfies the conditions of the problem. We claim that the number $N=2^{n}+1>n$ also satisfies these conditions.\n\nFirstly, since $n \\nmid N$, the fact (2) from Solution 2 allows to conclude that $2^{n}+1 \\nmid 2^{N}+1$, or $N \\nmid 2^{N}+1$. Next, since $n \\mid 2^{2^{n}+1}+1=2^{N}+1$, we obtain from the same fact that $N=2^{n}+1 \\mid 2^{2^{N}+1}+1$, thus confirming our claim.\n\nHence, it suffices to provide only one example, hence obtaining an infinite series by the claim. For instance, one may easily check that the number $n=57$ fits.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 3"} +{"year": "2012", "problem_label": "5", "tier": 1, "problem": "Given a positive integer number $n \\geq 3$, colour each cell of an $n \\times n$ square array one of $\\left[(n+2)^{2} / 3\\right]$ colours, each colour being used at least once. Prove that the cells of some $1 \\times 3$ or $3 \\times 1$ rectangular subarray have pairwise distinct colours.", "solution": "For more convenience, say that a subarray of the $n \\times n$ square array bears a colour if at least two of its cells share that colour.\n\nWe shall prove that the number of $1 \\times 3$ and $3 \\times 1$ rectangular subarrays, which is $2 n(n-2)$, exceeds the number of such subarrays, each of which bears some colour. The key ingredient is the estimate in the lemma below.\n\nLemma. If a colour is used exactly $p$ times, then the number of $1 \\times 3$ and $3 \\times 1$ rectangular subarrays bearing that colour does not exceed $3(p-1)$.\n\nAssume the lemma for the moment, let $N=\\left[(n+2)^{2} / 3\\right]$ and let $n_{i}$ be the number of cells coloured the $i$ th colour, $i=1, \\ldots, N$, to deduce that the number of $1 \\times 3$ and $3 \\times 1$ rectangular subarrays, each of which bears some colour, is at most\n\n$$\n\\sum_{i=1}^{N} 3\\left(n_{i}-1\\right)=3 \\sum_{i=1}^{N} n_{i}-3 N=3 n^{2}-3 N<3 n^{2}-\\left(n^{2}+4 n\\right)=2 n(n-2)\n$$\n\nand thereby conclude the proof.\nBack to the lemma, the assertion is clear if $p=1$, so let $p>1$.\nWe begin by showing that if a row contains exactly $q$ cells coloured $C$, then the number $r$ of $3 \\times 1$ rectangular subarrays bearing $C$ does not exceed $3 q / 2-1$; of course, a similar estimate holds for a column. To this end, notice first that the case $q=1$ is trivial, so we assume that $q>1$. Consider the incidence of a cell $c$ coloured $C$ and a $3 \\times 1$ rectangular subarray $R$ bearing $C$ :\n\n$$\n\\langle c, R\\rangle= \\begin{cases}1 & \\text { if } c \\subset R \\\\ 0 & \\text { otherwise. }\\end{cases}\n$$\n\nNotice that, given $R, \\sum_{c}\\langle c, R\\rangle \\geq 2$, and, given $c, \\sum_{R}\\langle c, R\\rangle \\leq 3$; moreover, if $c$ is the leftmost or rightmost cell, then $\\sum_{R}\\langle c, R\\rangle \\leq 2$. Consequently,\n\n$$\n2 r \\leq \\sum_{R} \\sum_{c}\\langle c, R\\rangle=\\sum_{c} \\sum_{R}\\langle c, R\\rangle \\leq 2+3(q-2)+2=3 q-2\n$$\n\nwhence the conclusion.\nFinally, let the $p$ cells coloured $C$ lie on $k$ rows and $\\ell$ columns and notice that $k+\\ell \\geq 3$, for $p>1$. By the preceding, the total number of $3 \\times 1$ rectangular subarrays bearing $C$ does not exceed $3 p / 2-k$, and the total number of $1 \\times 3$ rectangular subarrays bearing $C$ does not exceed $3 p / 2-\\ell$, so the total number of $1 \\times 3$ and $3 \\times 1$ rectangular subarrays bearing $C$ does not exceed $(3 p / 2-k)+(3 p / 2-\\ell)=3 p-(k+\\ell) \\leq 3 p-3=3(p-1)$. This completes the proof.\n\nRemarks. In terms of the total number of cells, the number $N=\\left[(n+2)^{2} / 3\\right]$ of colours is asymptotically close to the minimum number of colours required for some $1 \\times 3$ or $3 \\times 1$ rectangular subarray to have all cells of pairwise distinct colours, whatever the colouring. To see this, colour the cells with the coordinates $(i, j)$, where $i+j \\equiv 0(\\bmod 3)$ and $i, j \\in\\{0,1, \\ldots, n-1\\}$, one colour each, and use one additional colour $C$ to colour the remaining cells. Then each $1 \\times 3$ and each $3 \\times 1$ rectangular subarray has exactly two cells coloured $C$, and the number of colours is $\\left\\lceil n^{2} / 3\\right\\rceil+1$ if $n \\equiv 1$ or $2(\\bmod 3)$, and $\\left\\lceil n^{2} / 3\\right\\rceil$ if $n \\equiv 0(\\bmod 3)$. Consequently, the minimum number of colours is $n^{2} / 3+O(n)$.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution."} +{"year": "2012", "problem_label": "6", "tier": 1, "problem": "Let $A B C$ be a triangle and let $I$ and $O$ respectively denote its incentre and circumcentre. Let $\\omega_{A}$ be the circle through $B$ and $C$ and tangent to the incircle of the triangle $A B C$; the circles $\\omega_{B}$ and $\\omega_{C}$ are defined similarly. The circles $\\omega_{B}$ and $\\omega_{C}$ through $A$ meet again at $A^{\\prime}$; the points $B^{\\prime}$ and $C^{\\prime}$ are defined similarly. Prove that the lines $A A^{\\prime}, B B^{\\prime}$ and $C C^{\\prime}$ are concurrent at a point on the line $I O$.", "solution": "Let $\\gamma$ be the incircle of the triangle $A B C$ and let $A_{1}, B_{1}, C_{1}$ be its contact points with the sides $B C, C A, A B$, respectively. Let further $X_{A}$ be the point of contact of the circles $\\gamma$ and $\\omega_{A}$. The latter circle is the image of the former under a homothety centred at $X_{A}$. This homothety sends $A_{1}$ to a point $M_{A}$ on $\\omega_{A}$ such that the tangent to $\\omega_{A}$ at $M_{A}$ is parallel to $B C$. Consequently, $M_{A}$ is the midpoint of the arc $B C$ of $\\omega_{A}$ not containing $X_{A}$. It follows that the angles $M_{A} X_{A} B$ and $M_{A} B C$ are congruent, so the triangles $M_{A} B A_{1}$ and $M_{A} X_{A} B$ are similar: $M_{A} B / M_{A} X_{A}=M_{A} A_{1} / M_{A} B$. Rewrite the latter $M_{A} B^{2}=M_{A} A_{1} \\cdot M_{A} X_{A}$ to deduce that $M_{A}$ lies on the radical axis $\\ell_{B}$ of $B$ and $\\gamma$. Similarly, $M_{A}$ lies on the radical axis $\\ell_{C}$ of $C$ and $\\gamma$.\n\nDefine the points $X_{B}, X_{C}, M_{B}, M_{C}$ and the line $\\ell_{A}$ in a similar way and notice that the lines $\\ell_{A}, \\ell_{B}, \\ell_{C}$ support the sides of the triangle $M_{A} M_{B} M_{C}$. The lines $\\ell_{A}$ and $B_{1} C_{1}$ are both perpendicular to $A I$, so they are parallel. Similarly, the lines $\\ell_{B}$ and $\\ell_{C}$ are parallel to $C_{1} A_{1}$ and $A_{1} B_{1}$, respectively. Consequently, the triangle $M_{A} M_{B} M_{C}$ is the image of the triangle $A_{1} B_{1} C_{1}$ under a homothety $\\Theta$. Let $K$ be the centre of $\\Theta$ and let $k=M_{A} K / A_{1} K=M_{B} K / B_{1} K=$ $M_{C} K / C_{1} K$ be the similitude ratio. Notice that the lines $M_{A} A_{1}, M_{B} B_{1}$ and $M_{C} C_{1}$ are concurrent at $K$.\n\nSince the points $A_{1}, B_{1}, X_{A}, X_{B}$ are concyclic, $A_{1} K \\cdot K X_{A}=B_{1} K \\cdot K X_{B}$. Multiply both sides by $k$ to get $M_{A} K \\cdot K X_{A}=M_{B} K \\cdot K X_{B}$ and deduce thereby that $K$ lies on the radical axis $C C^{\\prime}$ of $\\omega_{A}$ and $\\omega_{B}$. Similarly, both lines $A A^{\\prime}$ and $B B^{\\prime}$ pass through $K$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_e254371677eb1894ac24g-3.jpg?height=895&width=920&top_left_y=1414&top_left_x=568)\n\nFinally, consider the image $O^{\\prime}$ of $I$ under $\\Theta$. It lies on the line through $M_{A}$ parallel to $A_{1} I$ (and hence perpendicular to $B C$ ); since $M_{A}$ is the midpoint of the $\\operatorname{arc} B C$, this line must be $M_{A} O$. Similarly, $O^{\\prime}$ lies on the line $M_{B} O$, so $O^{\\prime}=O$. Consequently, the points $I, K$ and $O$ are collinear.\n\nRemark 1. Many steps in this solution allow different reasonings. For instance, one may\nsee that the lines $A_{1} X_{A}$ and $B_{1} X_{B}$ are concurrent at point $K$ on the radical axis $C C^{\\prime}$ of the circles $\\omega_{A}$ and $\\omega_{B}$ by applying Newton's theorem to the quadrilateral $X_{A} X_{B} A_{1} B_{1}$ (since the common tangents at $X_{A}$ and $X_{B}$ intersect on $C C^{\\prime}$ ). Then one can conclude that $K A_{1} / K B_{1}=$ $K M_{A} / K M_{B}$, thus obtaining that the triangles $M_{A} M_{B} M_{C}$ and $A_{1} B_{1} C_{1}$ are homothetical at $K$ (and therefore $K$ is the radical center of $\\omega_{A}, \\omega_{B}$, and $\\omega_{C}$ ). Finally, considering the inversion with the pole $K$ and the power equal to $K X_{1} \\cdot K M_{A}$ followed by the reflection at $P$ we see that the circles $\\omega_{A}, \\omega_{B}$, and $\\omega_{C}$ are invariant under this transform; next, the image of $\\gamma$ is the circumcircle of $M_{A} M_{B} M_{C}$ and it is tangent to all the circles $\\omega_{A}, \\omega_{B}$, and $\\omega_{C}$, hence its center is $O$, and thus $O, I$, and $K$ are collinear.\n\nRemark 2. Here is an outline of an alternative approach to the first part of the solution. Let $J_{A}$ be the excentre of the triangle $A B C$ opposite $A$. The line $J_{A} A_{1}$ meets $\\gamma$ again at $Y_{A}$; let $Z_{A}$ and $N_{A}$ be the midpoints of the segments $A_{1} Y_{A}$ and $J_{A} A_{1}$, respectively. Since the segment $I J_{A}$ is a diameter in the circle $B C Z_{A}$, it follows that $B A_{1} \\cdot C A_{1}=Z_{A} A_{1} \\cdot J_{A} A_{1}$, so $B A_{1} \\cdot C A_{1}=N_{A} A_{1} \\cdot Y_{A} A_{1}$. Consequently, the points $B, C, N_{A}$ and $Y_{A}$ lie on some circle $\\omega_{A}^{\\prime}$.\n\nIt is well known that $N_{A}$ lies on the perpendicular bisector of the segment $B C$, so the tangents to $\\omega_{A}^{\\prime}$ and $\\gamma$ at $N_{A}$ and $A_{1}$ are parallel. It follows that the tangents to these circles at $Y_{A}$ coincide, so $\\omega_{A}^{\\prime}$ is in fact $\\omega_{A}$, whence $X_{A}=Y_{A}$ and $M_{A}=N_{A}$. It is also well known that the midpoint $S_{A}$ of the segment $I J_{A}$ lies both on the circumcircle $A B C$ and on the perpendicular bisector of $B C$. Since $S_{A} M_{A}$ is a midline in the triangle $A_{1} I J_{A}$, it follows that $S_{A} M_{A}=r / 2$, where $r$ is the radius of $\\gamma$ (the inradius of the triangle $A B C$ ). Consequently, each of the points $M_{A}, M_{B}$ and $M_{C}$ is at distance $R+r / 2$ from $O$ (here $R$ is the circumradius). Now proceed as above.\n![](https://cdn.mathpix.com/cropped/2024_11_22_e254371677eb1894ac24g-4.jpg?height=1038&width=915&top_left_y=1320&top_left_x=573)", "problem_match": "\nProblem 6.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2013-Solutions2013-1.jsonl b/RMM/segmented/en-2013-Solutions2013-1.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d89fcd5a453a6ecd852380560d9f6e2da1a01c21 --- /dev/null +++ b/RMM/segmented/en-2013-Solutions2013-1.jsonl @@ -0,0 +1,5 @@ +{"year": "2013", "problem_label": "1", "tier": 1, "problem": "For a positive integer $a$, define a sequence of integers $x_{1}, x_{2}, \\ldots$ by letting $x_{1}=a$ and $x_{n+1}=2 x_{n}+1$ for $n \\geq 1$. Let $y_{n}=2^{x_{n}}-1$. Determine the largest possible $k$ such that, for some positive integer $a$, the numbers $y_{1}, \\ldots, y_{k}$ are all prime.\n(Russia) Valery Senderov", "solution": "The largest such is $k=2$. Notice first that if $y_{i}$ is prime, then $x_{i}$ is prime as well. Actually, if $x_{i}=1$ then $y_{i}=1$ which is not prime, and if $x_{i}=m n$ for integer $m, n>1$ then $2^{m}-1 \\mid 2^{x_{i}}-1=y_{i}$, so $y_{i}$ is composite. In particular, if $y_{1}, y_{2}, \\ldots, y_{k}$ are primes for some $k \\geq 1$ then $a=x_{1}$ is also prime.\n\nNow we claim that for every odd prime $a$ at least one of the numbers $y_{1}, y_{2}, y_{3}$ is composite (and thus $k<3$ ). Assume, to the contrary, that $y_{1}, y_{2}$, and $y_{3}$ are primes; then $x_{1}, x_{2}, x_{3}$ are primes as well. Since $x_{1} \\geq 3$ is odd, we have $x_{2}>3$ and $x_{2} \\equiv 3(\\bmod 4)$; consequently, $x_{3} \\equiv 7$ $(\\bmod 8)$. This implies that 2 is a quadratic residue modulo $p=x_{3}$, so $2 \\equiv s^{2}(\\bmod p)$ for some integer $s$, and hence $2^{x_{2}}=2^{(p-1) / 2} \\equiv s^{p-1} \\equiv 1(\\bmod p)$. This means that $p \\mid y_{2}$, thus $2^{x_{2}}-1=x_{3}=2 x_{2}+1$. But it is easy to show that $2^{t}-1>2 t+1$ for all integer $t>3$. A contradiction.\n\nFinally, if $a=2$, then the numbers $y_{1}=3$ and $y_{2}=31$ are primes, while $y_{3}=2^{11}-1$ is divisible by 23 ; in this case we may choose $k=2$ but not $k=3$.\n\nRemark. The fact that $23 \\mid 2^{11}-1$ can be shown along the lines in the solution, since 2 is a quadratic residue modulo $x_{4}=23$.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution."} +{"year": "2013", "problem_label": "2", "tier": 1, "problem": "Does there exist a pair $(g, h)$ of functions $g, h: \\mathbb{R} \\rightarrow \\mathbb{R}$ such that the only function $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying $f(g(x))=g(f(x))$ and $f(h(x))=h(f(x))$ for all $x \\in \\mathbb{R}$ is the identity function $f(x) \\equiv x$ ?\n(United Kingdom) Alexander Betts", "solution": ". Such a tester pair exists. We may biject $\\mathbb{R}$ with the closed unit interval, so it suffices to find a tester pair for that instead. We give an explicit example: take some positive real numbers $\\alpha, \\beta$ (which we will specify further later). Take\n\n$$\ng(x)=\\max (x-\\alpha, 0) \\quad \\text { and } \\quad h(x)=\\min (x+\\beta, 1) .\n$$\n\nSay a set $S \\subseteq[0,1]$ is invariant if $f(S) \\subseteq S$ for all functions $f$ commuting with both $g$ and $h$. Note that intersections and unions of invariant sets are invariant. Preimages of invariant sets under $g$ and $h$ are also invariant; indeed, if $S$ is invariant and, say, $T=g^{-1}(S)$, then $g(f(T))=$ $f(g(T)) \\subseteq f(S) \\subseteq S$, thus $f(T) \\subseteq T$.\n\nWe claim that (if we choose $\\alpha+\\beta<1$ ) the intervals $[0, n \\alpha-m \\beta]$ are invariant where $n$ and $m$ are nonnegative integers with $0 \\leq n \\alpha-m \\beta \\leq 1$. We prove this by induction on $m+n$.\n\nThe set $\\{0\\}$ is invariant, as for any $f$ commuting with $g$ we have $g(f(0))=f(g(0))=f(0)$, so $f(0)$ is a fixed point of $g$. This gives that $f(0)=0$, thus the induction base is established.\n\nSuppose now we have some $m, n$ such that $\\left[0, n^{\\prime} \\alpha-m^{\\prime} \\beta\\right]$ is invariant whenever $m^{\\prime}+n^{\\prime}<$ $m+n$. At least one of the numbers $(n-1) \\alpha-m \\beta$ and $n \\alpha-(m-1) \\beta$ lies in $(0,1)$. Note however that in the first case $[0, n \\alpha-m \\beta]=g^{-1}([0,(n-1) \\alpha-m \\beta])$, so $[0, n \\alpha-m \\beta]$ is invariant. In the second case $[0, n \\alpha-m \\beta]=h^{-1}([0, n \\alpha-(m-1) \\beta])$, so again $[0, n \\alpha-m \\beta]$ is invariant. This completes the induction.\n\nWe claim that if we choose $\\alpha+\\beta<1$, where $0<\\alpha \\notin \\mathbb{Q}$ and $\\beta=1 / k$ for some integer $k>1$, then all intervals $[0, \\delta]$ are invariant for $0 \\leq \\delta<1$. This occurs, as by the previous claim, for all nonnegative integers $n$ we have $[0,(n \\alpha \\bmod 1)]$ is invariant. The set of $n \\alpha \\bmod 1$ is dense in $[0,1]$, so in particular\n\n$$\n[0, \\delta]=\\bigcap_{(n \\alpha \\bmod 1)>\\delta}[0,(n \\alpha \\bmod 1)]\n$$\n\nis invariant.\nA similar argument establishes that $[\\delta, 1]$ is invariant, so by intersecting these $\\{\\delta\\}$ is invariant for $0<\\delta<1$. Yet we also have $\\{0\\},\\{1\\}$ both invariant, which proves $f$ to be the identity.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 1"} +{"year": "2013", "problem_label": "2", "tier": 1, "problem": "Does there exist a pair $(g, h)$ of functions $g, h: \\mathbb{R} \\rightarrow \\mathbb{R}$ such that the only function $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying $f(g(x))=g(f(x))$ and $f(h(x))=h(f(x))$ for all $x \\in \\mathbb{R}$ is the identity function $f(x) \\equiv x$ ?\n(United Kingdom) Alexander Betts", "solution": ". Let us agree that a sequence $\\mathbf{x}=\\left(x_{n}\\right)_{n=1,2, \\ldots}$ is cofinally non-constant if for every index $m$ there exists an index $n>m$ such that $x_{m} \\neq x_{n}$.\n\nBiject $\\mathbb{R}$ with the set of cofinally non-constant sequences of 0 's and 1 's, and define $g$ and $h$ by\n\n$$\ng(\\epsilon, \\mathbf{x})=\\left\\{\\begin{array}{ll}\n\\epsilon, \\mathbf{x} & \\text { if } \\epsilon=0 \\\\\n\\mathbf{x} & \\text { else }\n\\end{array} \\quad \\text { and } \\quad h(\\epsilon, \\mathbf{x})= \\begin{cases}\\epsilon, \\mathbf{x} & \\text { if } \\epsilon=1 \\\\\n\\mathbf{x} & \\text { else }\\end{cases}\\right.\n$$\n\nwhere $\\epsilon, \\mathbf{x}$ denotes the sequence formed by appending $\\mathbf{x}$ to the single-element sequence $\\epsilon$. Note that $g$ fixes precisely those sequences beginning with 0 , and $h$ fixes precisely those beginning with 1.\n\nNow assume that $f$ commutes with both $f$ and $g$. To prove that $f(\\mathbf{x})=\\mathbf{x}$ for all $\\mathbf{x}$ we show that $\\mathbf{x}$ and $f(\\mathbf{x})$ share the same first $n$ terms, by induction on $n$.\n\nThe base case $n=1$ is simple, as we have noticed above that the set of sequences beginning with a 0 is precisely the set of $g$-fixed points, so is preserved by $f$, and similarly for the set of sequences starting with 1.\n\nSuppose that $f(\\mathbf{x})$ and $\\mathbf{x}$ agree for the first $n$ terms, whatever $\\mathbf{x}$. Consider any sequence, and write it as $\\mathbf{x}=\\epsilon, \\mathbf{y}$. Without loss of generality, we may (and will) assume that $\\epsilon=0$, so $f(\\mathbf{x})=0, \\mathbf{y}^{\\prime}$ by the base case. Yet then $f(\\mathbf{y})=f(h(\\mathbf{x}))=h(f(\\mathbf{x}))=h\\left(0, \\mathbf{y}^{\\prime}\\right)=\\mathbf{y}^{\\prime}$. Consequently, $f(\\mathbf{x})=0, f(\\mathbf{y})$, so $f(\\mathbf{x})$ and $\\mathbf{x}$ agree for the first $n+1$ terms by the inductive hypothesis.\n\nThus $f$ fixes all of cofinally non-constant sequences, and the conclusion follows.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 2"} +{"year": "2013", "problem_label": "2", "tier": 1, "problem": "Does there exist a pair $(g, h)$ of functions $g, h: \\mathbb{R} \\rightarrow \\mathbb{R}$ such that the only function $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying $f(g(x))=g(f(x))$ and $f(h(x))=h(f(x))$ for all $x \\in \\mathbb{R}$ is the identity function $f(x) \\equiv x$ ?\n(United Kingdom) Alexander Betts", "solution": ". (Ilya Bogdanov) We will show that there exists a tester pair of bijective functions $g$ and $h$.\n\nFirst of all, let us find out when a pair of functions is a tester pair. Let $g, h: \\mathbb{R} \\rightarrow \\mathbb{R}$ be arbitrary functions. We construct a directed graph $G_{g, h}$ with $\\mathbb{R}$ as the set of vertices, its edges being painted with two colors: for every vertex $x \\in \\mathbb{R}$, we introduce a red edge $x \\rightarrow g(x)$ and a blue edge $x \\rightarrow h(x)$.\n\nNow, assume that the function $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfies $f(g(x))=g(f(x))$ and $f(h(x))=h(f(x))$ for all $x \\in \\mathbb{R}$. This means exactly that if there exists an edge $x \\rightarrow y$, then there also exists an edge $f(x) \\rightarrow f(y)$ of the same color; that is $-f$ is an endomorphism of $G_{g, h}$.\n\nThus, a pair $(g, h)$ is a tester pair if and only if the graph $G_{g, h}$ admits no nontrivial endomorphisms. Notice that each endomorphism maps a component into a component. Thus, to construct a tester pair, it suffices to construct a continuum of components with no nontrivial endomorphisms and no homomorphisms from one to another. It can be done in many ways; below we present one of them.\n\nLet $g(x)=x+1$; the construction of $h$ is more involved. For every $x \\in[0,1)$ we define the set $S_{x}=x+\\mathbb{Z}$; the sets $S_{x}$ will be exactly the components of $G_{g, h}$. Now we will construct these components.\n\nLet us fix any $x \\in[0,1)$; let $x=0 . x_{1} x_{2} \\ldots$ be the binary representation of $x$. Define $h(x-n)=x-n+1$ for every $n>3$. Next, let $h(x-3)=x, h(x)=x-2, h(x-2)=x-1$, and $h(x-1)=x+1$ (that would be a \"marker\" which fixes a point in our component).\n\nNext, for every $i=1,2, \\ldots$, we define\n(1) $h(x+3 i-2)=x+3 i-1, h(x+3 i-1)=x+3 i$, and $h(x+3 i)=x+3 i+1$, if $x_{i}=0$;\n(2) $h(x+3 i-2)=x+3 i, h(x+3 i)=3 i-1$, and $h(x+3 i-1)=x+3 i+1$, if $x_{i}=1$.\n\nClearly, $h$ is a bijection mapping each $S_{x}$ to itself. Now we claim that the graph $G_{g, h}$ satisfies the desired conditions.\n\nConsider any homomorphism $f_{x}: S_{x} \\rightarrow S_{y}$ ( $x$ and $y$ may coincide). Since $g$ is a bijection, consideration of the red edges shows that $f_{x}(x+n)=x+n+k$ for a fixed real $k$. Next, there exists a blue edge $(x-3) \\rightarrow x$, and the only blue edge of the form $(y+m-3) \\rightarrow(y+m)$ is $(y-3) \\rightarrow y$; thus $f_{x}(x)=y$, and $k=0$.\n\nNext, if $x_{i}=0$ then there exists a blue edge $(x+3 i-2) \\rightarrow(x+3 i-1)$; then the edge $(y+3 i-2) \\rightarrow(y+3 i-1)$ also should exist, so $y_{i}=0$. Analogously, if $x_{i}=1$ then there exists a blue edge $(x+3 i-2) \\rightarrow(x+3 i)$; then the edge $(y+3 i-2) \\rightarrow(y+3 i)$ also should exist, so $y_{i}=1$. We conclude that $x=y$, and $f_{x}$ is the identity mapping, as required.\n\nRemark. If $g$ and $h$ are injections, then the components of $G_{g, h}$ are at most countable. So the set of possible pairwise non-isomorphic such components is continual; hence there is no bijective tester pair for a hyper-continual set instead of $\\mathbb{R}$.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 3"} +{"year": "2013", "problem_label": "3", "tier": 1, "problem": "Let $A B C D$ be a quadrilateral inscribed in a circle $\\omega$. The lines $A B$ and $C D$ meet at $P$, the lines $A D$ and $B C$ meet at $Q$, and the diagonals $A C$ and $B D$ meet at $R$. Let $M$ be the midpoint of the segment $P Q$, and let $K$ be the common point of the segment $M R$ and the circle $\\omega$. Prove that the circumcircle of the triangle $K P Q$ and $\\omega$ are tangent to one another.\n(Russia) MedeubeK Kungozhin", "solution": "Let $O$ be the centre of $\\omega$. Notice that the points $P, Q$, and $R$ are the poles (with respect to $\\omega$ ) of the lines $Q R, R P$, and $P Q$, respectively. Hence we have $O P \\perp Q R, O Q \\perp R P$, and $O R \\perp P Q$, thus $R$ is the orthocentre of the triangle $O P Q$. Now, if $M R \\perp P Q$, then the points $P$ and $Q$ are the reflections of one another in the line $M R=M O$, and the triangle $P Q K$ is symmetrical with respect to this line. In this case the statement of the problem is trivial.\n\nOtherwise, let $V$ be the foot of the perpendicular from $O$ to $M R$, and let $U$ be the common point of the lines $O V$ and $P Q$. Since $U$ lies on the polar line of $R$ and $O U \\perp M R$, we obtain that $U$ is the pole of $M R$. Therefore, the line $U K$ is tangent to $\\omega$. Hence it is enough to prove that $U K^{2}=U P \\cdot U Q$, since this relation implies that $U K$ is also tangent to the circle $K P Q$.\n\nFrom the rectangular triangle $O K U$, we get $U K^{2}=U V \\cdot U O$. Let $\\Omega$ be the circumcircle of triangle $O P Q$, and let $R^{\\prime}$ be the reflection of its orthocentre $R$ in the midpoint $M$ of the side $P Q$. It is well known that $R^{\\prime}$ is the point of $\\Omega$ opposite to $O$, hence $O R^{\\prime}$ is the diameter of $\\Omega$. Finally, since $\\angle O V R^{\\prime}=90^{\\circ}$, the point $V$ also lies on $\\Omega$, hence $U P \\cdot U Q=U V \\cdot U O=U K^{2}$, as required.\n![](https://cdn.mathpix.com/cropped/2024_11_22_9d27bd20b70215e0f78cg-4.jpg?height=974&width=1220&top_left_y=1128&top_left_x=420)\n\nRemark. The statement of the problem is still true if $K$ is the other common point of the line $M R$ and $\\omega$.", "problem_match": "\nProblem 3.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2013-Solutions2013-2.jsonl b/RMM/segmented/en-2013-Solutions2013-2.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..18ee403b4480a1ed457576ef2940e1a2d9bd9d95 --- /dev/null +++ b/RMM/segmented/en-2013-Solutions2013-2.jsonl @@ -0,0 +1,4 @@ +{"year": "2013", "problem_label": "4", "tier": 1, "problem": "Let $P$ and $P^{\\prime}$ be two convex quadrilateral regions in the plane (regions contain their boundary). Let them intersect, with $O$ a point in the intersection. Suppose that for every line $\\ell$ through $O$ the segment $\\ell \\cap P$ is strictly longer than the segment $\\ell \\cap P^{\\prime}$. Is it possible that the ratio of the area of $P^{\\prime}$ to the area of $P$ is greater than 1.9?\n(Bulgaria) Nikolai Beluhov", "solution": "The answer is in the affirmative: Given a positive $\\epsilon<2$, the ratio in question may indeed be greater than $2-\\epsilon$.\n\nTo show this, consider a square $A B C D$ centred at $O$, and let $A^{\\prime}, B^{\\prime}$, and $C^{\\prime}$ be the reflections of $O$ in $A, B$, and $C$, respectively. Notice that, if $\\ell$ is a line through $O$, then the segments $\\ell \\cap A B C D$ and $\\ell \\cap A^{\\prime} B^{\\prime} C^{\\prime}$ have equal lengths, unless $\\ell$ is the line $A C$.\n\nNext, consider the points $M$ and $N$ on the segments $B^{\\prime} A^{\\prime}$ and $B^{\\prime} C^{\\prime}$, respectively, such that $B^{\\prime} M / B^{\\prime} A^{\\prime}=B^{\\prime} N / B^{\\prime} C^{\\prime}=(1-\\epsilon / 4)^{1 / 2}$. Finally, let $P^{\\prime}$ be the image of the convex quadrangle $B^{\\prime} M O N$ under the homothety of ratio $(1-\\epsilon / 4)^{1 / 4}$ centred at $O$. Clearly, the quadrangles $P \\equiv A B C D$ and $P^{\\prime}$ satisfy the conditions in the statement, and the ratio of the area of $P^{\\prime}$ to the area of $P$ is exactly $2-\\epsilon / 2$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_6f1684822a87e87fbe9ag-1.jpg?height=544&width=716&top_left_y=1170&top_left_x=672)\n\nRemarks. (1) With some care, one may also construct such example with a point $O$ being interior for both $P$ and $P^{\\prime}$. In our example, it is enough to replace vertex $O$ of $P^{\\prime}$ by a point on the segment $O D$ close enough to $O$. The details are left to the reader.\n(2) On the other hand, one may show that the ratio of areas of $P^{\\prime}$ and $P$ cannot exceed 2 (even if $P$ and $P^{\\prime}$ are arbitrary convex polygons rather than quadrilaterals). Further on, we denote by $[S]$ the area of $S$.\n\nIn order to see that $\\left[P^{\\prime}\\right]<2[P]$, let us fix some ray $r$ from $O$, and let $r_{\\alpha}$ be the ray from $O$ making an (oriented) angle $\\alpha$ with $r$. Denote by $X_{\\alpha}$ and $Y_{\\alpha}$ the points of $P$ and $P^{\\prime}$, respectively, lying on $r_{\\alpha}$ farthest from $O$, and denote by $f(\\alpha)$ and $g(\\alpha)$ the lengths of the segments $O X_{\\alpha}$ and $O Y_{\\alpha}$, respectively. Then\n\n$$\n[P]=\\frac{1}{2} \\int_{0}^{2 \\pi} f^{2}(\\alpha) d \\alpha=\\frac{1}{2} \\int_{0}^{\\pi}\\left(f^{2}(\\alpha)+f^{2}(\\pi+\\alpha)\\right) d \\alpha\n$$\n\nand similarly\n\n$$\n\\left[P^{\\prime}\\right]=\\frac{1}{2} \\int_{0}^{\\pi}\\left(g^{2}(\\alpha)+g^{2}(\\pi+\\alpha)\\right) d \\alpha\n$$\n\nBut $X_{\\alpha} X_{\\pi+\\alpha}>Y_{\\alpha} Y_{\\pi+\\alpha}$ yields $2 \\cdot \\frac{1}{2}\\left(f^{2}(\\alpha)+f^{2}(\\pi+\\alpha)\\right)=O X_{\\alpha}^{2}+O X_{\\pi+\\alpha}^{2} \\geq \\frac{1}{2} X_{\\alpha} X_{\\pi+\\alpha}^{2}>$ $\\frac{1}{2} Y_{\\alpha} Y_{\\pi+\\alpha}^{2} \\geq \\frac{1}{2}\\left(O Y_{\\alpha}^{2}+O Y_{\\pi+\\alpha}^{2}\\right)=\\frac{1}{2}\\left(g^{2}(\\alpha)+g^{2}(\\pi+\\alpha)\\right)$. Integration then gives us $2[P]>\\left[P^{\\prime}\\right]$, as needed.\n\nThis can also be proved via elementary methods. Actually, we will establish the following more general fact.\n\nFact. Let $P=A_{1} A_{2} A_{3} A_{4}$ and $P^{\\prime}=B_{1} B_{2} B_{3} B_{4}$ be two convex quadrangles in the plane, and let $O$ be one of their common points different from the vertices of $P^{\\prime}$. Denote by $\\ell_{i}$ the line $O B_{i}$, and assume that for every $i=1,2,3,4$ the length of segment $\\ell_{i} \\cap P$ is greater than the length of segment $\\ell_{i} \\cap P^{\\prime}$. Then $\\left[P^{\\prime}\\right]<2[P]$.\nProof. One of (possibly degenerate) quadrilaterals $O B_{1} B_{2} B_{3}$ and $O B_{1} B_{4} B_{3}$ is convex; the same holds for $O B_{2} B_{3} B_{4}$ and $O B_{2} B_{1} B_{4}$. Without loss of generality, we may (and will) assume that the quadrilaterals $O B_{1} B_{2} B_{3}$ and $O B_{2} B_{3} B_{4}$ are convex.\n\nDenote by $C_{i}$ such a point that $\\ell_{i} \\cap P^{\\prime}$ is the segment $B_{i} C_{i}$; let $a_{i}$ be the length of $\\ell_{i} \\cap P$, and let $\\alpha_{i}$ be the angle between $\\ell_{i}$ and $\\ell_{i+1}$ (hereafter, we use the cyclic notation, thus $\\ell_{5}=\\ell_{1}$ and so on). Thus $C_{2}$ and $C_{3}$ belong to the segment $B_{1} B_{4}, C_{1}$ lies on $B_{3} B_{4}$, and $C_{4}$ lies on $B_{1} B_{2}$. Assume that there exists an index $i$ such that the area of $B_{i} B_{i+1} C_{i} C_{i+1}$ is at least $\\left[P^{\\prime}\\right] / 2$; then we have\n\n$$\n\\frac{\\left[P^{\\prime}\\right]}{2} \\leq\\left[B_{i} B_{i+1} C_{i} C_{i+1}\\right]=\\frac{B_{i} C_{i} \\cdot B_{i+1} C_{i+1} \\cdot \\sin \\alpha_{i}}{2}<\\frac{a_{i} a_{i+1} \\sin \\alpha_{i}}{2} \\leq[P]\n$$\n\nas desired. Assume, to the contrary, that such index does not exist. Two cases are possible.\n![](https://cdn.mathpix.com/cropped/2024_11_22_6f1684822a87e87fbe9ag-2.jpg?height=468&width=1271&top_left_y=1189&top_left_x=397)\n\nCase 1. Assume that the rays $B_{1} B_{2}$ and $B_{4} B_{3}$ do not intersect (see the left figure above). This means, in particular, that $d\\left(B_{1}, B_{3} B_{4}\\right) \\leq d\\left(B_{2}, B_{3} B_{4}\\right)$.\n\nSince the ray $B_{3} O$ lies in the angle $B_{1} B_{3} B_{4}$, we obtain $d\\left(B_{1}, B_{3} C_{3}\\right) \\leq d\\left(C_{4}, B_{3} C_{3}\\right)$; hence $\\left[B_{3} B_{4} B_{1}\\right] \\leq\\left[B_{3} B_{4} C_{3} C_{4}\\right]<\\left[P^{\\prime}\\right] / 2$. Similarly, $\\left[B_{1} B_{2} B_{4}\\right] \\leq\\left[B_{1} B_{2} C_{1} C_{2}\\right]<\\left[P^{\\prime}\\right] / 2$. Thus,\n\n$$\n\\begin{aligned}\n{\\left[B_{2} B_{3} C_{2} C_{3}\\right] } & =\\left[P^{\\prime}\\right]-\\left[B_{1} B_{2} C_{3}\\right]-\\left[B_{3} B_{4} C_{2}\\right]=\\left[P^{\\prime}\\right]-\\frac{B_{1} C_{3}}{B_{1} B_{4}} \\cdot\\left[B_{1} B_{2} B_{4}\\right]-\\frac{B_{4} C_{2}}{B_{1} B_{4}} \\cdot\\left[B_{3} B_{4} B_{1}\\right] \\\\\n& >\\left[P^{\\prime}\\right]\\left(1-\\frac{B_{1} C_{3}+B_{4} C_{2}}{2 B_{1} B_{4}}\\right) \\geq \\frac{\\left[P^{\\prime}\\right]}{2} .\n\\end{aligned}\n$$\n\nA contradiction.\nCase 2. Assume now that the rays $B_{1} B_{2}$ and $B_{4} B_{3}$ intersect at some point (see the right figure above). Denote by $L$ the common point of $B_{2} C_{1}$ and $B_{3} C_{4}$. We have $\\left[B_{2} C_{4} C_{1}\\right] \\geq\\left[B_{2} C_{4} B_{3}\\right]$, hence $\\left[C_{1} C_{4} L\\right] \\geq\\left[B_{2} B_{3} L\\right]$. Thus we have\n\n$$\n\\begin{aligned}\n{\\left[P^{\\prime}\\right]>\\left[B_{1} B_{2} C_{1} C_{2}\\right]+\\left[B_{3} B_{4} C_{3} C_{4}\\right] } & =\\left[P^{\\prime}\\right]+\\left[L C_{1} C_{2} C_{3} C_{4}\\right]-\\left[B_{2} B_{3} L\\right] \\\\\n& \\geq\\left[P^{\\prime}\\right]+\\left[C_{1} C_{4} L\\right]-\\left[B_{2} B_{3} L\\right] \\geq\\left[P^{\\prime}\\right] .\n\\end{aligned}\n$$\n\nA final contradiction.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution."} +{"year": "2013", "problem_label": "5", "tier": 1, "problem": "Given an integer $k \\geq 2$, set $a_{1}=1$ and, for every integer $n \\geq 2$, let $a_{n}$ be the smallest $x>a_{n-1}$ such that:\n\n$$\nx=1+\\sum_{i=1}^{n-1}\\left\\lfloor\\sqrt[k]{\\frac{x}{a_{i}}}\\right\\rfloor .\n$$\n\nProve that every prime occurs in the sequence $a_{1}, a_{2}, \\ldots$.\n(Bulgaria) Alexander Ivanov", "solution": ". We prove that the $a_{n}$ are precisely the $k$ th-power-free positive integers, that is, those divisible by the $k$ th power of no prime. The conclusion then follows.\n\nLet $B$ denote the set of all $k$ th-power-free positive integers. We first show that, given a positive integer $c$,\n\n$$\n\\sum_{b \\in B, b \\leq c}\\left\\lfloor\\sqrt[k]{\\frac{c}{b}}\\right\\rfloor=c\n$$\n\nTo this end, notice that every positive integer has a unique representation as a product of an element in $B$ and a $k$ th power. Consequently, the set of all positive integers less than or equal to $c$ splits into\n\n$$\nC_{b}=\\left\\{x: x \\in \\mathbb{Z}_{>0}, x \\leq c, \\text { and } x / b \\text { is a } k \\text { th power }\\right\\}, \\quad b \\in B, b \\leq c .\n$$\n\nClearly, $\\left|C_{b}\\right|=\\lfloor\\sqrt[k]{c / b}\\rfloor$, whence the desired equality.\nFinally, enumerate $B$ according to the natural order: $1=b_{1}b_{n-1}=a_{n-1}$ and\n\n$$\nb_{n}=\\sum_{i=1}^{n}\\left\\lfloor\\sqrt[k]{\\frac{b_{n}}{b_{i}}}\\right\\rfloor=\\sum_{i=1}^{n-1}\\left\\lfloor\\sqrt[k]{\\frac{b_{n}}{b_{i}}}\\right\\rfloor+1=\\sum_{i=1}^{n-1}\\left\\lfloor\\sqrt[k]{\\frac{b_{n}}{a_{i}}}\\right\\rfloor+1\n$$\n\nthe definition of $a_{n}$ forces $a_{n} \\leq b_{n}$. Were $a_{n}a_{n-1}$ such that:\n\n$$\nx=1+\\sum_{i=1}^{n-1}\\left\\lfloor\\sqrt[k]{\\frac{x}{a_{i}}}\\right\\rfloor .\n$$\n\nProve that every prime occurs in the sequence $a_{1}, a_{2}, \\ldots$.\n(Bulgaria) Alexander Ivanov", "solution": ". (Ilya Bogdanov) For every $n=1,2,3, \\ldots$, introduce the function\n\n$$\nf_{n}(x)=x-1-\\sum_{i=1}^{n-1}\\left\\lfloor\\sqrt[k]{\\frac{x}{a_{i}}}\\right\\rfloor\n$$\n\nDenote also by $g_{n}(x)$ the number of the indices $i \\leq n$ such that $x / a_{i}$ is the $k$ th power of an integer. Then $f_{n}(x+1)-f_{n}(x)=1-g_{n}(x)$ for every integer $x \\geq a_{n}$; hence $f_{n}(x)+1 \\geq f_{n}(x+1)$. Moreover, $f_{n}\\left(a_{n-1}\\right)=-1$ (since $f_{n-1}\\left(a_{n-1}\\right)=0$ ). Now a straightforward induction shows that $f_{n}(x)<0$ for all integers $x \\in\\left[a_{n-1}, a_{n}\\right)$.\n\nNext, if $g_{n}(x)>0$ then $f_{n}(x) \\leq f_{n}(x-1)$; this means that such an $x$ cannot equal $a_{n}$. Thus $a_{j} / a_{i}$ is never the $k$ th power of an integer if $j>i$.\n\nNow we are prepared to prove by induction on $n$ that $a_{1}, a_{2}, \\ldots, a_{n}$ are exactly all $k$ th-power-free integers in $\\left[1, a_{n}\\right]$. The base case $n=1$ is trivial.\n\nAssume that all the $k$ th-power-free integers on $\\left[1, a_{n}\\right]$ are exactly $a_{1}, \\ldots, a_{n}$. Let $b$ be the least integer larger than $a_{n}$ such that $g_{n}(b)=0$. We claim that: (1) $b=a_{n+1}$; and (2) $b$ is the least $k$ th-power-free number greater than $a_{n}$.\n\nTo prove (1), notice first that all the numbers of the form $a_{j} / a_{i}$ with $1 \\leq i1$ be the greatest integer such that $y^{k} \\mid b$; then $b / y^{k}$ is $k$ th-power-free and hence $b / y^{k}=a_{i}$ for some $i \\leq n$. So $b / a_{i}$ is the $k$ th power of an integer, which contradicts the definition of $b$.\n\nThus $a_{1}, a_{2}, \\ldots$ are exactly all $k$ th-power-free positive integers; consequently all primes are contained in this sequence.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 2"} +{"year": "2013", "problem_label": "6", "tier": 1, "problem": "$2 n$ distinct tokens are placed at the vertices of a regular $2 n$-gon, with one token placed at each vertex. A move consists of choosing an edge of the $2 n$-gon and interchanging the two tokens at the endpoints of that edge. Suppose that after a finite number of moves, every pair of tokens have been interchanged exactly once. Prove that some edge has never been chosen.\n(Russia) Alexander Gribalko", "solution": "Step 1. Enumerate all the tokens in the initial arrangement in clockwise circular order; also enumerate the vertices of the $2 n$-gon accordingly. Consider any three tokens $i100$, there are only finitely many integers $k \\geq 0$, such that, starting from the list\n\n$$\nk+1, k+2, \\ldots, k+n\n$$\n\nit is possible to obtain, after $n-1$ operations, the value $n$ !.\n(United Kingdom) Alexander Betts", "solution": "We prove the problem statement even for all positive integer $n$.\nThere are only finitely many ways of constructing a number from $n$ pairwise distinct numbers $x_{1}, \\ldots, x_{n}$ only using the four elementary arithmetic operations, and each $x_{k}$ exactly once. Each such formula for $k>1$ is obtained by an elementary operation from two such formulas on two disjoint sets of the $x_{i}$.\n\nA straightforward induction on $n$ shows that the outcome of each such construction is a number of the form\n\n$$\n\\frac{\\sum_{\\alpha_{1}, \\ldots, \\alpha_{n} \\in\\{0,1\\}} a_{\\alpha_{1}, \\ldots, \\alpha_{n}} x_{1}^{\\alpha_{1}} \\cdots x_{n}^{\\alpha_{n}}}{\\sum_{\\alpha_{1}, \\alpha_{n} \\in\\{0,1\\}} b_{\\alpha_{1}, \\ldots, \\alpha_{n}} x_{1}^{\\alpha_{1}} \\cdots x_{n}^{\\alpha_{n}}},\n$$\n\nwhere the $a_{\\alpha_{1}, \\ldots, \\alpha_{n}}$ and $b_{\\alpha_{1}, \\ldots, \\alpha_{n}}$ are all in the set $\\{0, \\pm 1\\}$, not all zero of course, $a_{0, \\ldots, 0}=b_{1, \\ldots, 1}=0$, and also $a_{\\alpha_{1}, \\ldots, \\alpha_{n}} \\cdot b_{\\alpha_{1}, \\ldots, \\alpha_{n}}=0$ for every set of indices.\n\nSince $\\left|a_{\\alpha_{1}, \\ldots, \\alpha_{n}}\\right| \\leq 1$, and $a_{0,0, \\ldots, 0}=0$, the absolute value of the numerator does not exceed $\\left(1+\\left|x_{1}\\right|\\right) \\cdots\\left(1+\\left|x_{n}\\right|\\right)-1$; in particular, if $c$ is an integer in the range $-n, \\ldots,-1$, and $x_{k}=c+k$, $k=1, \\ldots, n$, then the absolute value of the numerator is at most $(-c)!(n+c+1)!-1 \\leq n!-18$, this provides a solution along the same lines.", "problem_match": "\nProblem 3.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2015-Solutions_RMM2015-2.jsonl b/RMM/segmented/en-2015-Solutions_RMM2015-2.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ded005f449d8db81f730b52c45032219c1b57fc6 --- /dev/null +++ b/RMM/segmented/en-2015-Solutions_RMM2015-2.jsonl @@ -0,0 +1,3 @@ +{"year": "2015", "problem_label": "4", "tier": 1, "problem": "Let $A B C$ be a triangle, let $D$ be the touchpoint of the side $B C$ and the incircle of the triangle $A B C$, and let $J_{b}$ and $J_{c}$ be the incentres of the triangles $A B D$ and $A C D$, respectively. Prove that the circumcentre of the triangle $A J_{b} J_{c}$ lies on the bisectrix of the angle $B A C$.\n(Russia) Fedor Ivlev", "solution": "Let the incircle of the triangle $A B C$ meet $C A$ and $A B$ at points $E$ and $F$, respectively. Let the incircles of the triangles $A B D$ and $A C D$ meet $A D$ at points $X$ and $Y$, respectively. Then $2 D X=D A+D B-A B=D A+D B-B F-A F=D A-A F$; similarly, $2 D Y=D A-A E=2 D X$. Hence the points $X$ and $Y$ coincide, so $J_{b} J_{c} \\perp A D$.\n\nNow let $O$ be the circumcentre of the triangle $A J_{b} J_{c}$. Then $\\angle J_{b} A O=\\pi / 2-\\angle A O J_{b} / 2=$ $\\pi / 2-\\angle A J_{c} J_{b}=\\angle X A J_{c}=\\frac{1}{2} \\angle D A C$. Therefore, $\\angle B A O=\\angle B A J_{b}+\\angle J_{b} A O=\\frac{1}{2} \\angle B A D+$ $\\frac{1}{2} \\angle D A C=\\frac{1}{2} \\angle B A C$, and the conclusion follows.\n![](https://cdn.mathpix.com/cropped/2024_11_22_2a6f56d972086c73d081g-1.jpg?height=673&width=945&top_left_y=994&top_left_x=563)\n\nFig. 1", "problem_match": "\nProblem 4.", "solution_match": "\nSolution."} +{"year": "2015", "problem_label": "5", "tier": 1, "problem": "Let $p \\geq 5$ be a prime number. For a positive integer $k$ we denote by $R(k)$ the remainder of $k$ when divided by $p$. Determine all positive integers $aa\n$$\n\nfor every $m=1,2, \\ldots, p-1$.\n(Bulgaria) Alexander Ivanov", "solution": "The required integers are $p-1$ along with all the numbers of the form $\\lfloor p / q\\rfloor, q=$ $2, \\ldots, p-1$. In other words, these are $p-1$, along with the numbers $1,2, \\ldots,\\lfloor\\sqrt{p}\\rfloor$, and also the (distinct) numbers $\\lfloor p / q\\rfloor, q=2, \\ldots,\\left\\lfloor\\sqrt{p}-\\frac{1}{2}\\right\\rfloor$.\n\nWe begin by showing that these numbers satisfy the conditions in the statement. It is readily checked that $p-1$ satisfies the required inequalities, since $m+R(m(p-1))=m+(p-m)=$ $p>p-1$ for all $m=1, \\ldots, p-1$.\n\nNow, consider any number $a$ of the form $a=\\lfloor p / q\\rfloor$, where $q$ is an integer greater than 1 but less than $p$; then $p=a q+r$ with $0r$ and $y \\geq 1$. Thus $a$ satisfies the required condition.\nFinally, we show that if an integer $a \\in(0, p-1)$ satisfies the required condition then $a$ is indeed of the form $a=\\lfloor p / q\\rfloor$ for some integer $q \\in(0, p)$. This is clear for $a=1$, so we may (and will) assume that $a \\geq 2$.\n\nWrite $p=a q+r$ with $q, r \\in \\mathbb{Z}$ and $0\\frac{1}{2 n+2}$, let $U=(0,1) \\times(0,1)$, choose a small enough positive $\\epsilon$, and consider the configuration $C$ consisting of the $n$ four-element clusters of points $\\left(\\frac{i}{n+1} \\pm \\epsilon\\right) \\times\\left(\\frac{1}{2} \\pm \\epsilon\\right), i=1, \\ldots, n$, the four possible sign combinations being considered for each $i$. Clearly, every open rectangle in $U$, whose sides are parallel to those of $U$, which contains exactly one point of $C$, has area at $\\operatorname{most}\\left(\\frac{1}{n+1}+\\epsilon\\right) \\cdot\\left(\\frac{1}{2}+\\epsilon\\right)<\\mu$ if $\\epsilon$ is small enough.\n\nWe now show that, given a finite configuration $C$ of points in an open unit square $U$, there always exists an open rectangle in $U$, whose sides are parallel to those of $U$, which contains exactly one point of $C$, and has an area greater than or equal to $\\mu_{0}=\\frac{2}{|C|+4}$.\n\nTo prove this, usage will be made of the following two lemmas whose proofs are left at the end of the solution.\nLemma 1. Let $k$ be a positive integer, and let $\\lambda<\\frac{1}{\\lfloor k / 2\\rfloor+1}$ be a positive real number. If $t_{1}, \\ldots, t_{k}$ are pairwise distinct points in the open unit interval $(0,1)$, then some $t_{i}$ is isolated from the other $t_{j}$ by an open subinterval of $(0,1)$ whose length is greater than or equal to $\\lambda$.\nLemma 2. Given an integer $k \\geq 2$ and positive integers $m_{1}, \\ldots, m_{k}$,\n\n$$\n\\left\\lfloor\\frac{m_{1}}{2}\\right\\rfloor+\\sum_{i=1}^{k}\\left\\lfloor\\frac{m_{i}}{2}\\right\\rfloor+\\left\\lfloor\\frac{m_{k}}{2}\\right\\rfloor \\leq \\sum_{i=1}^{k} m_{i}-k+2\n$$\n\nBack to the problem, let $U=(0,1) \\times(0,1)$, project $C$ orthogonally on the $x$-axis to obtain the points $x_{1}<\\cdots\\left(\\left\\lfloor m_{i} / 2\\right\\rfloor+1\\right) \\mu_{0}$ for some index $i$, and apply Lemma 1 to isolate one of the points in $C \\cap \\ell_{i}$ from the other ones by an open subinterval $x_{i} \\times J$ of $x_{i} \\times(0,1)$ whose length is greater than or equal to $\\mu_{0} /\\left(x_{i+1}-x_{i-1}\\right)$. Consequently, $\\left(x_{i-1}, x_{i+1}\\right) \\times J$ is an open rectangle in $U$, whose sides are parallel to those of $U$, which contains exactly one point of $C$ and has an area greater than or equal to $\\mu_{0}$.\n\nNext, we rule out the case $x_{i+1}-x_{i-1} \\leq\\left(\\left\\lfloor m_{i} / 2\\right\\rfloor+1\\right) \\mu_{0}$ for all indices $i$. If this were the case, notice that necessarily $k>1$; also, $x_{1}-x_{0}1$, then $(n-1)^{2}$ 1 - 1/100.", "solution": "If $x \\geq 1-1 /(100 \\cdot 2016)$, then\n\n$$\nx^{2016} \\geq\\left(1-\\frac{1}{100 \\cdot 2016}\\right)^{2016}>1-2016 \\cdot \\frac{1}{100 \\cdot 2016}=1-\\frac{1}{100}\n$$\n\nby Bernoulli's inequality, whence the conclusion.\nIf $x<1-1 /(100 \\cdot 2016)$, then $y \\geq(1-x)^{1 / 2016}>(100 \\cdot 2016)^{-1 / 2016}$, and it is sufficient to show that the latter is greater than $1-1 / 100=99 / 100$; alternatively, but equivalently, that\n\n$$\n\\left(1+\\frac{1}{99}\\right)^{2016}>100 \\cdot 2016\n$$\n\nTo establish the latter, refer again to Bernoulli's inequality to write\n\n$$\n\\left(1+\\frac{1}{99}\\right)^{2016}>\\left(1+\\frac{1}{99}\\right)^{99 \\cdot 20}>\\left(1+99 \\cdot \\frac{1}{99}\\right)^{20}=2^{20}>100 \\cdot 2016\n$$\n\nRemarks. (1) Although the constant $1 / 100$ is not sharp, it cannot be replaced by the smaller constant $1 / 400$, as the values $x=1-1 / 210$ and $y=1-1 / 380$ show.\n(2) It is natural to ask whether $x^{n}+y \\geq 1-1 / k$, whenever $x$ and $y$ are positive real numbers such that $x+y^{n} \\geq 1$, and $k$ and $n$ are large. Using the inequality $\\left(1+\\frac{1}{k-1}\\right)^{k}>\\mathrm{e}$, it can be shown along the lines in the solution that this is indeed the case if $k \\leq \\frac{n}{2 \\log n}(1+o(1))$. It seems that this estimate differs from the best one by a constant factor.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution."} +{"year": "2016", "problem_label": "5", "tier": 1, "problem": "A convex hexagon $A_{1} B_{1} A_{2} B_{2} A_{3} B_{3}$ is inscribed in a circle $\\Omega$ of radius $R$. The diagonals $A_{1} B_{2}, A_{2} B_{3}$, and $A_{3} B_{1}$ concur at $X$. For $i=1,2,3$, let $\\omega_{i}$ be the circle tangent to the segments $X A_{i}$ and $X B_{i}$, and to the arc $A_{i} B_{i}$ of $\\Omega$ not containing other vertices of the hexagon; let $r_{i}$ be the radius of $\\omega_{i}$.\n(a) Prove that $R \\geq r_{1}+r_{2}+r_{3}$.\n(b) If $R=r_{1}+r_{2}+r_{3}$, prove that the six points where the circles $\\omega_{i}$ touch the diagonals $A_{1} B_{2}, A_{2} B_{3}, A_{3} B_{1}$ are concyclic.", "solution": "(a) Let $\\ell_{1}$ be the tangent to $\\Omega$ parallel to $A_{2} B_{3}$, lying on the same side of $A_{2} B_{3}$ as $\\omega_{1}$. The tangents $\\ell_{2}$ and $\\ell_{3}$ are defined similarly. The lines $\\ell_{1}$ and $\\ell_{2}, \\ell_{2}$ and $\\ell_{3}, \\ell_{3}$ and $\\ell_{1}$ meet at $C_{3}, C_{1}, C_{2}$, respectively (see Fig. 1). Finally, the line $C_{2} C_{3}$ meets the rays $X A_{1}$ and $X B_{1}$ emanating from $X$ at $S_{1}$ and $T_{1}$, respectively; the points $S_{2}, T_{2}$, and $S_{3}, T_{3}$ are defined similarly.\n\nEach of the triangles $\\Delta_{1}=\\triangle X S_{1} T_{1}, \\Delta_{2}=\\triangle T_{2} X S_{2}$, and $\\Delta_{3}=\\triangle S_{3} T_{3} X$ is similar to $\\Delta=\\triangle C_{1} C_{2} C_{3}$, since their corresponding sides are parallel. Let $k_{i}$ be the ratio of similitude of $\\Delta_{i}$ and $\\Delta$ (e.g., $k_{1}=X S_{1} / C_{1} C_{2}$ and the like). Since $S_{1} X=C_{2} T_{3}$ and $X T_{2}=S_{3} C_{1}$, it follows that $k_{1}+k_{2}+k_{3}=1$, so, if $\\rho_{i}$ is the inradius of $\\Delta_{i}$, then $\\rho_{1}+\\rho_{2}+\\rho_{3}=R$.\n\nFinally, notice that $\\omega_{i}$ is interior to $\\Delta_{i}$, so $r_{i} \\leq \\rho_{i}$, and the conclusion follows by the preceding.\n![](https://cdn.mathpix.com/cropped/2024_11_22_43c8c12599eee71f4e24g-2.jpg?height=712&width=1054&top_left_y=181&top_left_x=221)\n\nFig. 1\n![](https://cdn.mathpix.com/cropped/2024_11_22_43c8c12599eee71f4e24g-2.jpg?height=649&width=492&top_left_y=241&top_left_x=1290)\n\nFig. 2\n(b) By part (a), the equality $R=r_{1}+r_{2}+r_{3}$ holds if and only if $r_{i}=\\rho_{i}$ for all $i$, which implies in turn that $\\omega_{i}$ is the incircle of $\\Delta_{i}$. Let $K_{i}, L_{i}, M_{i}$ be the points where $\\omega_{i}$ touches the sides $X S_{i}, X T_{i}, S_{i} T_{i}$, respectively. We claim that the six points $K_{i}$ and $L_{i}(i=1,2,3)$ are equidistant from $X$.\n\nClearly, $X K_{i}=X L_{i}$, and we are to prove that $X K_{2}=X L_{1}$ and $X K_{3}=X L_{2}$. By similarity, $\\angle T_{1} M_{1} L_{1}=\\angle C_{3} M_{1} M_{2}$ and $\\angle S_{2} M_{2} K_{2}=\\angle C_{3} M_{2} M_{1}$, so the points $M_{1}, M_{2}, L_{1}, K_{2}$ are collinear. Consequently, $\\angle X K_{2} L_{1}=\\angle C_{3} M_{1} M_{2}=\\angle C_{3} M_{2} M_{1}=\\angle X L_{1} K_{2}$, so $X K_{2}=X L_{1}$. Similarly, $X K_{3}=X L_{2}$.\n\nRemark. Under the assumption in part (b), the point $M_{i}$ is the centre of a homothety mapping $\\omega_{i}$ to $\\Omega$. Since this homothety maps $X$ to $C_{i}$, the points $M_{i}, C_{i}, X$ are collinear, so $X$ is the Gergonne point of the triangle $C_{1} C_{2} C_{3}$. This condition is in fact equivalent to $R=r_{1}+r_{2}+r_{3}$.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution."} +{"year": "2016", "problem_label": "6", "tier": 1, "problem": "A set of $n$ points in Euclidean 3-dimensional space, no four of which are coplanar, is partitioned into two subsets $\\mathcal{A}$ and $\\mathcal{B}$. An $\\mathcal{A B}$-tree is a configuration of $n-1$ segments, each of which has an endpoint in $\\mathcal{A}$ and the other in $\\mathcal{B}$, and such that no segments form a closed polyline. An $\\mathcal{A B}$-tree is transformed into another as follows: choose three distinct segments $A_{1} B_{1}, B_{1} A_{2}$ and $A_{2} B_{2}$ in the $\\mathcal{A B}$-tree such that $A_{1}$ is in $\\mathcal{A}$ and $A_{1} B_{1}+A_{2} B_{2}>A_{1} B_{2}+A_{2} B_{1}$, and remove the segment $A_{1} B_{1}$ to replace it by the segment $A_{1} B_{2}$. Given any $\\mathcal{A B}$-tree, prove that every sequence of successive transformations comes to an end (no further transformation is possible) after finitely many steps.", "solution": "The configurations of segments under consideration are all bipartite geometric trees on the points $n$ whose vertex-parts are $\\mathcal{A}$ and $\\mathcal{B}$, and transforming one into another preserves the degree of any vertex in $\\mathcal{A}$, but not necessarily that of a vertex in $\\mathcal{B}$.\n\nThe idea is to devise a strict semi-invariant of the process, i.e., assign each $\\mathcal{A B}$-tree a real number strictly decreasing under a transformation. Since the number of trees on the $n$ points is finite, the conclusion follows.\n\nTo describe the assignment, consider an $\\mathcal{A B}$-tree $\\mathcal{T}=(\\mathcal{A} \\sqcup \\mathcal{B}, \\mathcal{E})$. Removal of an edge $e$ of $\\mathcal{T}$ splits the graph into exactly two components. Let $p_{\\mathcal{T}}(e)$ be the number of vertices in $\\mathcal{A}$ lying in the component of $\\mathcal{T}-e$ containing the $\\mathcal{A}$-endpoint of $e$; since $\\mathcal{T}$ is a tree, $p_{\\mathcal{T}}(e)$ counts the number of paths in $\\mathcal{T}-e$ from the $\\mathcal{A}$-endpoint of $e$ to vertices in $\\mathcal{A}$ (including the one-vertex path). Define $f(\\mathcal{T})=\\sum_{e \\in \\mathcal{E}} p_{\\mathcal{T}}(e)|e|$, where $|e|$ is the Euclidean length of $e$.\n\nWe claim that $f$ strictly decreases under a transformation. To prove this, let $\\mathcal{T}^{\\prime}$ be obtained from $\\mathcal{T}$ by a transformation involving the polyline $A_{1} B_{1} A_{2} B_{2}$; that is, $A_{1}$ and $A_{2}$ are in $\\mathcal{A}, B_{1}$\nand $B_{2}$ are in $\\mathcal{B}, A_{1} B_{1}+A_{2} B_{2}>A_{1} B_{2}+A_{2} B_{1}$, and $\\mathcal{T}^{\\prime}=\\mathcal{T}-A_{1} B_{1}+A_{1} B_{2}$. It is readily checked that $p_{\\mathcal{T}^{\\prime}}(e)=p_{\\mathcal{T}}(e)$ for every edge $e$ of $\\mathcal{T}$ different from $A_{1} B_{1}, A_{2} B_{1}$ and $A_{2} B_{2}, p_{\\mathcal{T}^{\\prime}}\\left(A_{1} B_{2}\\right)=$ $p_{\\mathcal{T}}\\left(A_{1} B_{1}\\right), p_{\\mathcal{T}^{\\prime}}\\left(A_{2} B_{1}\\right)=p_{\\mathcal{T}}\\left(A_{2} B_{1}\\right)+p_{\\mathcal{T}}\\left(A_{1} B_{1}\\right)$, and $p_{\\mathcal{T}^{\\prime}}\\left(A_{2} B b_{2}\\right)=p_{\\mathcal{T}}\\left(A_{2} B_{2}\\right)-p_{\\mathcal{T}}\\left(A_{1} B_{1}\\right)$. Consequently,\n\n$$\n\\begin{aligned}\nf\\left(\\mathcal{T}^{\\prime}\\right)-f(\\mathcal{T})= & p_{\\mathcal{T}^{\\prime}}\\left(A_{1} B_{2}\\right) \\cdot A_{1} B_{2}+\\left(p_{\\mathcal{T}^{\\prime}}\\left(A_{2} B_{1}\\right)-p_{\\mathcal{T}}\\left(A_{2} B_{1}\\right)\\right) \\cdot A_{2} B_{1}+ \\\\\n& \\left(p_{\\mathcal{T}^{\\prime}}\\left(A_{2} B_{2}\\right)-p_{\\mathcal{T}}\\left(A_{2} B_{2}\\right)\\right) \\cdot A_{2} B_{2}-p_{\\mathcal{T}}\\left(A_{1} B_{1}\\right) \\cdot A_{1} B_{1} \\\\\n= & p_{\\mathcal{T}}\\left(A_{1} B_{1}\\right)\\left(A_{1} B_{2}+A_{2} B_{1}-A_{2} B_{2}-A_{1} B_{1}\\right)<0\n\\end{aligned}\n$$\n\nRemarks. (1) The solution above does not involve the geometric structure of the configurations, so the conclusion still holds if the Euclidean length (distance) is replaced by any real-valued function on $\\mathcal{A} \\times \\mathcal{B}$.\n(2) There are infinitely many strict semi-invariants that can be used to establish the conclusion, as we are presently going to show. The idea is to devise a non-strict real-valued semiinvariant $f_{A}$ for each $A$ in $\\mathcal{A}$ (i.e., $f_{A}$ does not increase under a transformation) such that $\\sum_{A \\in \\mathcal{A}} f_{A}=f$. It then follows that any linear combination of the $f_{A}$ with positive coefficients is a strict semi-invariant.\n\nTo describe $f_{A}$, where $A$ is a fixed vertex in $\\mathcal{A}$, let $\\mathcal{T}$ be an $\\mathcal{A B}$-tree. Since $\\mathcal{T}$ is a tree, by orienting all paths in $\\mathcal{T}$ with an endpoint at $A$ away from $A$, every edge of $\\mathcal{T}$ comes out with a unique orientation so that the in-degree of every vertex of $\\mathcal{T}$ other than $A$ is 1 . Define $f_{A}(\\mathcal{T})$ to be the sum of the Euclidean lengths of all out-going edges from $\\mathcal{A}$. It can be shown that $f_{A}$ does not increase under a transformation, and it strictly decreases if the paths from $A$ to each of $A_{1}$, $A_{2}, B_{1}, B_{2}$ all pass through $A_{1}$ - i.e., of these four vertices, $A_{1}$ is combinatorially nearest to $A$. In particular, this is the case if $A_{1}=A$, i.e., the edge-switch in the transformation occurs at $A$. It is not hard to prove that $\\sum_{A \\in \\mathcal{A}} f_{A}(\\mathcal{T})=f(\\mathcal{T})$.\n\nThe conclusion of the problem can also be established by resorting to a single carefully chosen $f_{A}$. Suppose, if possible, that the process is infinite, so some tree $\\mathcal{T}$ occurs (at least) twice. Let $A$ be the vertex in $\\mathcal{A}$ at which the edge-switch occurs in the transformation of the first occurrence of $\\mathcal{T}$. By the preceding paragraph, consideration of $f_{A}$ shows that $\\mathcal{T}$ can never occur again.\n(3) Recall that the degree of any vertex in $\\mathcal{A}$ is invariant under a transformation, so the linear combination $\\sum_{A \\in \\mathcal{A}}(\\operatorname{deg} A-1) f_{A}$ is a strict semi-invariant for $\\mathcal{A B}$-trees $\\mathcal{T}$ whose vertices in $\\mathcal{A}$ all have degrees exceeding 1. Up to a factor, this semi-invariant can alternatively, but equivalently be described as follows. Fix a vertex $*$ and assign each vertex $X$ a number $g(X)$ so that $g(*)=0$, and $g(A)-g(B)=A B$ for every $A$ in $\\mathcal{A}$ and every $B$ in $\\mathcal{B}$ joined by an edge. Next, let $\\beta(\\mathcal{T})=\\frac{1}{|\\mathcal{B}|} \\sum_{B \\in \\mathcal{B}} g(B)$, let $\\alpha(\\mathcal{T})=\\frac{1}{|\\mathcal{E}|-|\\mathcal{A}|} \\sum_{A \\in \\mathcal{A}}(\\operatorname{deg} A-1) g(A)$, where $\\mathcal{E}$ is the edge-set of $\\mathcal{T}$, and set $\\mu(\\mathcal{T})=\\beta(\\mathcal{T})-\\alpha(\\mathcal{T})$. It can be shown that $\\mu$ strictly decreases under a transformation; in fact, $\\mu$ and $\\sum_{A \\in \\mathcal{A}}(\\operatorname{deg} A-1) f_{A}$ are proportional to one another.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2017-Solutions_RMM2017-1.jsonl b/RMM/segmented/en-2017-Solutions_RMM2017-1.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..abc1b078768f3a6d97d28a61addfc1d2f9e7e555 --- /dev/null +++ b/RMM/segmented/en-2017-Solutions_RMM2017-1.jsonl @@ -0,0 +1,5 @@ +{"year": "2017", "problem_label": "1", "tier": 1, "problem": "(a) Prove that every positive integer $n$ can be written uniquely in the form\n\n$$\nn=\\sum_{j=1}^{2 k+1}(-1)^{j-1} 2^{m_{j}}\n$$\n\nwhere $k \\geq 0$ and $0 \\leq m_{1}0$, and even if $n \\leq 0$. The integer $w(n)=\\lfloor\\ell / 2\\rfloor$ is called the weight of $n$.\n\nExistence once proved, uniqueness follows from the fact that there are as many such representations as integers in the range $-2^{M}+1$ through $2^{M}$, namely, $2^{M+1}$.\n\nTo prove existence, notice that the base case $M=0$ is clear, so let $M \\geq 1$ and let $n$ be an integer in the range $-2^{M}+1$ through $2^{M}$.\n\nIf $-2^{M}+1 \\leq n \\leq-2^{M-1}$, then $1 \\leq n+2^{M} \\leq 2^{M-1}$, so $n+2^{M}=\\sum_{j=1}^{2 k+1}(-1)^{j-1} 2^{m_{j}}$ for some integers $k \\geq 0$ and $0 \\leq m_{1}<\\cdots3$, then $f_{n}(x) \\equiv 0(\\bmod n+1)$ for all integers $x$, since $f_{n}(0)=-n!=-1 \\cdot 2 \\cdot \\ldots$. $\\frac{n+1}{2} \\cdots \\cdot n \\equiv 0(\\bmod n+1)$.\n\nFinally, let $P=f_{n}+n X+1$ if $n$ is odd, and let $P=f_{n-1}+n X+1$ if $n$ is even. In either case, $P$ is strictly increasing, hence injective, on the integers, and $P(x) \\equiv 1(\\bmod n)$ for all integers $x$.\n\nRemark. The polynomial $P=f_{n}+n X+1$ works equally well for even $n>2$. To prove injectivity, notice that $P$ is strictly monotone, hence injective, on non-positive (respectively, positive) integers. Suppose, if possible, that $P(a)=P(b)$ for some integers $a \\leq 0$ and $b>0$. Notice that $P(a) \\geq P(0)=n!+1>n^{2}+1=P(n)$, since $n \\geq 4$, to infer that $b \\geq n+1$. It is therefore sufficient to show that $P(x)>P(n+1-x)>P(x-1)$ for all integers $x \\geq n+1$. The former inequality is trivial, since $f_{n}(x)=f_{n}(n+1-x)$ for even $n$. For the latter, write\n\n$$\n\\begin{aligned}\nP(n+1-x)-P(x-1) & =(x-1) \\cdots(x-n)-(x-2) \\cdots(x-n-1)+n(n+2-2 x) \\\\\n& =n((x-2) \\cdots(x-n)+(n-2)-2(x-2)) \\geq n(n-2)>0,\n\\end{aligned}\n$$\n\nsince $(x-3) \\cdots(x-n) \\geq 2$.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution."} +{"year": "2017", "problem_label": "3", "tier": 1, "problem": "Let $n$ be an integer greater than 1 and let $X$ be an $n$-element set. A non-empty collection of subsets $A_{1}, \\ldots, A_{k}$ of $X$ is tight if the union $A_{1} \\cup \\cdots \\cup A_{k}$ is a proper subset of $X$ and no element of $X$ lies in exactly one of the $A_{i}$ s. Find the largest cardinality of a collection of proper non-empty subsets of $X$, no non-empty subcollection of which is tight.\n\nNote. A subset $A$ of $X$ is proper if $A \\neq X$. The sets in a collection are assumed to be distinct. The whole collection is assumed to be a subcollection.\n\n## Alexander Polyansky, Russia", "solution": ". (Ilya Bogdanov) The required maximum is $2 n-2$. To describe a ( $2 n-2$ )-element collection satisfying the required conditions, write $X=\\{1,2, \\ldots, n\\}$ and set $B_{k}=\\{1,2, \\ldots, k\\}$, $k=1,2, \\ldots, n-1$, and $B_{k}=\\{k-n+2, k-n+3, \\ldots, n\\}, k=n, n+1, \\ldots, 2 n-2$. To show that no subcollection of the $B_{k}$ is tight, consider a subcollection $\\mathcal{C}$ whose union $U$ is a proper subset of $X$, let $m$ be an element in $X \\backslash U$, and notice that $\\mathcal{C}$ is a subcollection of $\\left\\{B_{1}, \\ldots, B_{m-1}, B_{m+n-1}, \\ldots, B_{2 n-2}\\right\\}$, since the other $B$ 's are precisely those containing $m$. If $U$ contains elements less than $m$, let $k$ be the greatest such and notice that $B_{k}$ is the only member of $\\mathcal{C}$ containing $k$; and if $U$ contains elements greater than $m$, let $k$ be the least such and notice that $B_{k+n-2}$ is the only member of $\\mathcal{C}$ containing $k$. Consequently, $\\mathcal{C}$ is not tight.\n\nWe now proceed to show by induction on $n \\geq 2$ that the cardinality of a collection of proper non-empty subsets of $X$, no subcollection of which is tight, does not exceed $2 n-2$. The base case $n=2$ is clear, so let $n>2$ and suppose, if possible, that $\\mathcal{B}$ is a collection of $2 n-1$ proper non-empty subsets of $X$ containing no tight subcollection.\n\nTo begin, notice that $\\mathcal{B}$ has an empty intersection: if the members of $\\mathcal{B}$ shared an element $x$, then $\\mathcal{B}^{\\prime}=\\{B \\backslash\\{x\\}: B \\in \\mathcal{B}, B \\neq\\{x\\}\\}$ would be a collection of at least $2 n-2$ proper non-empty subsets of $X \\backslash\\{x\\}$ containing no tight subcollection, and the induction hypothesis would be contradicted.\n\nNow, for every $x$ in $X$, let $\\mathcal{B}_{x}$ be the (non-empty) collection of all members of $\\mathcal{B}$ not containing $x$. Since no subcollection of $\\mathcal{B}$ is tight, $\\mathcal{B}_{x}$ is not tight, and since the union of $\\mathcal{B}_{x}$ does not contain $x$, some $x^{\\prime}$ in $X$ is covered by a single member of $\\mathcal{B}_{x}$. In other words, there is a single set in $\\mathcal{B}$ covering $x^{\\prime}$ but not $x$. In this case, draw an arrow from $x$ to $x^{\\prime}$. Since there is at least one arrow from each $x$ in $X$, some of these arrows form a (minimal) cycle $x_{1} \\rightarrow x_{2} \\rightarrow \\cdots \\rightarrow x_{k} \\rightarrow x_{k+1}=x_{1}$ for some suitable integer $k \\geq 2$. Let $A_{i}$ be the unique member of $\\mathcal{B}$ containing $x_{i+1}$ but not $x_{i}$, and let $X^{\\prime}=\\left\\{x_{1}, x_{2}, \\ldots, x_{k}\\right\\}$.\n\nRemove $A_{1}, A_{2}, \\ldots, A_{k}$ from $\\mathcal{B}$ to obtain a collection $\\mathcal{B}^{\\prime}$ each member of which either contains or is disjoint from $X^{\\prime}$ : for if a member $B$ of $\\mathcal{B}^{\\prime}$ contained some but not all elements of $X^{\\prime}$, then $B$ should contain $x_{i+1}$ but not $x_{i}$ for some $i$, and $B=A_{i}$, a contradiction. This rules out the case $k=n$, for otherwise $\\mathcal{B}=\\left\\{A_{1}, A_{2}, \\ldots, A_{n}\\right\\}$, so $|\\mathcal{B}|<2 n-1$.\n\nTo rule out the case $k2$.\n\nFirstly, we perform a different modification of $\\mathcal{B}$. Choose any $x \\in X$, and consider the subcollection $\\mathcal{B}_{x}=\\{B: B \\in \\mathcal{B}, x \\notin B\\}$. By our assumption, $\\mathcal{B}_{x}$ is not tight. As the union of sets in $\\mathcal{B}_{x}$ is distinct from $X$, either this collection is empty, or there exists an element $y \\in X$ contained in a unique member $A_{x}$ of $\\mathcal{B}_{x}$. In the former case, we add the set $B_{x}=X \\backslash\\{x\\}$ to $\\mathcal{B}$, and in the latter we replace $A_{x}$ by $B_{x}$, to form a new collection $\\mathcal{B}^{\\prime}$. (Notice that if $B_{x} \\in \\mathcal{B}$, then $B_{x} \\in \\mathcal{B}_{x}$ and $y \\in B_{x}$, so $B_{x}=A_{x}$.)\n\nWe claim that the collection $\\mathcal{B}^{\\prime}$ is also good. Indeed, if $\\mathcal{B}^{\\prime}$ has a tight subcollection $\\mathcal{T}$, then $B_{x}$ should lie in $\\mathcal{T}$. Then, as the union of the sets in $\\mathcal{T}$ is distinct from $X$, we should have $\\mathcal{T} \\subseteq \\mathcal{B}_{x} \\cup\\left\\{B_{x}\\right\\}$. But in this case an element $y$ is contained in a unique member of $\\mathcal{T}$, namely $B_{x}$, so $\\mathcal{T}$ is not tight - a contradiction.\n\nPerform this procedure for every $x \\in X$, to get a good collection $\\mathcal{B}$ containing the sets $B_{x}=X \\backslash\\{x\\}$ for all $x \\in X$. Consider now an element $x \\in X$ such that $\\left|\\mathcal{B}_{x}\\right|$ is maximal. As we have mentioned before, there exists an element $y \\in X$ belonging to a unique member (namely, $B_{x}$ ) of $\\mathcal{B}_{x}$. Thus, $\\mathcal{B}_{x} \\backslash\\left\\{B_{x}\\right\\} \\subset \\mathcal{B}_{y}$; also, $B_{y} \\in \\mathcal{B}_{y} \\backslash \\mathcal{B}_{x}$. Thus we get $\\left|\\mathcal{B}_{y}\\right| \\geq\\left|\\mathcal{B}_{x}\\right|$, which by the maximality assumption yields the equality, which in turn means that $\\mathcal{B}_{y}=\\left(\\mathcal{B}_{x} \\backslash\\left\\{B_{x}\\right\\}\\right) \\cup\\left\\{B_{y}\\right\\}$.\n\nTherefore, each set in $\\mathcal{B} \\backslash\\left\\{B_{x}, B_{y}\\right\\}$ contains either both $x$ and $y$, or none of them. Collapsing $\\{x, y\\}$ to singleton $x^{*}$, we get a new collection of $|\\mathcal{B}|-2$ subsets of $(X \\backslash\\{x, y\\}) \\cup\\left\\{x^{*}\\right\\}$ containing no tight subcollection. This contradicts minimality of $n$.\n\nRemarks. 1. Removal of the condition that subsets be proper would only increase the maximum by 1. The 'non-emptiness' condition could also be omitted, since the empty set forms a tight collection by itself, but the argument is a bit too formal to be considered.\n2. There are many different examples of good collections of $2 n-2$ sets. E.g., applying the algorithm from the first part of Solution 2 to the example shown in Solution 1, one may get the following example: $B_{k}=\\{1,2, \\ldots, k\\}, k=1,2, \\ldots, n-1$, and $B_{k}=X \\backslash\\{k-n+1\\}$, $k=n, n+1, \\ldots, 2 n-2$.", "problem_match": "\nProblem 3.", "solution_match": "\nSolution 3"} diff --git a/RMM/segmented/en-2017-Solutions_RMM2017-2.jsonl b/RMM/segmented/en-2017-Solutions_RMM2017-2.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..902f145be023add624a67b3bed14e9a343918d60 --- /dev/null +++ b/RMM/segmented/en-2017-Solutions_RMM2017-2.jsonl @@ -0,0 +1,8 @@ +{"year": "2017", "problem_label": "4", "tier": 1, "problem": "In the Cartesian plane, let $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ be the graphs of the quadratic functions $f_{1}(x)=p_{1} x^{2}+q_{1} x+r_{1}$ and $f_{2}(x)=p_{2} x^{2}+q_{2} x+r_{2}$, where $p_{1}>0>p_{2}$. The graphs $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ cross at distinct points $A$ and $B$. The four tangents to $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ at $A$ and $B$ form a convex quadrilateral which has an inscribed circle. Prove that the graphs $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ have the same axis of symmetry.\n\n## Alexey Zaslavsky, Russia", "solution": ". Let $\\mathcal{A}_{i}$ and $\\mathcal{B}_{i}$ be the tangents to $\\mathcal{G}_{i}$ at $A$ and $B$, respectively, and let $C_{i}=\\mathcal{A}_{i} \\cap \\mathcal{B}_{i}$. Since $f_{1}(x)$ is convex and $f_{2}(x)$ is concave, the convex quadrangle formed by the four tangents is exactly $A C_{1} B C_{2}$.\nLemma. If $C A$ and $C B$ are the tangents drawn from a point $C$ to the graph $\\mathcal{G}$ of a quadratic trinomial $f(x)=p x^{2}+q x+r, A, B \\in \\mathcal{G}, A \\neq B$, then the abscissa of $C$ is the arithmetic mean of the abscissae of $A$ and $B$.\nProof. Assume, without loss of generality, that $C$ is at the origin, so the equations of the two tangents have the form $y=k_{a} x$ and $y=k_{b} x$. Next, the abscissae $x_{A}$ and $x_{B}$ of the tangency points $A$ and $B$, respectively, are multiple roots of the polynomials $f(x)-k_{a} x$ and $f(x)-k_{b} x$, respectively. By the Vieta theorem, $x_{A}^{2}=r / p=x_{B}^{2}$, so $x_{A}=-x_{B}$, since the case $x_{A}=x_{B}$ is ruled out by $A \\neq B$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-1.jpg?height=686&width=1522&top_left_y=1322&top_left_x=245)\n\nThe Lemma shows that the line $C_{1} C_{2}$ is parallel to the $y$-axis and the points $A$ and $B$ are equidistant from this line.\n\nSuppose, if possible, that the incentre $O$ of the quadrangle $A C_{1} B C_{2}$ does not lie on the line $C_{1} C_{2}$. Assume, without loss of generality, that $O$ lies inside the triangle $A C_{1} C_{2}$ and let $A^{\\prime}$ be the reflection of $A$ in the line $C_{1} C_{2}$. Then the ray $C_{i} B$ emanating from $C_{i}$ lies inside the angle $A C_{i} A^{\\prime}$, so $B$ lies inside the quadrangle $A C_{1} A^{\\prime} C_{2}$, whence $A$ and $B$ are not equidistant from $C_{1} C_{2}-$ a contradiction.\n\nThus $O$ lies on $C_{1} C_{2}$, so the lines $A C_{i}$ and $B C_{i}$ are reflections of one another in the line $C_{1} C_{2}$, and $B=A^{\\prime}$. Hence $y_{A}=y_{B}$, and since $f_{i}(x)=y_{A}+p_{i}\\left(x-x_{A}\\right)\\left(x-x_{B}\\right)$, the line $C_{1} C_{2}$ is the axis of symmetry of both parabolas, as required.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 1"} +{"year": "2017", "problem_label": "4", "tier": 1, "problem": "In the Cartesian plane, let $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ be the graphs of the quadratic functions $f_{1}(x)=p_{1} x^{2}+q_{1} x+r_{1}$ and $f_{2}(x)=p_{2} x^{2}+q_{2} x+r_{2}$, where $p_{1}>0>p_{2}$. The graphs $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ cross at distinct points $A$ and $B$. The four tangents to $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ at $A$ and $B$ form a convex quadrilateral which has an inscribed circle. Prove that the graphs $\\mathcal{G}_{1}$ and $\\mathcal{G}_{2}$ have the same axis of symmetry.\n\n## Alexey Zaslavsky, Russia", "solution": ". Use the standard equation of a tangent to a smooth curve in the plane, to deduce that the tangents at two distinct points $A$ and $B$ on the parabola of equation $y=p x^{2}+q x+r$,\n$p \\neq 0$, meet at some point $C$ whose coordinates are\n\n$$\nx_{C}=\\frac{1}{2}\\left(x_{A}+x_{B}\\right) \\quad \\text { and } \\quad y_{C}=p x_{A} x_{B}+q \\cdot \\frac{1}{2}\\left(x_{A}+x_{B}\\right)+r .\n$$\n\nUsage of the standard formula for Euclidean distance yields\n\n$$\nC A=\\frac{1}{2}\\left|x_{B}-x_{A}\\right| \\sqrt{1+\\left(2 p x_{A}+q\\right)^{2}} \\quad \\text { and } \\quad C B=\\frac{1}{2}\\left|x_{B}-x_{A}\\right| \\sqrt{1+\\left(2 p x_{B}+q\\right)^{2}},\n$$\n\nso, after obvious manipulations,\n\n$$\nC B-C A=\\frac{2 p\\left(x_{B}-x_{A}\\right)\\left|x_{B}-x_{A}\\right|\\left(p\\left(x_{A}+x_{B}\\right)+q\\right)}{\\sqrt{1+\\left(2 p x_{A}+q\\right)^{2}}+\\sqrt{1+\\left(2 p x_{B}+q\\right)^{2}}}\n$$\n\nNow, write the condition in the statement in the form $C_{1} B-C_{1} A=C_{2} B-C_{2} A$, apply the above formula and clear common factors to get\n\n$$\n\\frac{p_{1}\\left(p_{1}\\left(x_{A}+x_{B}\\right)+q_{1}\\right)}{\\sqrt{1+\\left(2 p_{1} x_{A}+q_{1}\\right)^{2}}+\\sqrt{1+\\left(2 p_{1} x_{B}+q_{1}\\right)^{2}}}=\\frac{p_{2}\\left(p_{2}\\left(x_{A}+x_{B}\\right)+q_{2}\\right)}{\\sqrt{1+\\left(2 p_{2} x_{A}+q_{2}\\right)^{2}}+\\sqrt{1+\\left(2 p_{2} x_{B}+q_{2}\\right)^{2}}}\n$$\n\nNext, use the fact that $x_{A}$ and $x_{B}$ are the solutions of the quadratic equation $\\left(p_{1}-p_{2}\\right) x^{2}+$ $\\left(q_{1}-q_{2}\\right) x+r_{1}-r_{2}=0$, so $x_{A}+x_{B}=-\\left(q_{1}-q_{2}\\right) /\\left(p_{1}-p_{2}\\right)$, to obtain\n\n$$\n\\frac{p_{1}\\left(p_{1} q_{2}-p_{2} q_{1}\\right)}{\\sqrt{1+\\left(2 p_{1} x_{A}+q_{1}\\right)^{2}}+\\sqrt{1+\\left(2 p_{1} x_{B}+q_{1}\\right)^{2}}}=\\frac{p_{2}\\left(p_{1} q_{2}-p_{2} q_{1}\\right)}{\\sqrt{1+\\left(2 p_{2} x_{A}+q_{2}\\right)^{2}}+\\sqrt{1+\\left(2 p_{2} x_{B}+q_{2}\\right)^{2}}} .\n$$\n\nFinally, since $p_{1} p_{2}<0$ and the denominators above are both positive, the last equality forces $p_{1} q_{2}-p_{2} q_{1}=0$; that is, $q_{1} / p_{1}=q_{2} / p_{2}$, so the two parabolas have the same axis.\n\nRemarks. The are, of course, several different proofs of the Lemma in Solution 1 - in particular, computational. Another argument relies on the following consequence of focal properties: The tangents to a parabola at two points meet at the circumcentre of the triangle formed by the focus and the orthogonal projections of those points on the directrix. Since the directrix of the parabola in the lemma is parallel to the axis of abscissae, the conclusion follows.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 2"} +{"year": "2017", "problem_label": "5", "tier": 1, "problem": "Fix an integer $n \\geq 2$. An $n \\times n$ sieve is an $n \\times n$ array with $n$ cells removed so that exactly one cell is removed from every row and every column. A stick is a $1 \\times k$ or $k \\times 1$ array for any positive integer $k$. For any sieve $A$, let $m(A)$ be the minimal number of sticks required to partition $A$. Find all possible values of $m(A)$, as $A$ varies over all possible $n \\times n$ sieves.\n\nPalmer Mebane and Nikolai Beluhov", "solution": ". Given $A, m(A)=2 n-2$, and it is achieved, for instance, by dissecting $A$ along all horizontal (or vertical) grid lines. It remains to prove that $m(A) \\geq 2 n-2$ for every $A$.\n\nBy holes we mean the cells which are cut out from the board. The cross of a hole in $A$ is the union of the row and the column through that hole.\n\nArguing indirectly, consider a dissection of $A$ into $2 n-3$ or fewer sticks. Horizontal sticks are all labelled $h$, and vertical sticks are labelled $v ; 1 \\times 1$ sticks are both horizontal and vertical, and labelled arbitrarily. Each cell of $A$ inherits the label of the unique containing stick.\n\nAssign each stick in the dissection to the cross of the unique hole on its row, if the stick is horizontal; on its column, if the stick is vertical.\n\nSince there are at most $2 n-3$ sticks and exactly $n$ crosses, there are two crosses each of which is assigned to at most one stick in the dissection. Let the crosses be $c$ and $d$, centred at $a=\\left(x_{a}, y_{a}\\right)$ and $b=\\left(x_{b}, y_{b}\\right)$, respectively, and assume, without loss of generality, $x_{a}n$, in which case the sticks in $S$ span all $n$ columns, and notice that we are again done if $|S| \\leq n$, to assume further $|S|>n$.\n\nLet $S^{\\prime}=G_{h} \\backslash S$, let $T$ be set of all neighbours of $S$, and let $T^{\\prime}=G_{v} \\backslash T$. Since the sticks in $S$ span all $n$ columns, $|T| \\geq n$, so $\\left|T^{\\prime}\\right| \\leq n-2$. Transposition of the above argument (replace $S$ by $T^{\\prime}$, shows that $\\left|T^{\\prime}\\right| \\leq\\left|S^{\\prime}\\right|$, so $|S| \\leq|T|$.\nRemark. Here is an alternative argument for $s=|S|>n$. Add to $S$ two empty sticks formally present to the left of the leftmost hole and to the right of the rightmost one. Then there are at\nleast $s-n+2$ rows containing two sticks from $S$, so two of them are separated by at least $s-n$ other rows. Each hole in those $s-n$ rows separates two vertical sticks from $G_{v}$ both of which are neighbours of $S$. Thus the vertices of $S$ have at least $n+(s-n)$ neighbours.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 3"} +{"year": "2017", "problem_label": "5", "tier": 1, "problem": "Fix an integer $n \\geq 2$. An $n \\times n$ sieve is an $n \\times n$ array with $n$ cells removed so that exactly one cell is removed from every row and every column. A stick is a $1 \\times k$ or $k \\times 1$ array for any positive integer $k$. For any sieve $A$, let $m(A)$ be the minimal number of sticks required to partition $A$. Find all possible values of $m(A)$, as $A$ varies over all possible $n \\times n$ sieves.\n\nPalmer Mebane and Nikolai Beluhov", "solution": ". Yet another proof of the estimate $m(A) \\geq 2 n-2$. We use the induction on $n$. Now we need the base cases $n=2,3$ which can be completed by hands.\n\nAssume now that $n>3$ and consider any dissection of $A$ into sticks. Define the cross of a hole as in Solution 1, and notice that each stick is contained in some cross. Thus, if the dissection contains more than $n$ sticks, then there exists a cross containing at least two sticks. In this case, remove this cross from the sieve to obtain an $(n-1) \\times(n-1)$ sieve. The dissection of the original sieve induces a dissection of the new array: even if a stick is partitioned into two by the removed cross, then the remaining two parts form a stick in the new array. After this operation has been performed, the number of sticks decreases by at least 2, and by the induction hypothesis the number of sticks in the new dissection is at least $2 n-4$. Hence, the initial dissection contains at least $(2 n-4)+2=2 n-2$ sticks, as required.\n\nIt remains to rule out the case when the dissection contains at most $n$ sticks. This can be done in many ways, one of which is removal a cross containing some stick. The resulting dissection of an $(n-1) \\times(n-1)$ array contains at most $n-1$ sticks, which is impossible by the induction hypothesis since $n-1<2(n-1)-2$.\n\nRemark. The idea of removing a cross containing at least two sticks arises naturally when one follows an inductive approach. But it is much trickier to finish the solution using this approach, unless one starts to consider removing each cross instead of removing a specific one.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 4"} +{"year": "2017", "problem_label": "6", "tier": 1, "problem": "Let $A B C D$ be any convex quadrilateral and let $P, Q, R, S$ be points on the segments $A B, B C, C D$, and $D A$, respectively. It is given that the segments $P R$ and $Q S$ dissect $A B C D$ into four quadrilaterals, each of which has perpendicular diagonals. Show that the points $P, Q, R, S$ are concyclic.\n\nNikOlai Beluhov", "solution": ". We start with a lemma which holds even in a more general setup.\nLemma 1. Let $P Q R S$ be a convex quadrangle whose diagonals meet at $O$. Let $\\omega_{1}$ and $\\omega_{2}$ be the circles on diameters $P Q$ and $R S$, respectively, and let $\\ell$ be their radical axis. Finally, choose the points $A, B$, and $C$ outside this quadrangle so that: the point $P$ (respectively, $Q$ ) lies on the segment $A B$ (respectively, $B C$ ); and $A O \\perp P S, B O \\perp P Q$, and $C O \\perp Q R$. Then the three lines $A C, P Q$, and $\\ell$ are concurrent or parallel.\n\nProof. Assume first that the lines $P R$ and $Q S$ are not perpendicular. Let $H_{1}$ and $H_{2}$ be the orthocentres of the triangles $O S P$ and $O Q R$, respectively; notice that $H_{1}$ and $H_{2}$ do not coincide.\n\nSince $H_{1}$ is the radical centre of the circles on diameters $R S, S P$, and $P Q$, it lies on $\\ell$. Similarly, $H_{2}$ lies on $\\ell$, so the lines $H_{1} H_{2}$ and $\\ell$ coincide.\n\nThe corresponding sides of the triangles $A P H_{1}$ and $C Q H_{2}$ meet at $O, B$, and the orthocentre of the triangle $O P Q$ (which lies on $O B$ ). By Desargues' theorem, the lines $A C, P Q$ and $\\ell$ are concurrent or parallel.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-6.jpg?height=732&width=1037&top_left_y=1119&top_left_x=484)\n\nThe case when $P R \\perp Q S$ may be considered as a limit case, since the configuration in the statement of the lemma allows arbitrarily small perturbations. The lemma is proved.\n\nBack to the problem, let the segments $P R$ and $Q S$ cross at $O$, let $\\omega_{1}$ and $\\omega_{2}$ be the circles on diameters $P Q$ and $R S$, respectively, and let $\\ell$ be their radical axis. By the Lemma, the three lines $A C$, $\\ell$, and $P Q$ are concurrent or parallel, and similarly so are the three lines $A C, \\ell$, and $R S$. Thus, if the lines $A C$ and $\\ell$ are distinct, all four lines are concurrent or pairwise parallel.\n\nThis is clearly the case when the lines $P S$ and $Q R$ are not parallel (since $\\ell$ crosses $O A$ and $O C$ at the orthocentres of $O S P$ and $O Q R$, these orthocentres being distinct from $A$ and $C$ ). In this case, denote the concurrency point by $T$. If $T$ is not ideal, then we have $T P \\cdot T Q=T R \\cdot T S$ (as $T \\in \\ell$ ), so $P Q R S$ is cyclic. If $T$ is ideal (i.e., all four lines are parallel), then the segments $P Q$ and $R S$ have the same perpendicular bisector (namely, the line of centers of $\\omega_{1}$ and $\\omega_{2}$ ), and $P Q R S$ is cyclic again.\n\nAssume now $P S$ and $Q R$ parallel. By symmetry, $P Q$ and $R S$ may also be assumed parallel: otherwise, the preceding argument goes through after relabelling. In this case, we need to prove that the parallelogram $P Q R S$ is a rectangle.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-7.jpg?height=772&width=1603&top_left_y=168&top_left_x=199)\n\nSuppose, by way of contradiction, that $O P>O Q$. Let the line through $O$ and parallel to $P Q$ meet $A B$ at $M$, and $C B$ at $N$. Since $O P>O Q$, the angle $S P Q$ is acute and the angle $P Q R$ is obtuse, so the angle $A O B$ is obtuse, the angle $B O C$ is acute, $M$ lies on the segment $A B$, and $N$ lies on the extension of the segment $B C$ beyond $C$. Therefore: $O A>O M$, since the angle $O M A$ is obtuse; $O M>O N$, since $O M: O N=K P: K Q$, where $K$ is the projection of $O$ onto $P Q$; and $O N>O C$, since the angle $O C N$ is obtuse. Consequently, $O A>O C$.\n\nSimilarly, $O R>O S$ yields $O C>O A$ : a contradiction. Consequently, $O P=O Q$ and $P Q R S$ is a rectangle. This ends the proof.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution 1"} +{"year": "2017", "problem_label": "6", "tier": 1, "problem": "Let $A B C D$ be any convex quadrilateral and let $P, Q, R, S$ be points on the segments $A B, B C, C D$, and $D A$, respectively. It is given that the segments $P R$ and $Q S$ dissect $A B C D$ into four quadrilaterals, each of which has perpendicular diagonals. Show that the points $P, Q, R, S$ are concyclic.\n\nNikOlai Beluhov", "solution": ". (Ilya Bogdanov) To begin, we establish a useful lemma.\nLemma 2. If $P$ is a point on the side $A B$ of a triangle $O A B$, then\n\n$$\n\\frac{\\sin A O P}{O B}+\\frac{\\sin P O B}{O A}=\\frac{\\sin A O B}{O P}\n$$\n\nProof. Let $[X Y Z]$ denote the area of a triangle $X Y Z$, to write\n$0=2([A O B]-[P O B]-[P O C])=O A \\cdot O B \\cdot \\sin A O B-O B \\cdot O P \\cdot \\sin P O B-O P \\cdot O A \\cdot \\sin A O P$,\nand divide by $O A \\cdot O B \\cdot O P$ to get the required identity.\nA similar statement remains valid if the point $C$ lies on the line $A B$; the proof is obtained by using signed areas and directed lengths.\n\nWe now turn to the solution. We first prove some sort of a converse statement, namely:\nClaim. Let $P Q R S$ be a cyclic quadrangle with $O=P R \\cap Q S$; assume that no its diagonal is perpendicular to a side. Let $\\ell_{A}, \\ell_{B}, \\ell_{C}$, and $\\ell_{D}$ be the lines through $O$ perpendicular to $S P$, $P Q, Q R$, and $R S$, respectively. Choose any point $A \\in \\ell_{A}$ and successively define $B=A P \\cap \\ell_{B}$, $C=B Q \\cap \\ell_{C}, D=C R \\cap \\ell_{D}$, and $A^{\\prime}=D S \\cap \\ell_{A}$. Then $A^{\\prime}=A$.\n\nProof. We restrict ourselves to the case when the points $A, B, C, D$, and $A^{\\prime}$ lie on $\\ell_{A}, \\ell_{B}$, $\\ell_{C}, \\ell_{D}$, and $\\ell_{A}$ on the same side of $O$ as their points of intersection with the respective sides of the quadrilateral $P Q R S$. Again, a general case is obtained by suitable consideration of directed lengths.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-8.jpg?height=755&width=1252&top_left_y=148&top_left_x=376)\n\nDenote\n\n$$\n\\begin{gathered}\n\\alpha=\\angle Q P R=\\angle Q S R=\\pi / 2-\\angle P O B=\\pi / 2-\\angle D O S \\\\\n\\beta=\\angle R P S=\\angle R Q S=\\pi / 2-\\angle A O P=\\pi / 2-\\angle Q O C \\\\\n\\gamma=\\angle S Q P=\\angle S R P=\\pi / 2-\\angle B O Q=\\pi / 2-\\angle R O D \\\\\n\\delta=\\angle P R Q=\\angle P S Q=\\pi / 2-\\angle C O R=\\pi / 2-\\angle S O A\n\\end{gathered}\n$$\n\nBy Lemma 2 applied to the lines $A P B, P Q C, C R D$, and $D S A^{\\prime}$, we get\n\n$$\n\\begin{array}{ll}\n\\frac{\\sin (\\alpha+\\beta)}{O P}=\\frac{\\cos \\alpha}{O A}+\\frac{\\cos \\beta}{O B}, & \\frac{\\sin (\\beta+\\gamma)}{O Q}=\\frac{\\cos \\beta}{O B}+\\frac{\\cos \\gamma}{O C} \\\\\n\\frac{\\sin (\\gamma+\\delta)}{O R}=\\frac{\\cos \\gamma}{O C}+\\frac{\\cos \\delta}{O D}, & \\frac{\\sin (\\delta+\\alpha)}{O S}=\\frac{\\cos \\delta}{O D}+\\frac{\\cos \\alpha}{O A^{\\prime}}\n\\end{array}\n$$\n\nAdding the two equalities on the left and subtracting the two on the right, we see that the required equality $A=A^{\\prime}$ (i.e., $\\cos \\alpha / O A=\\cos \\alpha / O A^{\\prime}$, in view of $\\cos \\alpha \\neq 0$ ) is equivalent to the relation\n\n$$\n\\frac{\\sin Q P S}{O P}+\\frac{\\sin S R Q}{O R}=\\frac{\\sin P Q R}{O Q}+\\frac{\\sin R S P}{O S}\n$$\n\nLet $d$ denote the circumdiameter of $P Q R S$, so $\\sin Q P S=\\sin S R Q=Q S / d$ and $\\sin R S P=$ $\\sin P Q R=P R / d$. Thus the required relation reads\n\n$$\n\\frac{Q S}{O P}+\\frac{Q S}{O R}=\\frac{P R}{O S}+\\frac{P R}{O Q}, \\quad \\text { or } \\quad \\frac{Q S \\cdot P R}{O P \\cdot O R}=\\frac{P R \\cdot Q S}{O S \\cdot O Q}\n$$\n\nThe last relation is trivial, due again to cyclicity.\nFinally, it remains to derive the problem statement from our Claim. Assume that $P Q R S$ is not cyclic, e.g., that $O P \\cdot O R>O Q \\cdot O S$, where $O=P R \\cap Q S$. Mark the point $S^{\\prime}$ on the ray $O S$ so that $O P \\cdot O R=O Q \\cdot O S^{\\prime}$. Notice that no diagonal of $P Q R S$ is perpendicular to a side, so the quadrangle $P Q R S^{\\prime}$ satisfies the conditions of the claim.\n\nLet $\\ell_{A}^{\\prime}$ and $\\ell_{D}^{\\prime}$ be the lines through $O$ perpendicular to $P S^{\\prime}$ and $R S^{\\prime}$, respectively. Then $\\ell_{A}^{\\prime}$ and $\\ell_{D}^{\\prime}$ cross the segments $A P$ and $R D$, respectively, at some points $A^{\\prime}$ and $D^{\\prime}$. By the Claim, the line $A^{\\prime} D^{\\prime}$ passes through $S^{\\prime}$. This is impossible, because the segment $A^{\\prime} D^{\\prime}$ crosses the segment $O S$ at some interior point, while $S^{\\prime}$ lies on the extension of this segment. This contradiction completes the proof.\n\nRemark. According to the author, there is a remarkable corollary that is worth mentioning: Four lines dissect a convex quadrangle into nine smaller quadrangles to make it into a $3 \\times 3$ array\n![](https://cdn.mathpix.com/cropped/2024_11_22_d29182744a295e1fef3cg-9.jpg?height=632&width=1075&top_left_y=158&top_left_x=462)\nof quadrangular cells. Label these cells 1 through 9 from left to right and from top to bottom. If the first eight cells are orthodiagonal, then so is the ninth.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution 2"} diff --git a/RMM/segmented/en-2018-RMM2018-Day1-English.jsonl b/RMM/segmented/en-2018-RMM2018-Day1-English.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..09a80e25757d871008a6323795a6b52c4f884e5e --- /dev/null +++ b/RMM/segmented/en-2018-RMM2018-Day1-English.jsonl @@ -0,0 +1,4 @@ +{"year": "2018", "problem_label": "1", "tier": 1, "problem": "Let $A B C D$ be a cyclic quadrangle and let $P$ be a point on the side $A B$. The diagonal $A C$ crosses the segment $D P$ at $Q$. The parallel through $P$ to $C D$ crosses the extension of the side $B C$ beyond $B$ at $K$, and the parallel through $Q$ to $B D$ crosses the extension of the side $B C$ beyond $B$ at $L$. Prove that the circumcircles of the triangles $B K P$ and $C L Q$ are tangent.\n\n## AleksandR Kuznetsov, Russia", "solution": "We show that the circles $B K P$ and $C L Q$ are tangent at the point $T$ where the line $D P$ crosses the circle $A B C D$ again.\n\nSince $B C D T$ is cyclic, we have $\\angle K B T=\\angle C D T$. Since $K P \\| C D$, we get $\\angle C D T=\\angle K P T$. Thus, $\\angle K B T=\\angle C D T=\\angle K P T$, which shows that $T$ lies on the circle $B K P$. Similarly, the equalities $\\angle L C T=\\angle B D T=\\angle L Q T$ show that $T$ also lies on the circle $C L Q$.\n\nIt remains to prove that these circles are indeed tangent at $T$. This follows from the fact that the chords $T P$ and $T Q$ in the circles $B K T P$ and $C L T Q$, respectively, both lie along the same line and subtend equal angles $\\angle T B P=\\angle T B A=\\angle T C A=\\angle T C Q$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d0c1b0fd94de7f0403b4g-1.jpg?height=1024&width=1298&top_left_y=1110&top_left_x=359)\n\nRemarks. The point $T$ may alternatively be defined as the Miquel point of (any four of) the five lines $A B, B C, A C, K P$, and $L Q$.\n\nOf course, the result still holds if $P$ is chosen on the line $A B$, and the other points lie on the corresponding lines rather than segments/rays. The current formulation was chosen in order to avoid case distinction based on the possible configurations of points.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution."} +{"year": "2018", "problem_label": "2", "tier": 1, "problem": "Determine whether there exist non-constant polynomials $P(x)$ and $Q(x)$ with real coefficients satisfying\n\n$$\nP(x)^{10}+P(x)^{9}=Q(x)^{21}+Q(x)^{20} .\n$$\n\n## Ilya Bogdanov, Russia", "solution": ". The answer is in the negative. Comparing the degrees of both sides in (*) we get $\\operatorname{deg} P=21 n$ and $\\operatorname{deg} Q=10 n$ for some positive integer $n$. Take the derivative of $(*)$ to obtain\n\n$$\nP^{\\prime} P^{8}(10 P+9)=Q^{\\prime} Q^{19}(21 Q+20)\n$$\n\nSince $\\operatorname{gcd}(10 P+9, P)=\\operatorname{gcd}(10 P+9, P+1)=1$, it follows that $\\operatorname{gcd}\\left(10 P+9, P^{9}(P+1)\\right)=1$, so $\\operatorname{gcd}(10 P+9, Q)=1$, by $(*)$. Thus $(* *)$ yields $10 P+9 \\mid Q^{\\prime}(21 Q+20)$, which is impossible since $0<\\operatorname{deg}\\left(Q^{\\prime}(21 Q+20)\\right)=20 n-1<21 n=\\operatorname{deg}(10 P+9)$. A contradiction.\n\nRemark. A similar argument shows that there are no non-constant solutions of $P^{m}+P^{m-1}=$ $Q^{k}+Q^{k-1}$, where $k$ and $m$ are positive integers with $k \\geq 2 m$. A critical case is $k=2 m$; but in this case there exist more routine ways of solving the problem. Thus, we decided to choose $k=2 m+1$.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 1"} +{"year": "2018", "problem_label": "2", "tier": 1, "problem": "Determine whether there exist non-constant polynomials $P(x)$ and $Q(x)$ with real coefficients satisfying\n\n$$\nP(x)^{10}+P(x)^{9}=Q(x)^{21}+Q(x)^{20} .\n$$\n\n## Ilya Bogdanov, Russia", "solution": ". Letting $r$ and $s$ be integers such that $r \\geq 2$ and $s \\geq 2 r$, we show that if $P^{r}+P^{r-1}=$ $Q^{s}+Q^{s-1}$, then $Q$ is constant.\n\nLet $m=\\operatorname{deg} P$ and $n=\\operatorname{deg} Q$. A degree inspection in the given relation shows that $m \\geq 2 n$.\nWe will prove that $P(P+1)$ has at least $m+1$ distinct complex roots. Assuming this for the moment, notice that $Q$ takes on one of the values 0 or -1 at each of those roots. Since $m+1 \\geq 2 n+1$, it follows that $Q$ takes on one of the values 0 and -1 at more than $n$ distinct points, so $Q$ must be constant.\n\nFinally, we prove that $P(P+1)$ has at least $m+1$ distinct complex roots. This can be done either by referring to the Mason-Stothers theorem or directly, in terms of multiplicities of the roots in question.\n\nSince $P$ and $P+1$ are relatively prime, the Mason-Stothers theorem implies that the number of distinct roots of $P(P+1)$ is greater than $m$, hence at least $m+1$.\n\nFor a direct proof, let $z_{1}, \\ldots, z_{t}$ be the distinct complex roots of $P(P+1)$, and let $z_{k}$ have multiplicity $\\alpha_{k}, k=1, \\ldots, t$. Since $P$ and $P+1$ have no roots in common, and $P^{\\prime}=(P+1)^{\\prime}$, it follows that $P^{\\prime}$ has a root of multiplicity $\\alpha_{k}-1$ at $z_{k}$. Consequently, $m-1=\\operatorname{deg} P^{\\prime} \\geq$ $\\sum_{k=1}^{t}\\left(\\alpha_{k}-1\\right)=\\sum_{k=1}^{t} \\alpha_{k}-t=2 m-t$; that is, $t \\geq m+1$. This completes the prof.\n\nRemark. The Mason-Stothers theorem (in a particular case over the complex field) claims that, given coprime complex polynomials $P(x), Q(x)$, and $R(x)$, not all constant, such that $P(x)+Q(x)=R(x)$, the total number of their complex roots (not regarding multiplicities) is at least $\\max \\{\\operatorname{deg} P, \\operatorname{deg} Q, \\operatorname{deg} R\\}+1$. This theorem was a part of motivation for the famous $a b c$-conjecture.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution 2"} +{"year": "2018", "problem_label": "3", "tier": 1, "problem": "Ann and Bob play a game on an infinite checkered plane making moves in turn; Ann makes the first move. A move consists in orienting any unit grid-segment that has not been oriented before. If at some stage some oriented segments form an oriented cycle, Bob wins. Does Bob have a strategy that guarantees him to win?\n\nMaxim Didin, Russia", "solution": "The answer is in the negative: Ann has a strategy allowing her to prevent Bob's victory.\n\nWe say that two unit grid-segments form a low-left corner (or LL-corner) if they share an endpoint which is the lowest point of one and the leftmost point of the other. An up-right corner (or $U R$-corner) is defined similarly. The common endpoint of two unit grid-segments at a corner is the joint of that corner.\n\nFix a vertical line on the grid and call it the midline; the unit grid-segments along the midline are called middle segments. The unit grid-segments lying to the left/right of the midline are called left/right segments. Partition all left segments into LL-corners, and all right segments into UR-corners.\n\nWe now describe Ann's strategy. Her first move consists in orienting some middle segment arbitrarily. Assume that at some stage, Bob orients some segment $s$. If $s$ is a middle segment, Ann orients any free middle segment arbitrarily. Otherwise, $s$ forms a corner in the partition with some other segment $t$. Then Ann orients $t$ so that the joint of the corner is either the source of both arrows, or the target of both. Notice that after any move of Ann's, each corner in the partition is either completely oriented or completely not oriented. This means that Ann can always make a required move.\n\nAssume that Bob wins at some stage, i.e., an oriented cycle $C$ occurs. Let $X$ be the lowest of the leftmost points of $C$, and let $Y$ be the topmost of the rightmost points of $C$. If $X$ lies (strictly) to the left of the midline, then $X$ is the joint of some corner whose segments are both oriented. But, according to Ann's strategy, they are oriented so that they cannot occur in a cycle - a contradiction. Otherwise, $Y$ lies to the right of the midline, and a similar argument applies. Thus, Bob will never win, as desired.\n\nRemarks. (1) There are several variations of the argument in the solution above. For instance, instead of the midline, Ann may choose any infinite in both directions down going polyline along the grid (i.e., consisting of steps to the right and steps-down alone). Alternatively, she may split the plane into four quadrants, use their borders as \"trash bin\" (as the midline was used in the solution above), partition all segments in the upper-right quadrant into UR-corners, all segments in the lower-right quadrant into LR-corners, and so on.\n(2) The problem becomes easier if Bob makes the first move. In this case, his opponent just partitions the whole grid into LL-corners. In particular, one may change the problem to say that the first player to achieve an oriented cycle wins (in this case, the result is a draw).\n\nOn the other hand, this version is closer to known problems. In particular, the following problem is known:\n\nAnn and Bob play the game on an infinite checkered plane making moves in turn (Ann makes the first move). A move consists in painting any unit grid segment that has not been painted before (Ann paints in blue, Bob paints in red). If a player creates a cycle of her/his color, (s)he wins. Does any of the players have a winning strategy?\n\nAgain, the solution is pairing strategy with corners of a fixed orientation (with a little twist for Ann's strategy - in this problem, it is clear that Ann has better chances).", "problem_match": "\nProblem 3.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2018-RMM2018-Day2-English.jsonl b/RMM/segmented/en-2018-RMM2018-Day2-English.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bb5e9abe7900c9f88c4fce69c542d1c5f1e80755 --- /dev/null +++ b/RMM/segmented/en-2018-RMM2018-Day2-English.jsonl @@ -0,0 +1,7 @@ +{"year": "2018", "problem_label": "4", "tier": 1, "problem": "Let $a, b, c, d$ be positive integers such that $a d \\neq b c$ and $\\operatorname{gcd}(a, b, c, d)=1$. Prove that, as $n$ runs through the positive integers, the values $\\operatorname{gcd}(a n+b, c n+d)$ may achieve form the set of all positive divisors of some integer.\n\nRaul Alcantara, Peru", "solution": ". We extend the problem statement by allowing $a$ and $c$ take non-negative integer values, and allowing $b$ and $d$ to take arbitrary integer values. (As usual, the greatest common divisor of two integers is non-negative.) Without loss of generality, we assume $0 \\leq a \\leq c$. Let $S(a, b, c, d)=\\left\\{\\operatorname{gcd}(a n+b, c n+d): n \\in \\mathbb{Z}_{>0}\\right\\}$.\n\nNow we induct on $a$. We first deal with the inductive step, leaving the base case $a=0$ to the end of the solution. So, assume that $a>0$; we intend to find a 4 -tuple $\\left(a^{\\prime}, b^{\\prime}, c^{\\prime}, d^{\\prime}\\right)$ satisfying the requirements of the extended problem, such that $S\\left(a^{\\prime}, b^{\\prime}, c^{\\prime}, d^{\\prime}\\right)=S(a, b, c, d)$ and $0 \\leq a^{\\prime}1)$. We thus get $\\operatorname{gcd}\\left(b^{\\prime}, c\\right)=1$ and $S\\left(0, b^{\\prime}, c, d\\right)=S(0, b, c, d)$.\n\nFinally, it is easily seen that $S\\left(0, b^{\\prime}, c, d\\right)$ is the set of all positive divisors of $b^{\\prime}$. Each member of $S\\left(0, b^{\\prime}, c, d\\right)$ is clearly a divisor of $b^{\\prime}$. Conversely, if $\\delta$ is a positive divisor of $b^{\\prime}$, then $c n+d \\equiv \\delta$ $\\left(\\bmod b^{\\prime}\\right)$ for some $n$, since $b^{\\prime}$ and $c$ are coprime, so $\\delta$ is indeed a member of $S\\left(0, b^{\\prime}, c, d\\right)$.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 1"} +{"year": "2018", "problem_label": "4", "tier": 1, "problem": "Let $a, b, c, d$ be positive integers such that $a d \\neq b c$ and $\\operatorname{gcd}(a, b, c, d)=1$. Prove that, as $n$ runs through the positive integers, the values $\\operatorname{gcd}(a n+b, c n+d)$ may achieve form the set of all positive divisors of some integer.\n\nRaul Alcantara, Peru", "solution": ". (Alexander Betts) For positive integers $s$ and $t$ and prime $p$, we will denote by $\\operatorname{gcd}_{p}(s, t)$ the greatest common $p$-power divisor of $s$ and $t$.\nClaim 1. For any positive integer $n, \\operatorname{gcd}(a n+b, c n+d) \\mid a d-b c$.\nProof. This is clear from the identity\n\n$$\na(c n+d)-c(a n+b)=a d-b c\n$$\n\nClaim 2. The set of values taken by $\\operatorname{gcd}(a n+b, c n+d)$ is exactly the set of values taken by the product\n\n$$\n\\prod_{p \\mid a d-b c} \\operatorname{gcd}_{p}\\left(a n_{p}+b, c n_{p}+d\\right)\n$$\n\nas the $\\left(n_{p}\\right)_{p \\mid a d-b c}$ each range over positive integers.\n\nProof. From the identity\n\n$$\n\\operatorname{gcd}(a n+b, c n+d)=\\prod_{p \\mid a d-b c} \\operatorname{gcd}_{p}(a n+b, c n+d)\n$$\n\nit is clear that every value taken by $\\operatorname{gcd}(a n+b, c n+d)$ is also a value taken by the product (with all $n_{p}=n$ ). Conversely, it suffices to show that, given any positive integers $\\left(n_{p}\\right)_{p \\mid a d-b c}$, there is a positive integer $n$ such that $\\operatorname{gcd}_{p}(a n+b, c n+d)=\\operatorname{gcd}_{p}\\left(a n_{p}+b, c n_{p}+d\\right)$ for each $p \\mid a d-b c$. This can be achieved by requiring that $n$ be congruent to $n_{p}$ modulo a sufficiently large ${ }^{1}$ power of $p$ (using the Chinese Remainder Theorem).\n\nUsing Claim 2, it suffices to determine the sets of values taken by $\\operatorname{gcd}_{p}(a n+b, c n+d)$ as $n$ ranges over all positive integers. There are two cases.\n\nClaim 3. If $p \\mid a, c$, then $\\operatorname{gcd}_{p}(a n+b, c n+d)=1$ for all $n$.\nProof. If $p \\mid a n+b, c n+d$, then we would have $p \\mid a, b, c, d$, which is not the case.\nClaim 4. If $p \\nmid a$ or $p \\nmid c$, then the values taken by $\\operatorname{gcd}_{p}(a n+b, c n+d)$ are exactly the $p$-power divisors of $a d-b c$.\nProof. Assume without loss of generality that $p \\nmid a$. Then from identity $(\\dagger)$ we have $\\operatorname{grd}_{p}(a n+$ $b, c n+d)=\\operatorname{gcd}_{p}(a n+b, a d-b c)$. But since $p \\nmid a$, the arithmetic progression $a n+b$ takes all possible values modulo the highest $p$-power divisor of $a d-b c$, and in particular the values taken by $\\operatorname{gcd}_{p}(a n+b, a d-b c)$ are exactly the $p$-power divisors of $a d-b c$.\nConclusion. Using claims 2,3 and 4 , we see that the set of values taken by $\\operatorname{gcd}(a n+b, c n+d)$ is equal to the set of products of $p$-power divisors of $a d-b c$, where we only consider those primes $p$ not dividing $\\operatorname{gcd}(a, c)$. Thus the set of values of $\\operatorname{gcd}(a n+b, c n+d)$ is equal to the set of divisors of the largest factor of $a d-b c$ coprime to $\\operatorname{gcd}(a, c)$.\n\nRemarks. (1) If $S(a, b, c, d)$ is the set of all positive divisors of some integer, then necessarily $a d \\neq b c$ and $\\operatorname{gcd}(a, b, c, d)=1$ : finiteness of $S(a, b, c, d)$ forces the former, and membership of 1 forces the latter.\n(2) One may modify the problem statement according to the first paragraph of the solution. However, it seems that in this case one needs to include a clarification of the agreement on gcd being necessarily non-negative.", "problem_match": "\nProblem 4.", "solution_match": "\nSolution 2"} +{"year": "2018", "problem_label": "5", "tier": 1, "problem": "Let $n$ be a positive integer and fix $2 n$ distinct points on a circumference. Split these points into $n$ pairs and join the points in each pair by an arrow (i.e., an oriented line segment). The resulting configuration is good if no two arrows cross, and there are no arrows $\\overrightarrow{A B}$ and $\\overrightarrow{C D}$ such that $A B C D$ is a convex quadrangle oriented clockwise. Determine the number of good configurations.\n\nFedor Petrov, Russia", "solution": ". The required number is $\\binom{2 n}{n}$. To prove this, trace the circumference counterclockwise to label the points $a_{1}, a_{2}, \\ldots, a_{2 n}$.\n\nLet $\\mathcal{C}$ be any good configuration and let $O(\\mathcal{C})$ be the set of all points from which arrows emerge. We claim that every $n$-element subset $S$ of $\\left\\{a_{1}, \\ldots, a_{2 n}\\right\\}$ is an $O$-image of a unique good configuration; clearly, this provides the answer.\n\nTo prove the claim induct on $n$. The base case $n=1$ is clear. For the induction step, consider any $n$-element subset $S$ of $\\left\\{a_{1}, \\ldots, a_{2 n}\\right\\}$, and assume that $S=O(\\mathcal{C})$ for some good configuration $\\mathcal{C}$. Take any index $k$ such that $a_{k} \\in S$ and $a_{k+1} \\notin S$ (assume throughout that indices are cyclic modulo $2 n$, i.e., $a_{2 n+1}=a_{1}$ etc.).\n\nIf the arrow from $a_{k}$ points to some $a_{\\ell}, k+1<\\ell(<2 n+k)$, then the arrow pointing to $a_{k+1}$ emerges from some $a_{m}, m$ in the range $k+2$ through $\\ell-1$, since these two arrows do not cross. Then the arrows $a_{k} \\rightarrow a_{\\ell}$ and $a_{m} \\rightarrow a_{k+1}$ form a prohibited quadrangle. Hence, $\\mathcal{C}$ contains an arrow $a_{k} \\rightarrow a_{k+1}$.\n\nOn the other hand, if any configuration $\\mathcal{C}$ contains the arrow $a_{k} \\rightarrow a_{k+1}$, then this arrow cannot cross other arrows, neither can it occur in prohibited quadrangles.\n\nThus, removing the points $a_{k}, a_{k+1}$ from $\\left\\{a_{1}, \\ldots, a_{2 n}\\right\\}$ and the point $a_{k}$ from $S$, we may apply the induction hypothesis to find a unique good configuration $\\mathcal{C}^{\\prime}$ on $2 n-2$ points compatible with the new set of sources (i.e., points from which arrows emerge). Adjunction of the arrow $a_{k} \\rightarrow a_{k+1}$ to $\\mathcal{C}^{\\prime}$ yields a unique good configuration on $2 n$ points, as required.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 1"} +{"year": "2018", "problem_label": "5", "tier": 1, "problem": "Let $n$ be a positive integer and fix $2 n$ distinct points on a circumference. Split these points into $n$ pairs and join the points in each pair by an arrow (i.e., an oriented line segment). The resulting configuration is good if no two arrows cross, and there are no arrows $\\overrightarrow{A B}$ and $\\overrightarrow{C D}$ such that $A B C D$ is a convex quadrangle oriented clockwise. Determine the number of good configurations.\n\nFedor Petrov, Russia", "solution": ". Use the counterclockwise labelling $a_{1}, a_{2}, \\ldots, a_{2 n}$ in the solution above.\nLetting $D_{n}$ be the number of good configurations on $2 n$ points, we establish a recurrence relation for the $D_{n}$. To this end, let $C_{n}=\\frac{(2 n)!}{n!(n+1)!}$ the $n$th Catalan number; it is well-known that $C_{n}$ is the number of ways to connect $2 n$ given points on the circumference by $n$ pairwise disjoint chords.\n\nSince no two arrows cross, in any good configuration the vertex $a_{1}$ is connected to some $a_{2 k}$. Fix $k$ in the range 1 through $n$ and count the number of good configurations containing the arrow $a_{1} \\rightarrow a_{2 k}$. Let $\\mathcal{C}$ be any such configuration.\n\nIn $\\mathcal{C}$, the vertices $a_{2}, \\ldots, a_{2 k-1}$ are paired off with one other, each arrow pointing from the smaller to the larger index, for otherwise it would form a prohibited quadrangle with $a_{1} \\rightarrow a_{2 k}$. Consequently, there are $C_{k-1}$ ways of drawing such arrows between $a_{2}, \\ldots, a_{2 k-1}$.\n\nOn the other hand, the arrows between $a_{2 k+1}, \\ldots, a_{2 n}$ also form a good configuration, which can be chosen in $D_{n-k}$ ways. Finally, it is easily seen that any configuration of the first kind and any configuration of the second kind combine together to yield an overall good configuration.\n\nThus the number of good configurations containing the arrow $a_{1} \\rightarrow a_{2 k}$ is $C_{k-1} D_{n-k}$. Clearly, this is also the number of good configurations containing the arrow $a_{2(n-k+1)} \\rightarrow a_{1}$, so\n\n$$\nD_{n}=2 \\sum_{k=1}^{n} C_{k-1} D_{n-k} .\n$$\n\nTo find an explicit formula for $D_{n}$, let $d(x)=\\sum_{n=0}^{\\infty} D_{n} x^{n}$ and let $c(x)=\\sum_{n=0}^{\\infty} C_{n} x^{n}=$ $\\frac{1-\\sqrt{1-4 x}}{2 x}$ be the generating functions of the $D_{n}$ and the $C_{n}$, respectively. Since $D_{0}=1$, relation ( $*$ )\nyields $d(x)=2 x c(x) d(x)+1$, so\n\n$$\n\\begin{aligned}\nd(x)=\\frac{1}{1-2 x c(x)}=(1-4 x)^{-1 / 2} & =\\sum_{n \\geq 0}\\left(-\\frac{1}{2}\\right)\\left(-\\frac{3}{2}\\right) \\ldots\\left(-\\frac{2 n-1}{2}\\right) \\frac{(-4 x)^{n}}{n!} \\\\\n& =\\sum_{n \\geq 0} \\frac{2^{n}(2 n-1)!!}{n!} x^{n}=\\sum_{n \\geq 0}\\binom{2 n}{n} x^{n} .\n\\end{aligned}\n$$\n\nConsequently, $D_{n}=\\binom{2 n}{n}$.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 2"} +{"year": "2018", "problem_label": "5", "tier": 1, "problem": "Let $n$ be a positive integer and fix $2 n$ distinct points on a circumference. Split these points into $n$ pairs and join the points in each pair by an arrow (i.e., an oriented line segment). The resulting configuration is good if no two arrows cross, and there are no arrows $\\overrightarrow{A B}$ and $\\overrightarrow{C D}$ such that $A B C D$ is a convex quadrangle oriented clockwise. Determine the number of good configurations.\n\nFedor Petrov, Russia", "solution": ". Let $C_{n}=\\frac{1}{n+1}\\binom{2 n}{n}$ denote the $n$th Catalan number and recall that there are exactly $C_{n}$ ways to join $2 n$ distinct points on a circumference by $n$ pairwise disjoint chords. Such a configuration of chords will be referred to as a Catalan n-configuration. An orientation of the chords in a Catalan configuration $\\mathcal{C}$ making it into a good configuration (in the sense defined in the statement of the problem) will be referred to as a good orientation for $\\mathcal{C}$.\n\nWe show by induction on $n$ that there are exactly $n+1$ good orientations for any Catalan $n$-configuration, so there are exactly $(n+1) C_{n}=\\binom{2 n}{n}$ good configurations on $2 n$ points. The base case $n=1$ is clear.\n\nFor the induction step, let $n>1$, let $\\mathcal{C}$ be a Catalan $n$-configuration, and let $a b$ be a chord of minimal length in $\\mathcal{C}$. By minimality, the endpoints of the other chords in $\\mathcal{C}$ all lie on the major $\\operatorname{arc} a b$ of the circumference.\n\nLabel the $2 n$ endpoints $1,2, \\ldots, 2 n$ counterclockwise so that $\\{a, b\\}=\\{1,2\\}$, and notice that the good orientations for $\\mathcal{C}$ fall into two disjoint classes: Those containing the arrow $1 \\rightarrow 2$, and those containing the opposite arrow.\n\nSince the arrow $1 \\rightarrow 2$ cannot be involved in a prohibited quadrangle, the induction hypothesis applies to the Catalan $(n-1)$-configuration formed by the other chords to show that the first class contains exactly $n$ good orientations.\n\nFinally, the second class consists of a single orientation, namely, $2 \\rightarrow 1$, every other arrow emerging from the smaller endpoint of the respective chord; a routine verification shows that this is indeed a good orientation. This completes the induction step and ends the proof.\n\nRemark. Combining the arguments from Solutions 1 and 3 one gets a way (though not the easiest) to compute the Catalan number $C_{n}$.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 3"} +{"year": "2018", "problem_label": "5", "tier": 1, "problem": "Let $n$ be a positive integer and fix $2 n$ distinct points on a circumference. Split these points into $n$ pairs and join the points in each pair by an arrow (i.e., an oriented line segment). The resulting configuration is good if no two arrows cross, and there are no arrows $\\overrightarrow{A B}$ and $\\overrightarrow{C D}$ such that $A B C D$ is a convex quadrangle oriented clockwise. Determine the number of good configurations.\n\nFedor Petrov, Russia", "solution": ", sketch. (Sang-il Oum) As in the previous solution, we intend to count the number of good orientations of a Catalan $n$-configuration.\n\nFor each such configuration, we consider its dual graph $T$ whose vertices are finite regions bounded by chords and the circle, and an edge connects two regions sharing a boundary segment. This graph $T$ is a plane tree with $n$ edges and $n+1$ vertices.\n\nThere is a canonical bijection between orientations of chords and orientations of edges of $T$ in such a way that each chord crosses an edge of $T$ from the right to the left of the arrow on that edge. A good orientation of chords corresponds to an orientation of the tree containing no two edges oriented towards each other. Such an orientation is defined uniquely by its source vertex, i.e., the unique vertex having no in-arrows.\n\nTherefore, for each tree $T$ on $n+1$ vertices, there are exactly $n+1$ ways to orient it so that the source vertex is unique - one for each choice of the source. Thus, the answer is obtained in the same way as above.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 4"} +{"year": "2018", "problem_label": "6", "tier": 1, "problem": "Fix a circle $\\Gamma$, a line $\\ell$ tangent to $\\Gamma$, and another circle $\\Omega$ disjoint from $\\ell$ such that $\\Gamma$ and $\\Omega$ lie on opposite sides of $\\ell$. The tangents to $\\Gamma$ from a variable point $X$ on $\\Omega$ cross $\\ell$ at $Y$ and $Z$. Prove that, as $X$ traces $\\Omega$, the circle $X Y Z$ is tangent to two fixed circles.\n\nRussia, Ivan Frolov", "solution": "Assume $\\Gamma$ of unit radius and invert with respect to $\\Gamma$. No reference will be made to the original configuration, so images will be denoted by the same letters. Letting $\\Gamma$ be centred at $G$, notice that inversion in $\\Gamma$ maps tangents to $\\Gamma$ to circles of unit diameter through $G$ (hence internally tangent to $\\Gamma$ ). Under inversion, the statement reads as follows:\n\nFix a circle $\\Gamma$ of unit radius centred at $G$, a circle $\\ell$ of unit diameter through $G$, and a circle $\\Omega$ inside $\\ell$ disjoint from $\\ell$. The circles $\\eta$ and $\\zeta$ of unit diameter, through $G$ and a variable point $X$ on $\\Omega$, cross $\\ell$ again at $Y$ and $Z$, respectively. Prove that, as $X$ traces $\\Omega$, the circle $X Y Z$ is tangent to two fixed circles.\n![](https://cdn.mathpix.com/cropped/2024_11_22_c91d66364940611e590ag-5.jpg?height=1061&width=1118&top_left_y=880&top_left_x=446)\n\nSince $\\eta$ and $\\zeta$ are the reflections of the circumcircle $\\ell$ of the triangle $G Y Z$ in its sidelines $G Y$ and $G Z$, respectively, they pass through the orthocentre of this triangle. And since $\\eta$ and $\\zeta$ cross again at $X$, the latter is the orthocentre of the triangle $G Y Z$. Hence the circle $\\xi$ through $X, Y, Z$ is the reflection of $\\ell$ in the line $Y Z$; in particular, $\\xi$ is also of unit diameter.\n\nLet $O$ and $L$ be the centres of $\\Omega$ and $\\ell$, respectively, and let $R$ be the (variable) centre of $\\xi$. Let $G X \\operatorname{cross} \\xi$ again at $X^{\\prime}$; then $G$ and $X^{\\prime}$ are reflections of one another in the line $Y Z$, so $G L R X^{\\prime}$ is an isosceles trapezoid. Then $L R \\| G X$ and $\\angle(L G, G X)=\\angle\\left(G X^{\\prime}, X^{\\prime} R\\right)=\\angle(R X, X G)$, i.e., $L G \\| R X$; this means that $G L R X$ is a parallelogram, so $\\overrightarrow{X R}=\\overrightarrow{G L}$ is constant.\n\nFinally, consider the fixed point $N$ defined by $\\overrightarrow{O N}=\\overrightarrow{G L}$. Then $X R N O$ is a parallelogram, so the distance $R N=O X$ is constant. Consequently, $\\xi$ is tangent to the fixed circles centred at $N$ of radii $|1 / 2-O X|$ and $1 / 2+O X$.\n\nOne last check is needed to show that the inverse images of the two obtained circles are indeed circles and not lines. This might happen if one of them contained $G$; we show that this is\nimpossible. Indeed, since $\\Omega$ lies inside $\\ell$, we have $O L<1 / 2-O X$, so\n\n$$\nN G=|\\overrightarrow{G L}+\\overrightarrow{L O}+\\overrightarrow{O N}|=|2 \\overrightarrow{G L}+\\overrightarrow{L O}| \\geq 2|\\overrightarrow{G L}|-|\\overrightarrow{L O}|>1-(1 / 2-O X)=1 / 2+O X\n$$\n\nthis shows that $G$ is necessarily outside the obtained circles.\nRemarks. (1) The last check could be omitted, if we allowed in the problem statement to regard a line as a particular case of a circle. On the other hand, the Problem Selection Committee suggests not to punish students who have not performed this check.\n(2) Notice that the required fixed circles are also tangent to $\\Omega$.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2019-RMM2019-Day1-English.jsonl b/RMM/segmented/en-2019-RMM2019-Day1-English.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2dacda2d4f734c9581ff4b589ca7c1ce68c21573 --- /dev/null +++ b/RMM/segmented/en-2019-RMM2019-Day1-English.jsonl @@ -0,0 +1,5 @@ +{"year": "2019", "problem_label": "1", "tier": 1, "problem": "Amy and Bob play the game. At the beginning, Amy writes down a positive integer on the board. Then the players take moves in turn, Bob moves first. On any move of his, Bob replaces the number $n$ on the blackboard with a number of the form $n-a^{2}$, where $a$ is a positive integer. On any move of hers, Amy replaces the number $n$ on the blackboard with a number of the form $n^{k}$, where $k$ is a positive integer. Bob wins if the number on the board becomes zero. Can Amy prevent Bob's win?\n\nRussia, Maxim Didin", "solution": "The answer is in the negative. For a positive integer $n$, we define its square-free part $S(n)$ to be the smallest positive integer $a$ such that $n / a$ is a square of an integer. In other words, $S(n)$ is the product of all primes having odd exponents in the prime expansion of $n$. We also agree that $S(0)=0$.\n\nNow we show that (i) on any move of hers, Amy does not increase the square-free part of the positive integer on the board; and (ii) on any move of his, Bob always can replace a positive integer $n$ with a non-negative integer $k$ with $S(k)\\varepsilon v$.\n\nFor each edge $b$ in $B$, adjoining $b$ to $F$ produces a unique simple cycle $C_{b}$ through $b$. Let $S_{b}$ be the set of edges in $A$ along $C_{b}$. Since the $C_{b}$ have pairwise distinct lengths, $\\sum_{b \\in B}\\left|S_{b}\\right| \\geq$ $2+\\cdots+(|B|+1)=|B|(|B|+3) / 2>|B|^{2} / 2>\\varepsilon^{2} v^{2} / 2$.\n\nConsequently, some edge in $A$ lies in more than $\\varepsilon^{2} v^{2} /(2 v)=\\varepsilon^{2} v / 2$ of the $S_{b}$. Fix such an edge $a$ in $A$, and let $B^{\\prime}$ be the set of all edges $b$ in $B$ whose corresponding $S_{b}$ contain $a$, so $\\left|B^{\\prime}\\right|>\\varepsilon^{2} v / 2$.\n\nFor each 2-edge subset $\\left\\{b_{1}, b_{2}\\right\\}$ of $B^{\\prime}$, the union $C_{b_{1}} \\cup C_{b_{2}}$ of the cycles $C_{b_{1}}$ and $C_{b_{2}}$ forms a $\\theta$-graph, since their common part is a path in $F$ through $a$; and since neither of the $b_{i}$ lies along this path, $C_{b_{1}} \\cup C_{b_{2}}$ contains a third simple cycle $C_{b_{1}, b_{2}}$ through both $b_{1}$ and $b_{2}$. Finally, since $B^{\\prime} \\cap C_{b_{1}, b_{2}}=\\left\\{b_{1}, b_{2}\\right\\}$, the assignment $\\left\\{b_{1}, b_{2}\\right\\} \\mapsto C_{b_{1}, b_{2}}$ is injective, so the total number of simple cycles in $G$ is at least $\\binom{\\left|B^{\\prime}\\right|}{2}>\\binom{\\varepsilon^{2} v / 2}{2}$. This establishes the desired lower bound and concludes the proof.\n\nRemarks. (1) The problem of finding two cycles of equal lengths in a graph on $v$ vertices with $2 v$ edges is known and much easier - simply consider all cycles of the form $C_{b}$.\n\nThe solution above shows that a graph on $v$ vertices with at least $v+\\Theta\\left(v^{3 / 4}\\right)$ edges has two cycles of equal lengths. The constant $3 / 4$ is not sharp; a harder proof seems to show that $v+\\Theta(\\sqrt{v \\log v})$ edges would suffice. On the other hand, there exist graphs on $v$ vertices with $v+\\Theta(\\sqrt{v})$ edges having no such cycles.\n(2) To avoid graph terminology, the statement of the problem may be rephrased as follows:\n\nGiven any positive real number $\\varepsilon$, prove that, for all but finitely many positive integers $v$, any $v$-member company, within which there are at least $(1+\\varepsilon) v$ friendship relations, satisfies the following condition: For some integer $u \\geq 3$, there exist two distinct $u$ member cyclic arrangements in each of which any two neighbours are friends. (Two arrangements are distinct if they are not obtained from one another through rotation and/or symmetry; a member of the company may be included in neither arrangement, in one of them or in both.)\n\nSketch of solution 2. (Po-Shen Loh) Recall that the girth of a graph $G$ is the minimal length of a (simple) cycle in this graph.\n\nLemma. For any fixed positive $\\delta$, a graph on $v$ vertices whose girth is at least $\\delta v$ has at most $v+o(v)$ edges.\nProof. Define $f(v)$ to be the maximal number $f$ such that a graph on $v$ vertices whose girth is at least $\\delta v$ may have $v+f$ edges. We are interested in the recursive estimates for $f$.\n\nLet $G$ be a graph on $v$ vertices whose gifth is at least $\\delta v$ containing $v+f(v)$ edges. If $G$ contains a leaf (i.e., a vertex of degree 1 ), then one may remove this vertex along with its edge, obtaining a graph with at most $v-1+f(v-1)$ edges. Thus, in this case $f(v) \\leq f(v-1)$.\n\nDefine an isolated path of length $k$ to be a sequence of vertices $v_{0}, v_{1}, \\ldots, v_{k}$, such that $v_{i}$ is connected to $v_{i+1}$, and each of the vertices $v_{1}, \\ldots, v_{k-1}$ has degree 2 (so, these vertices are connected only to their neighbors in the path). If $G$ contains an isolated path $v_{0}, \\ldots, v_{k}$ of length, say, $k>\\sqrt{v}$, then one may remove all its middle vertices $v_{1}, \\ldots, v_{k-1}$, along with all their $k$ edges. We obtain a graph on $v-k+1$ vertices with at most $(v-k+1)+f(v-k+1)$ edges. Thus, in this case $f(v) \\leq f(v-k+1)+1$.\n\nAssume now that the lengths of all isolated paths do not exceed $\\sqrt{v}$; we show that in this case $v$ is bounded from above. For that purpose, we replace each maximal isolated path by an edge between its endpoints, removing all middle vertices. We obtain a graph $H$ whose girth is at least $\\delta v / \\sqrt{v}=\\delta \\sqrt{v}$. Each vertex of $H$ has degree at least 3. By the girth condition, the neighborhood of any vertex $x$ of radius $r=\\lfloor(\\delta \\sqrt{v}-1) / 2\\rfloor$ is a tree rooted at $x$. Any vertex at level $i\\sqrt{v}$. This easily yields $f(v)=o(v)$, as desired.\n\nNow we proceed to the problem. Consider a graph on $v$ vertices containing no two simple cycles of the same length. Take its $\\lfloor\\varepsilon v / 2\\rfloor$ shortest cycles (or all its cycles, if their total number is smaller) and remove an edge from each. We get a graph of girth at least $\\varepsilon v / 2$. By the lemma, the number of edges in the obtained graph is at most $v+o(v)$, so the number of edges in the initial graph is at most $v+\\varepsilon v / 2+o(v)$, which is smaller than $(1+\\varepsilon) v$ if $v$ is large enough.", "problem_match": "\nProblem 3.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2019-RMM2019-Day2-English.jsonl b/RMM/segmented/en-2019-RMM2019-Day2-English.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..7d33210393789b09af89b812e1c6048fe1e1cc51 --- /dev/null +++ b/RMM/segmented/en-2019-RMM2019-Day2-English.jsonl @@ -0,0 +1,3 @@ +{"year": "2019", "problem_label": "4", "tier": 1, "problem": "Prove that for every positive integer $n$ there exists a (not necessarily convex) polygon with no three collinear vertices, which admits exactly $n$ different triangulations.\n(A triangulation is a dissection of the polygon into triangles by interior diagonals which have no common interior points with each other nor with the sides of the polygon.)", "solution": "", "problem_match": "\nProblem 4.", "solution_match": ""} +{"year": "2019", "problem_label": "5", "tier": 1, "problem": "Determine all functions $f: \\mathbb{R} \\rightarrow \\mathbb{R}$ satisfying\n\n$$\nf(x+y f(x))+f(x y)=f(x)+f(2019 y)\n$$\n\nfor all real numbers $x$ and $y$.", "solution": "", "problem_match": "\nProblem 5.", "solution_match": ""} +{"year": "2019", "problem_label": "6", "tier": 1, "problem": "Find all pairs of integers $(c, d)$, both greater than 1 , such that the following holds:\n\nFor any monic polynomial $Q$ of degree $d$ with integer coefficients and for any prime $p>c(2 c+1)$, there exists a set $S$ of at most $\\left(\\frac{2 c-1}{2 c+1}\\right) p$ integers, such that\n\n$$\n\\bigcup_{s \\in S}\\{s, Q(s), Q(Q(s)), Q(Q(Q(s))), \\ldots\\}\n$$\n\nis a complete residue system modulo $p$ (i.e., intersects with every residue class modulo $p$ ).\n\nEach of the three problems is worth 7 points.\nTime allowed $4 \\frac{1}{2}$ hours.", "solution": "", "problem_match": "\nProblem 6.", "solution_match": ""} diff --git a/RMM/segmented/en-2021-RMM2021-Day1-English_Solutions.jsonl b/RMM/segmented/en-2021-RMM2021-Day1-English_Solutions.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c8f387fea7422e746c84a40bb9bfc817e5f7471c --- /dev/null +++ b/RMM/segmented/en-2021-RMM2021-Day1-English_Solutions.jsonl @@ -0,0 +1,3 @@ +{"year": "2021", "problem_label": "1", "tier": 1, "problem": "Let $T_{1}, T_{2}, T_{3}, T_{4}$ be pairwise distinct collinear points such that $T_{2}$ lies between $T_{1}$ and $T_{3}$, and $T_{3}$ lies between $T_{2}$ and $T_{4}$. Let $\\omega_{1}$ be a circle through $T_{1}$ and $T_{4}$; let $\\omega_{2}$ be the circle through $T_{2}$ and internally tangent to $\\omega_{1}$ at $T_{1}$; let $\\omega_{3}$ be the circle through $T_{3}$ and externally tangent to $\\omega_{2}$ at $T_{2}$; and let $\\omega_{4}$ be the circle through $T_{4}$ and externally tangent to $\\omega_{3}$ at $T_{3}$. A line crosses $\\omega_{1}$ at $P$ and $W, \\omega_{2}$ at $Q$ and $R, \\omega_{3}$ at $S$ and $T$, and $\\omega_{4}$ at $U$ and $V$, the order of these points along the line being $P, Q, R, S, T, U, V, W$. Prove that $P Q+T U=R S+V W$.\n\nHungary, Geza Kos", "solution": "Let $O_{i}$ be the centre of $\\omega_{i}, i=1,2,3,4$. Notice that the isosceles triangles $O_{i} T_{i} T_{i-1}$ are similar (indices are reduced modulo 4 ), to infer that $\\omega_{4}$ is internally tangent to $\\omega_{1}$ at $T_{4}$, and $O_{1} O_{2} O_{3} O_{4}$ is a (possibly degenerate) parallelogram.\n\nLet $F_{i}$ be the foot of the perpendicular from $O_{i}$ to $P W$. The $F_{i}$ clearly bisect the segments $P W, Q R, S T$ and $U V$, respectively.\n\nThe proof can now be concluded in two similar ways.\n![](https://cdn.mathpix.com/cropped/2024_11_22_ad36eb88be904f8a739dg-1.jpg?height=580&width=1052&top_left_y=1115&top_left_x=476)\n\nFirst Approach. Since $O_{1} O_{2} O_{3} O_{4}$ is a parallelogram, $\\overrightarrow{F_{1} F_{2}}+\\overrightarrow{F_{3} F_{4}}=\\mathbf{0}$ and $\\overrightarrow{F_{2} F_{3}}+\\overrightarrow{F_{4} F_{1}}=\\mathbf{0}$; this still holds in the degenerate case, for if the $O_{i}$ are collinear, then they all lie on the line $T_{1} T_{4}$, and each $O_{i}$ is the midpoint of the segment $T_{i} T_{i+1}$. Consequently,\n\n$$\n\\begin{aligned}\n\\overrightarrow{P Q}-\\overrightarrow{R S}+\\overrightarrow{T U}-\\overrightarrow{V W}= & \\left(\\overrightarrow{P F_{1}}+\\overrightarrow{F_{1} F_{2}}+\\overrightarrow{F_{2} Q}\\right)-\\left(\\overrightarrow{R F_{2}}+\\overrightarrow{F_{2} F_{3}}+\\overrightarrow{F_{3} S}\\right) \\\\\n& +\\left(\\overrightarrow{T F_{3}}+\\overrightarrow{F_{3} F_{4}}+\\overrightarrow{F_{4} U}\\right)-\\left(\\overrightarrow{V F_{4}}+\\overrightarrow{F_{4} F_{1}}+\\overrightarrow{F_{1} W}\\right) \\\\\n= & \\left(\\overrightarrow{P F_{1}}-\\overrightarrow{F_{1} W}\\right)-\\left(\\overrightarrow{R F_{2}}-\\overrightarrow{F_{2} Q}\\right)+\\left(\\overrightarrow{T F_{3}}-\\overrightarrow{F_{3} S}\\right)-\\left(\\overrightarrow{V F_{4}}-\\overrightarrow{F_{4} U}\\right) \\\\\n& +\\left(\\overrightarrow{F_{1} F_{2}}+\\overrightarrow{F_{3} F_{4}}\\right)-\\left(\\overrightarrow{F_{2} F_{3}}+\\overrightarrow{F_{4} F_{1}}\\right)=\\mathbf{0}\n\\end{aligned}\n$$\n\nAlternatively, but equivalently, $\\overrightarrow{P Q}+\\overrightarrow{T U}=\\overrightarrow{R S}+\\overrightarrow{V W}$, as required.\nSecond Approach. This is merely another way of reading the previous argument. Fix an orientation of the line $P W$, say, from $P$ towards $W$, and use a lower case letter to denote the coordinate of a point labelled by the corresponding upper case letter.\n\nSince the diagonals of a parallelogram bisect one another, $f_{1}+f_{3}=f_{2}+f_{4}$, the common value being twice the coordinate of the projection to $P W$ of the point where $O_{1} O_{3}$ and $O_{2} O_{4}$ cross; the relation clearly holds in the degenerate case as well.\n\nPlug $f_{1}=\\frac{1}{2}(p+w), f_{2}=\\frac{1}{2}(q+r), f_{3}=\\frac{1}{2}(s+t)$ and $f_{4}=\\frac{1}{2}(u+v)$ into the above equality to get $p+w+s+t=q+r+u+v$. Alternatively, but equivalently, $(q-p)+(u-t)=(s-r)+(w-v)$, that is, $P Q+T U=R Q+V W$, as required.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution."} +{"year": "2021", "problem_label": "2", "tier": 1, "problem": "Xenia and Sergey play the following game. Xenia thinks of a positive integer $N$ not exceeding 5000. Then she fixes 20 distinct positive integers $a_{1}, a_{2}, \\ldots, a_{20}$ such that, for each $k=1,2, \\ldots, 20$, the numbers $N$ and $a_{k}$ are congruent modulo $k$. By a move, Sergey tells Xenia a set $S$ of positive integers not exceeding 20, and she tells him back the set $\\left\\{a_{k}: k \\in S\\right\\}$ without spelling out which number corresponds to which index. How many moves does Sergey need to determine for sure the number Xenia thought of?\n\nRussia, Sergey Kudrya", "solution": "Sergey can determine Xenia's number in 2 but not fewer moves.\nWe first show that 2 moves are sufficient. Let Sergey provide the set $\\{17,18\\}$ on his first move, and the set $\\{18,19\\}$ on the second move. In Xenia's two responses, exactly one number occurs twice, namely, $a_{18}$. Thus, Sergey is able to identify $a_{17}, a_{18}$, and $a_{19}$, and thence the residue of $N$ modulo $17 \\cdot 18 \\cdot 19=5814>5000$, by the Chinese Remainder Theorem. This means that the given range contains a single number satisfying all congruences, and Sergey achieves his goal.\n\nTo show that 1 move is not sufficient, let $M=\\operatorname{lcm}(1,2, \\ldots, 10)=2^{3} \\cdot 3^{2} \\cdot 5 \\cdot 7=2520$. Notice that $M$ is divisible by the greatest common divisor of every pair of distinct positive integers not exceeding 20. Let Sergey provide the set $S=\\left\\{s_{1}, s_{2}, \\ldots, s_{k}\\right\\}$. We show that there exist pairwise distinct positive integers $b_{1}, b_{2}, \\ldots, b_{k}$ such that $1 \\equiv b_{i}\\left(\\bmod s_{i}\\right)$ and $M+1 \\equiv b_{i-1}\\left(\\bmod s_{i}\\right)$ (indices are reduced modulo $k$ ). Thus, if in response Xenia provides the set $\\left\\{b_{1}, b_{2}, \\ldots, b_{k}\\right\\}$, then Sergey will be unable to distinguish 1 from $M+1$, as desired.\n\nTo this end, notice that, for each $i$, the numbers of the form $1+m s_{i}, m \\in \\mathbb{Z}$, cover all residues modulo $s_{i+1}$ which are congruent to $1(\\equiv M+1)$ modulo $\\operatorname{gcd}\\left(s_{i}, s_{i+1}\\right) \\mid M$. Xenia can therefore choose a positive integer $b_{i}$ such that $b_{i} \\equiv 1\\left(\\bmod s_{i}\\right)$ and $b_{i} \\equiv M+1\\left(\\bmod s_{i+1}\\right)$. Clearly, such choices can be performed so as to make the $b_{i}$ pairwise distinct, as required.", "problem_match": "\nProblem 2.", "solution_match": "\nSolution."} +{"year": "2021", "problem_label": "3", "tier": 1, "problem": "A number of 17 workers stand in a row. Every contiguous group of at least 2 workers is a brigade. The chief wants to assign each brigade a leader (which is a member of the brigade) so that each worker's number of assignments is divisible by 4. Prove that the number of such ways to assign the leaders is divisible by 17 .\n\nRussia, Mikhail Antipov", "solution": "Assume that every single worker also forms a brigade (with a unique possible leader). In this modified setting, we are interested in the number $N$ of ways to assign leadership so that each worker's number of assignments is congruent to 1 modulo 4.\n\nConsider the variables $x_{1}, x_{2}, \\ldots, x_{17}$ corresponding to the workers. Assign each brigade (from the $i$-th through the $j$-th worker) the polynomial $f_{i j}=x_{i}+x_{i+1}+\\cdots+x_{j}$, and form the product $f=\\prod_{1 \\leq i \\leq j \\leq 17} f_{i j}$. The number $N$ is the sum $\\Sigma(f)$ of the coefficients of all monomials $x_{1}^{\\alpha_{1}} x_{2}^{\\alpha_{2}} \\ldots x_{17}^{\\alpha_{17}}$ in the expansion of $f$, where the $\\alpha_{i}$ are all congruent to 1 modulo 4 . For any polynomial $P$, let $\\Sigma(P)$ denote the corresponding sum. From now on, all polynomials are considered with coefficients in the finite field $\\mathbb{F}_{17}$.\n\nRecall that for any positive integer $n$, and any integers $a_{1}, a_{2}, \\ldots, a_{n}$, there exist indices $i \\leq j$ such that $a_{i}+a_{i+1}+\\cdots+a_{j}$ is divisible by $n$. Consequently, $f\\left(a_{1}, a_{2}, \\ldots, a_{17}\\right)=0$ for all $a_{1}, a_{2}, \\ldots, a_{17}$ in $\\mathbb{F}_{17}$.\n\nNow, if some monomial in the expansion of $f$ is divisible by $x_{i}^{17}$, replace that $x_{i}^{17}$ by $x_{i}$; this does not alter the above overall vanishing property (by Fermat's Little Theorem), and preserves $\\Sigma(f)$. After several such changes, $f$ transforms into a polynomial $g$ whose degree in each variable does not exceed 16 , and $g\\left(a_{1}, a_{2}, \\ldots, a_{17}\\right)=0$ for all $a_{1}, a_{2}, \\ldots, a_{17}$ in $\\mathbb{F}_{17}$. For such a polynomial, an easy induction on the number of variables shows that it is identically zero. Consequently, $\\Sigma(g)=0$, so $\\Sigma(f)=0$ as well, as desired.", "problem_match": "\nProblem 3.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2021-RMM2021-Day2-English_Solutions.jsonl b/RMM/segmented/en-2021-RMM2021-Day2-English_Solutions.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..be4557dfd8882e034755d123f39cea7ea1f03f81 --- /dev/null +++ b/RMM/segmented/en-2021-RMM2021-Day2-English_Solutions.jsonl @@ -0,0 +1,4 @@ +{"year": "2021", "problem_label": "4", "tier": 1, "problem": "Consider an integer $n \\geq 2$ and write the numbers $1,2, \\ldots, n$ down on a board. A move consists in erasing any two numbers $a$ and $b$, and, for each $c$ in $\\{a+b,|a-b|\\}$, writing $c$ down on the board, unless $c$ is already there; if $c$ is already on the board, do nothing. For all integers $n \\geq 2$, determine whether it is possible to be left with exactly two numbers on the board after a finite number of moves.\n\n## China", "solution": "The answer is in the affirmative for all $n \\geq 2$. Induct on $n$. Leaving aside the trivial case $n=2$, deal first with particular cases $n=5$ and $n=6$.\n\nIf $n=5$, remove first the pair $(2,5)$, notice that $3=|2-5|$ is already on the board, so $7=2+5$ alone is written down. Removal of the pair $(3,4)$ then leaves exactly two numbers on the board, 1 and 7 , since $|3 \\pm 4|$ are both already there.\n\nIf $n=6$, remove first the pair $(1,6)$, notice that $5=|1-6|$ is already on the board, so $7=1+6$ alone is written down. Next, remove the pair $(2,5)$ and notice that $|2 \\pm 5|$ are both already on the board, so no new number is written down. Finally, removal of the pair $(3,4)$ provides a single number to be written down, $1=|3-4|$, since $7=3+4$ is already on the board. At this stage, the process comes to an end: 1 and 7 are the two numbers left.\n\nIn the remaining cases, the problem for $n$ is brought down to the corresponding problem for $\\lceil n / 2\\rceilb$ on the board, we can replace them by $a+b$ and $a-b$, and then, performing a move on the two new numbers, by $(a+b)+(a-b)=2 a$ and $(a+b)-(a-b)=2 b$. So we can double any two numbers on the board.\n\nWe now show that, if the board contains two even numbers $a$ and $b$, we can divide them both by 2 , while keeping the other numbers unchanged. If $k$ is even, split the other numbers into pairs to multiply each pair by 2 ; then clear out the common factor 2 . If $k$ is odd, split all numbers but $a$ into pairs to multiply each by 2 ; then do the same for all numbers but $b$; finally, clear out the common factor 4.\n\nBack to the problem, if two of the numbers $a_{1}, \\ldots, a_{k}$ are even, reduce them both by 2 to get a set with a smaller sum, which is impossible. Otherwise, two numbers, say, $a_{1}1$.", "problem_match": "\nProblem 5.", "solution_match": "\nSolution."} +{"year": "2021", "problem_label": "6", "tier": 1, "problem": "Initially, a non-constant polynomial $S(x)$ with real coefficients is written down on a board. Whenever the board contains a polynomial $P(x)$, not necessarily alone, one can write down on the board any polynomial of the form $P(C+x)$ or $C+P(x)$, where $C$ is a real constant. Moreover, if the board contains two (not necessarily distinct) polynomials $P(x)$ and $Q(x)$, one can write $P(Q(x))$ and $P(x)+Q(x)$ down on the board. No polynomial is ever erased from the board.\n\nGiven two sets of real numbers, $A=\\left\\{a_{1}, a_{2}, \\ldots, a_{n}\\right\\}$ and $B=\\left\\{b_{1}, b_{2}, \\ldots, b_{n}\\right\\}$, a polynomial $f(x)$ with real coefficients is $(A, B)$-nice if $f(A)=B$, where $f(A)=\\left\\{f\\left(a_{i}\\right): i=1,2, \\ldots, n\\right\\}$.\n\nDetermine all polynomials $S(x)$ that can initially be written down on the board such that, for any two finite sets $A$ and $B$ of real numbers, with $|A|=|B|$, one can produce an $(A, B)$-nice polynomial in a finite number of steps.\n\nIran, Navid SafaEi", "solution": "The required polynomials are all polynomials of an even degree $d \\geq 2$, and all polynomials of odd degree $d \\geq 3$ with negative leading coefficient.\n\nPart I. We begin by showing that any (non-constant) polynomial $S(x)$ not listed above is not $(A, B)$-nice for some pair $(A, B)$ with either $|A|=|B|=2$, or $|A|=|B|=3$.\n\nIf $S(x)$ is linear, then so are all the polynomials appearing on the board. Therefore, none of them will be $(A, B)$-nice, say, for $A=\\{1,2,3\\}$ and $B=\\{1,2,4\\}$, as desired.\n\nOtherwise, $\\operatorname{deg} S=d \\geq 3$ is odd, and the leading coefficient is positive. In this case, we make use of the following technical fact, whose proof is presented at the end of the solution.\n\nClaim. There exists a positive constant $T$ such that $S(x)$ satisfies the following condition:\n\n$$\nS(b)-S(a) \\geq b-a \\quad \\text { whenever } \\quad b-a \\geq T\n$$\n\nFix a constant $T$ provided by the Claim. Then, an immediate check shows that all newly appearing polynomials on the board also satisfy $(*)$ (with the same value of $T$ ). Therefore, none of them will be $(A, B)$-nice, say, for $A=\\{0, T\\}$ and $B=\\{0, T / 2\\}$, as desired.\n\nPart II. We show that the polynomials listed in the Answer satisfy the requirements. We will show that for any $a_{1}\\max _{x \\in \\Delta} S(x)$. Therefore, for any $x, y, z$ with $x \\leq \\alpha \\leq y \\leq \\beta \\leq z$ we get $S(x) \\leq S(\\alpha) \\leq$ $S(y) \\leq S(\\beta) \\leq S(z)$.\n\nWe may decrease $\\alpha$ and increase $\\beta$ (preserving the condition above) so that, in addition, $S^{\\prime}(x)>3$ for all $x \\notin[\\alpha, \\beta]$. Now we claim that the number $T=3(\\beta-\\alpha)$ fits the bill.\n\nIndeed, take any $a$ and $b$ with $b-a \\geq T$. Even if the segment $[a, b]$ crosses $[\\alpha, \\beta]$, there still is a segment $\\left[a^{\\prime}, b^{\\prime}\\right] \\subseteq[a, b] \\backslash(\\alpha, \\beta)$ of length $b^{\\prime}-a^{\\prime} \\geq(b-a) / 3$. Then\n\n$$\nS(b)-S(a) \\geq S\\left(b^{\\prime}\\right)-S\\left(a^{\\prime}\\right)=\\left(b^{\\prime}-a^{\\prime}\\right) \\cdot S^{\\prime}(\\xi) \\geq 3\\left(b^{\\prime}-a^{\\prime}\\right) \\geq b-a\n$$\n\nfor some $\\xi \\in\\left(a^{\\prime}, b^{\\prime}\\right)$.\nProof of Lemma 1. If $S(x)$ has an even degree, then the polynomial $T(x)=S\\left(x+a_{2}\\right)-S\\left(x+a_{1}\\right)$ has an odd degree, hence there exists $x_{0}$ with $T\\left(x_{0}\\right)=S\\left(x_{0}+a_{2}\\right)-S\\left(x_{0}+a_{1}\\right)=b_{2}-b_{1}$. Setting $G(x)=S\\left(x+x_{0}\\right)$, we see that $G\\left(a_{2}\\right)-G\\left(a_{1}\\right)=b_{2}-b_{1}$, so a suitable shift $F(x)=G(x)+\\left(b_{1}-G\\left(a_{1}\\right)\\right)$ fits the bill.\n\nAssume now that $S(x)$ has odd degree and a negative leading coefficient. Notice that the polynomial $S^{2}(x):=S(S(x))$ has an odd degree and a positive leading coefficient. So, the polynomial $S^{2}\\left(x+a_{2}\\right)-S^{2}\\left(x+a_{1}\\right)$ attains all sufficiently large positive values, while $S\\left(x+a_{2}\\right)-$ $S\\left(x+a_{1}\\right)$ attains all sufficiently large negative values. Therefore, the two-variable polynomial $S^{2}\\left(x+a_{2}\\right)-S^{2}\\left(x+a_{1}\\right)+S\\left(y+a_{2}\\right)-S\\left(y+a_{1}\\right)$ attains all real values; in particular, there exist $x_{0}$ and $y_{0}$ with $S^{2}\\left(x_{0}+a_{2}\\right)+S\\left(y_{0}+a_{2}\\right)-S^{2}\\left(x_{0}+a_{1}\\right)-S\\left(y_{0}+a_{1}\\right)=b_{2}-b_{1}$. Setting $G(x)=S^{2}\\left(x+x_{0}\\right)+S\\left(x+y_{0}\\right)$, we see that $G\\left(a_{2}\\right)-G\\left(a_{1}\\right)=b_{2}-b_{1}$, so a suitable shift of $G$ fits the bill.\n\nProof of Lemma 2. Let $\\Delta$ denote the segment $\\left[a_{1} ; a_{n}\\right]$. We modify the proof of Lemma 1 in order to obtain a polynomial $F$ convex (or concave) on $\\Delta$ such that $F\\left(a_{1}\\right)=F\\left(a_{2}\\right)$; then $F$ is a desired polynomial. Say that a polynomial $H(x)$ is good if $H$ is convex on $\\Delta$.\n\nIf $\\operatorname{deg} S$ is even, and its leading coefficient is positive, then $S(x+c)$ is good for all sufficiently large negative $c$, and $S\\left(a_{2}+c\\right)-S\\left(a_{1}+c\\right)$ attains all sufficiently large negative values for such $c$. Similarly, $S(x+c)$ is good for all sufficiently large positive $c$, and $S\\left(a_{2}+c\\right)-S\\left(a_{1}+c\\right)$ attains all sufficiently large positive values for such $c$. Therefore, there exist large $c_{1}<0T \\quad \\text { whenever } \\quad b-a>T\n$$\n\nLet us sketch an alternative approach for Part II. It suffices to construct, for each $i$, a polynomial $f_{i}(x)$ such that $f_{i}\\left(a_{i}\\right)=b_{i}$ and $f_{i}\\left(a_{j}\\right)=0, j \\neq i$. The construction of such polynomials may be reduced to the construction of those for $n=3$ similarly to what happens in the proof of Lemma 2. However, this approach (as well as any in this part) needs some care in order to work properly.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution."} diff --git a/RMM/segmented/en-2023-RMM2023-Day1-English_Solutions.jsonl b/RMM/segmented/en-2023-RMM2023-Day1-English_Solutions.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d6b3b6ba313ec9c806a145646904c66bd6f01d31 --- /dev/null +++ b/RMM/segmented/en-2023-RMM2023-Day1-English_Solutions.jsonl @@ -0,0 +1,4 @@ +{"year": "2023", "problem_label": "1", "tier": 1, "problem": "Determine all prime numbers $p$ and all positive integers $x$ and $y$ satisfying $x^{3}+y^{3}=$ $p(x y+p)$.", "solution": ". Up to a swap of the first two entries, the only solutions are $(x, y, p)=(1,8,19)$, $(x, y, p)=(2,7,13)$ and $(x, y, p)=(4,5,7)$. The verification is routine.\n\nSet $s=x+y$. Rewrite the equation in the form $s\\left(s^{2}-3 x y\\right)=p(p+x y)$, and express $x y$ :\n\n$$\nx y=\\frac{s^{3}-p^{2}}{3 s+p}\n$$\n\nIn particular,\n\n$$\ns^{2} \\geq 4 x y=\\frac{4\\left(s^{3}-p^{2}\\right)}{3 s+p}\n$$\n\nor\n\n$$\n(s-2 p)\\left(s^{2}+s p+2 p^{2}\\right) \\leq p^{2}-p^{3}<0\n$$\n\nso $s<2 p$.\nIf $p \\mid s$, then $s=p$ and $x y=p(p-1) / 4$ which is impossible for $x+y=p$ (the equation $t^{2}-p t+p(p-1) / 4=0$ has no integer solutions).\n\nIf $p \\nmid s$, rewrite $(*)$ in the form\n\n$$\n27 x y=\\left(9 s^{2}-3 s p+p^{2}\\right)-\\frac{p^{2}(p+27)}{3 s+p}\n$$\n\nSince $p \\nmid s$, this could be integer only if $3 s+p \\mid$ $p+27$, and hence $3 s+p \\mid 27-s$.\n\nIf $s \\neq 9$, then $|3 s-27| \\geq 3 s+p$, so $27-3 s \\geq$ $3 s+p$, or $27-p \\geq 6 s$, whence $s \\leq 4$. These cases are ruled out by hand.\n\nIf $s=x+y=9$, then $(*)$ yields $x y=27-p$. Up to a swap of $x$ and $y$, all such triples $(x, y, p)$ are $(1,8,19),(2,7,13)$, and $(4,5,7)$.", "problem_match": "\nProblem 1.", "solution_match": "\nSolution 1"} +{"year": "2023", "problem_label": "1", "tier": 1, "problem": "Determine all prime numbers $p$ and all positive integers $x$ and $y$ satisfying $x^{3}+y^{3}=$ $p(x y+p)$.", "solution": ". Set again $s=x+y$. It is readily checked that $s \\leq 8$ provides no solutions, so assume $s \\geq 9$. Notice that $x^{3}+y^{3}=s\\left(x^{2}-x y+y^{2}\\right) \\geq$ $\\frac{1}{4} s^{3}$ and $x y \\leq \\frac{1}{4} s^{2}$. The condition in the statement then implies $s^{2}(s-p) \\leq 4 p^{2}$, so $s1$. By the lemma, there exist monic polynomials $U(x)$ and $V(x)$ of degree $b$ and $a$, respectively, such that $\\operatorname{deg}\\left(P(x)-U(x)^{c}\\right)<(c-1) b$ and $\\operatorname{deg}(R(x)-$ $\\left.V(x)^{c}\\right)<(c-1) a$. Then $\\operatorname{deg}\\left(F(x)-U(Q(x))^{c}\\right)=$ $\\operatorname{deg}\\left(P(Q(x))-U(Q(x))^{c}\\right)<(c-1) a b d, \\operatorname{deg}(F(x)-$ $\\left.V(S(x))^{c}\\right)=\\operatorname{deg}\\left(R(S(x))-V(S(x))^{c}\\right)<(c-1) a b d$, so $\\operatorname{deg}\\left(U(Q(x))^{c}-V(S(x))^{c}\\right)=\\operatorname{deg}((F(x)-$ $\\left.\\left.V(S(x))^{c}\\right)-\\left(F(x)-U(Q(x))^{c}\\right)\\right)<(c-1) a b d$.\n\nOn the other hand, $U(Q(x))^{c}-V(S(x))^{c}=$ $(U(Q(x))-V(S(x)))\\left(U(Q(x))^{c-1}+\\cdots+\\right.$ $\\left.V(S(x))^{c-1}\\right)$.\n\nBy the preceding, the degree of the left-hand member is (strictly) less than $(c-1) a b d$ which is precisely the degree of the second factor in the righthand member. This forces $U(Q(x))=V(S(x))$, so $U(Q(x))=V(S(x))$ has degree $a b d1$. Let $V$ denote the vertex set of $\\Gamma$, and let $T_{r}, T_{g}$, and $T_{b}$ be the trees with exactly $r$ red edges, $g$ green edges, and $b$ blue edges, respectively. Consider two cases.\nCase 1: There exists a partition $V=A \\sqcup B$ of the vertex set into two non-empty parts such that the edges joining the parts all bear the same colour, say, blue.\n\nSince $\\Gamma$ is connected, it has a (necessarily blue) edge connecting $A$ and $B$. Let $e$ be one such.\n\nAssume that $T$, one of the three trees, does not contain $e$. Then the graph $T \\cup\\{e\\}$ has a cycle $C$ through $e$. The cycle $C$ should contain another edge $e^{\\prime}$ connecting $A$ and $B$; the edge $e^{\\prime}$ is also blue. Replace $e^{\\prime}$ by $e$ in $T$ to get another tree $T^{\\prime}$ with the same number of edges of each colour as in $T$, but containing $e$.\n\nPerforming such an operation to all three trees, we arrive at the situation where the three trees $T_{r}^{\\prime}$, $T_{g}^{\\prime}$, and $T_{b}^{\\prime}$ all contain $e$. Now shrink $e$ by identifying its endpoints to obtain a graph $\\Gamma^{*}$, and set $r^{*}=r, g^{*}=g$, and $b^{*}=b-1$. The new graph satisfies the conditions in the statement for those new values - indeed, under the shrinking, each of the trees $T_{r}^{\\prime}, T_{g}^{\\prime}$, and $T_{b}^{\\prime}$ loses a blue edge. So $\\Gamma^{*}$ has a spanning tree with exactly $r$ red, exactly $g$\ngreen, and exactly $b-1$ blue edges. Finally, pass back to $\\Gamma$ by restoring $e$, to obtain the a desired spanning tree in $\\Gamma$.\n\nCase 2: There is no such a partition.\nConsider all possible collections $(R, G, B)$, where $R, G$ and $B$ are acyclic sets consisting of $r$ red edges, $g$ green edges, and $b$ blue edges, respectively. By the problem assumptions, there is at least one such collection. Amongst all such collections, consider one such that the graph on $V$ with edge set $R \\cup G \\cup B$ has the smallest number $k$ of components. If $k=1$, then the collection provides the edges of a desired tree (the number of edges is one less than the number of vertices).\n\nAssume now that $k \\geq 2$; then in the resulting graph some component $K$ contains a cycle $C$. Since $R, G$, and $B$ are acyclic, $C$ contains edges of at least two colours, say, red and green. By assumption, the edges joining $V(K)$ to $V \\backslash V(K)$ bear at least two colours; so one of these edges is either red or green. Without loss of generality, consider a red such edge $e$.\n\nLet $e^{\\prime}$ be a red edge in $C$ and set $R^{\\prime}=R \\backslash\\left\\{e^{\\prime}\\right\\} \\cup$ $\\{e\\}$. Then $\\left(R^{\\prime}, G, B\\right)$ is a valid collection providing a smaller number of components. This contradicts minimality of the choice above and concludes the proof.", "problem_match": "\nProblem 6.", "solution_match": "\nSolution 1"} +{"year": "2023", "problem_label": "6", "tier": 1, "problem": "Let $r, g, b$ be non-negative integers. Let $\\Gamma$ be a connected graph on $r+g+b+1$ vertices. The edges of $\\Gamma$ are each coloured red, green or blue. It turns out that $\\Gamma$ has\n\n- a spanning tree in which exactly $r$ of the edges are red,\n- a spanning tree in which exactly $g$ of the edges are green and\n- a spanning tree in which exactly $b$ of the edges are blue.\n\nProve that $\\Gamma$ has a spanning tree in which exactly $r$ of the edges are red, exactly $g$ of the edges are green and exactly $b$ of the edges are blue.", "solution": ". For a spanning tree $T$ in $\\Gamma$, denote by $r(T), g(T)$, and $b(T)$ the number of red, green, and blue edges in $T$, respectively.\n\nAssume that $\\mathcal{C}$ is some collection of spanning trees in $\\Gamma$. Write\n\n$$\n\\begin{array}{rlrl}\nr(\\mathcal{C}) & =\\min _{T \\in \\mathcal{C}} r(T), & & g(\\mathcal{C})=\\min _{T \\in \\mathcal{C}} g(T) \\\\\nb(\\mathcal{C}) & =\\min _{T \\in \\mathcal{C}} b(T), & & R(\\mathcal{C})=\\max _{T \\in \\mathcal{C}}(T) \\\\\nG(\\mathcal{C}) & =\\max _{T \\in \\mathcal{C}} g(T), & B(\\mathcal{C})=\\max _{T \\in \\mathcal{C}} b(T)\n\\end{array}\n$$\n\nSay that a collection $\\mathcal{C}$ is good if $r \\in[r(\\mathcal{C}, R(\\mathcal{C})]$, $g \\in[g(\\mathcal{C}, G(\\mathcal{C})]$, and $b \\in[b(\\mathcal{C}, B(\\mathcal{C})]$. By the problem conditions, the collection of all spanning trees in $\\Gamma$ is good.\n\nFor a good collection $\\mathcal{C}$, say that an edge $e$ of $\\Gamma$ is suspicious if $e$ belongs to some tree in $\\mathcal{C}$ but not to all trees in $\\mathcal{C}$. Choose now a good collection $\\mathcal{C}$ minimizing the number of suspicious edges. If $\\mathcal{C}$ contains a desired tree, we are done. Otherwise, without loss of generality, $r(\\mathcal{C})g$.\n\nWe now distinguish two cases.\nCase 1: $B(\\mathcal{C})=b$ 。\nLet $T^{0}$ be a tree in $\\mathcal{C}$ with $g\\left(T^{0}\\right)=g(\\mathcal{C}) \\leq g$. Since $G(\\mathcal{C})>g$, there exists a green edge $e$ contained in some tree in $\\mathcal{C}$ but not in $T^{0}$; clearly, $e$ is suspicious. Fix one such green edge $e$.\n\nNow, for every $T$ in $\\mathcal{C}$, define a spanning tree $T_{1}$ of $\\Gamma$ as follows. If $T$ does not contain $e$, then $T_{1}=T$; in particular, $\\left(T^{0}\\right)_{1}=T^{0}$. Otherwise, the graph $T \\backslash\\{e\\}$ falls into two components. The tree $T_{0}$ contains some edge $e^{\\prime}$ joining those components; this edge is necessarily suspicious. Choose one such edge and define $T_{1}=T \\backslash\\{e\\} \\cup\\left\\{e^{\\prime}\\right\\}$.\n\nLet $\\mathcal{C}_{1}=\\left\\{T_{1}: T \\in \\mathcal{C}\\right\\}$. All edges suspicious for $\\mathcal{C}_{1}$ are also suspicious for $\\mathcal{C}$, but no tree in $\\mathcal{C}_{1}$ con-\n\n## Russia, Vasily Mokin\n\ntains $e$. So the number of suspicious edges for $\\mathcal{C}_{1}$ is strictly smaller than that for $\\mathcal{C}$.\n\nWe now show that $\\mathcal{C}_{1}$ is good, reaching thereby a contradiction with the choice of $\\mathcal{C}$. For every $T$ in $\\mathcal{C}$, the tree $T_{1}$ either coincides with $T$ or is obtained from it by removing a green edge and adding an edge of some colour. This already shows that $g\\left(\\mathcal{C}_{1}\\right) \\leq g(\\mathcal{C}) \\leq g, G\\left(\\mathcal{C}_{1}\\right) \\geq G(\\mathcal{C})-1 \\geq g$, $R\\left(\\mathcal{C}_{1}\\right) \\geq R(\\mathcal{C}) \\geq r, r\\left(\\mathcal{C}_{1}\\right) \\leq r(\\mathcal{C})+1 \\leq r$, and $B\\left(\\mathcal{C}_{1}\\right) \\geq B(\\mathcal{C}) \\geq b$. Finally, we get $b\\left(T^{0}\\right) \\leq$ $B(\\mathcal{C})=b$; since $\\mathcal{C}_{1}$ contains $T^{0}$, it follows that $b\\left(\\mathcal{C}_{1}\\right) \\leq b\\left(T^{0}\\right) \\leq b$, which concludes the proof.\nCase 2: $B(\\mathcal{C})>b$.\nConsider a tree $T^{0}$ in $\\mathcal{C}$ satisfying $r\\left(T^{0}\\right)=$ $R(\\mathcal{C}) \\geq r$. Since $r(\\mathcal{C})3$ and for each $n$-admissible set $\\mathcal{S}$, there exist pairwise distinct points $P_{1}, \\ldots, P_{n}$ in the plane such that the angles of the triangle $P_{i} P_{j} P_{k}$ are all less than $61^{\\circ}$ for any triple $\\{i, j, k\\}$ in $\\mathcal{S}$ ?\n\nEach problem is worth 7 marks.\nTime allowed: $4 \\frac{1}{2}$ hours.", "solution": "", "problem_match": "\nProblem 3.", "solution_match": ""} diff --git a/RMM/segmented/en-2024-RMM2024-Day2-English.jsonl b/RMM/segmented/en-2024-RMM2024-Day2-English.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..07987d5ac12a349a7f67419930558fdb988a9339 --- /dev/null +++ b/RMM/segmented/en-2024-RMM2024-Day2-English.jsonl @@ -0,0 +1,3 @@ +{"year": "2024", "problem_label": "4", "tier": 1, "problem": "Fix integers $a$ and $b$ greater than 1 . For any positive integer $n$, let $r_{n}$ be the (non-negative) remainder that $b^{n}$ leaves upon division by $a^{n}$. Assume there exists a positive integer $N$ such that $r_{n}<2^{n} / n$ for all integers $n \\geq N$. Prove that $a$ divides $b$.", "solution": "", "problem_match": "\nProblem 4.", "solution_match": ""} +{"year": "2024", "problem_label": "5", "tier": 1, "problem": "Let $B C$ be a fixed segment in the plane, and let $A$ be a variable point in the plane not on the line $B C$. Distinct points $X$ and $Y$ are chosen on the rays $\\overrightarrow{C A}$ and $\\overrightarrow{B A}$, respectively, such that $\\angle C B X=\\angle Y C B=\\angle B A C$. Assume that the tangents to the circumcircle of $A B C$ at $B$ and $C$ meet line $X Y$ at $P$ and $Q$, respectively, such that the points $X, P, Y$, and $Q$ are pairwise distinct and lie on the same side of $B C$. Let $\\Omega_{1}$ be the circle through $X$ and $P$ centred on $B C$. Similarly, let $\\Omega_{2}$ be the circle through $Y$ and $Q$ centred on $B C$. Prove that $\\Omega_{1}$ and $\\Omega_{2}$ intersect at two fixed points as $A$ varies.", "solution": "", "problem_match": "\nProblem 5.", "solution_match": ""} +{"year": "2024", "problem_label": "6", "tier": 1, "problem": "A polynomial $P$ with integer coefficients is square-free if it is not expressible in the form $P=Q^{2} R$, where $Q$ and $R$ are polynomials with integer coefficients and $Q$ is not constant. For a positive integer $n$, let $\\mathcal{P}_{n}$ be the set of polynomials of the form\n\n$$\n1+a_{1} x+a_{2} x^{2}+\\cdots+a_{n} x^{n}\n$$\n\nwith $a_{1}, a_{2}, \\ldots, a_{n} \\in\\{0,1\\}$. Prove that there exists an integer $N$ so that, for all integers $n \\geq N$, more than $99 \\%$ of the polynomials in $\\mathcal{P}_{n}$ are square-free.\n\nEach problem is worth 7 marks.\nTime allowed: $4 \\frac{1}{2}$ hours.", "solution": "", "problem_match": "\nProblem 6.", "solution_match": ""}