{"year": "2013", "tier": "T0", "problem_label": "A1", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer and let $a_{1}, \\ldots, a_{n-1}$ be arbitrary real numbers. Define the sequences $u_{0}, \\ldots, u_{n}$ and $v_{0}, \\ldots, v_{n}$ inductively by $u_{0}=u_{1}=v_{0}=v_{1}=1$, and $$ u_{k+1}=u_{k}+a_{k} u_{k-1}, \\quad v_{k+1}=v_{k}+a_{n-k} v_{k-1} \\quad \\text { for } k=1, \\ldots, n-1 . $$ Prove that $u_{n}=v_{n}$. (France)", "solution": "We prove by induction on $k$ that $$ u_{k}=\\sum_{\\substack{0i_{1}>\\ldots>i_{t}>n-k \\\\ i_{j}-i_{j+1} \\geqslant 2}} a_{i_{1}} \\ldots a_{i_{t}} $$ For $k=n$ the expressions (1) and (2) coincide, so indeed $u_{n}=v_{n}$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A1", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer and let $a_{1}, \\ldots, a_{n-1}$ be arbitrary real numbers. Define the sequences $u_{0}, \\ldots, u_{n}$ and $v_{0}, \\ldots, v_{n}$ inductively by $u_{0}=u_{1}=v_{0}=v_{1}=1$, and $$ u_{k+1}=u_{k}+a_{k} u_{k-1}, \\quad v_{k+1}=v_{k}+a_{n-k} v_{k-1} \\quad \\text { for } k=1, \\ldots, n-1 . $$ Prove that $u_{n}=v_{n}$. (France)", "solution": "Define recursively a sequence of multivariate polynomials by $$ P_{0}=P_{1}=1, \\quad P_{k+1}\\left(x_{1}, \\ldots, x_{k}\\right)=P_{k}\\left(x_{1}, \\ldots, x_{k-1}\\right)+x_{k} P_{k-1}\\left(x_{1}, \\ldots, x_{k-2}\\right), $$ so $P_{n}$ is a polynomial in $n-1$ variables for each $n \\geqslant 1$. Two easy inductive arguments show that $$ u_{n}=P_{n}\\left(a_{1}, \\ldots, a_{n-1}\\right), \\quad v_{n}=P_{n}\\left(a_{n-1}, \\ldots, a_{1}\\right) $$ so we need to prove $P_{n}\\left(x_{1}, \\ldots, x_{n-1}\\right)=P_{n}\\left(x_{n-1}, \\ldots, x_{1}\\right)$ for every positive integer $n$. The cases $n=1,2$ are trivial, and the cases $n=3,4$ follow from $P_{3}(x, y)=1+x+y$ and $P_{4}(x, y, z)=$ $1+x+y+z+x z$. Now we proceed by induction, assuming that $n \\geqslant 5$ and the claim hold for all smaller cases. Using $F(a, b)$ as an abbreviation for $P_{|a-b|+1}\\left(x_{a}, \\ldots, x_{b}\\right)$ (where the indices $a, \\ldots, b$ can be either in increasing or decreasing order), $$ \\begin{aligned} F(n, 1) & =F(n, 2)+x_{1} F(n, 3)=F(2, n)+x_{1} F(3, n) \\\\ & =\\left(F(2, n-1)+x_{n} F(2, n-2)\\right)+x_{1}\\left(F(3, n-1)+x_{n} F(3, n-2)\\right) \\\\ & =\\left(F(n-1,2)+x_{1} F(n-1,3)\\right)+x_{n}\\left(F(n-2,2)+x_{1} F(n-2,3)\\right) \\\\ & =F(n-1,1)+x_{n} F(n-2,1)=F(1, n-1)+x_{n} F(1, n-2) \\\\ & =F(1, n), \\end{aligned} $$ as we wished to show.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A1", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer and let $a_{1}, \\ldots, a_{n-1}$ be arbitrary real numbers. Define the sequences $u_{0}, \\ldots, u_{n}$ and $v_{0}, \\ldots, v_{n}$ inductively by $u_{0}=u_{1}=v_{0}=v_{1}=1$, and $$ u_{k+1}=u_{k}+a_{k} u_{k-1}, \\quad v_{k+1}=v_{k}+a_{n-k} v_{k-1} \\quad \\text { for } k=1, \\ldots, n-1 . $$ Prove that $u_{n}=v_{n}$. (France)", "solution": "Using matrix notation, we can rewrite the recurrence relation as $$ \\left(\\begin{array}{c} u_{k+1} \\\\ u_{k+1}-u_{k} \\end{array}\\right)=\\left(\\begin{array}{c} u_{k}+a_{k} u_{k-1} \\\\ a_{k} u_{k-1} \\end{array}\\right)=\\left(\\begin{array}{cc} 1+a_{k} & -a_{k} \\\\ a_{k} & -a_{k} \\end{array}\\right)\\left(\\begin{array}{c} u_{k} \\\\ u_{k}-u_{k-1} \\end{array}\\right) $$ for $1 \\leqslant k \\leqslant n-1$, and similarly $$ \\left(v_{k+1} ; v_{k}-v_{k+1}\\right)=\\left(v_{k}+a_{n-k} v_{k-1} ;-a_{n-k} v_{k-1}\\right)=\\left(v_{k} ; v_{k-1}-v_{k}\\right)\\left(\\begin{array}{cc} 1+a_{n-k} & -a_{n-k} \\\\ a_{n-k} & -a_{n-k} \\end{array}\\right) $$ for $1 \\leqslant k \\leqslant n-1$. Hence, introducing the $2 \\times 2$ matrices $A_{k}=\\left(\\begin{array}{cc}1+a_{k} & -a_{k} \\\\ a_{k} & -a_{k}\\end{array}\\right)$ we have $$ \\left(\\begin{array}{c} u_{k+1} \\\\ u_{k+1}-u_{k} \\end{array}\\right)=A_{k}\\left(\\begin{array}{c} u_{k} \\\\ u_{k}-u_{k-1} \\end{array}\\right) \\quad \\text { and } \\quad\\left(v_{k+1} ; v_{k}-v_{k+1}\\right)=\\left(v_{k} ; v_{k-1}-v_{k}\\right) A_{n-k} . $$ for $1 \\leqslant k \\leqslant n-1$. Since $\\left(\\begin{array}{c}u_{1} \\\\ u_{1}-u_{0}\\end{array}\\right)=\\left(\\begin{array}{l}1 \\\\ 0\\end{array}\\right)$ and $\\left(v_{1} ; v_{0}-v_{1}\\right)=(1 ; 0)$, we get $$ \\left(\\begin{array}{c} u_{n} \\\\ u_{n}-u_{n-1} \\end{array}\\right)=A_{n-1} A_{n-2} \\cdots A_{1} \\cdot\\left(\\begin{array}{l} 1 \\\\ 0 \\end{array}\\right) \\quad \\text { and } \\quad\\left(v_{n} ; v_{n-1}-v_{n}\\right)=(1 ; 0) \\cdot A_{n-1} A_{n-2} \\cdots A_{1} \\text {. } $$ It follows that $$ \\left(u_{n}\\right)=(1 ; 0)\\left(\\begin{array}{c} u_{n} \\\\ u_{n}-u_{n-1} \\end{array}\\right)=(1 ; 0) \\cdot A_{n-1} A_{n-2} \\cdots A_{1} \\cdot\\left(\\begin{array}{l} 1 \\\\ 0 \\end{array}\\right)=\\left(v_{n} ; v_{n-1}-v_{n}\\right)\\left(\\begin{array}{l} 1 \\\\ 0 \\end{array}\\right)=\\left(v_{n}\\right) . $$ Comment 1. These sequences are related to the Fibonacci sequence; when $a_{1}=\\cdots=a_{n-1}=1$, we have $u_{k}=v_{k}=F_{k+1}$, the $(k+1)$ st Fibonacci number. Also, for every positive integer $k$, the polynomial $P_{k}\\left(x_{1}, \\ldots, x_{k-1}\\right)$ from Solution 2 is the sum of $F_{k+1}$ monomials. Comment 2. One may notice that the condition is equivalent to $$ \\frac{u_{k+1}}{u_{k}}=1+\\frac{a_{k}}{1+\\frac{a_{k-1}}{1+\\ldots+\\frac{a_{2}}{1+a_{1}}}} \\quad \\text { and } \\quad \\frac{v_{k+1}}{v_{k}}=1+\\frac{a_{n-k}}{1+\\frac{a_{n-k+1}}{1+\\ldots+\\frac{a_{n-2}}{1+a_{n-1}}}} $$ so the problem claims that the corresponding continued fractions for $u_{n} / u_{n-1}$ and $v_{n} / v_{n-1}$ have the same numerator. Comment 3. An alternative variant of the problem is the following. Let $n$ be a positive integer and let $a_{1}, \\ldots, a_{n-1}$ be arbitrary real numbers. Define the sequences $u_{0}, \\ldots, u_{n}$ and $v_{0}, \\ldots, v_{n}$ inductively by $u_{0}=v_{0}=0, u_{1}=v_{1}=1$, and $$ u_{k+1}=a_{k} u_{k}+u_{k-1}, \\quad v_{k+1}=a_{n-k} v_{k}+v_{k-1} \\quad \\text { for } k=1, \\ldots, n-1 $$ Prove that $u_{n}=v_{n}$. All three solutions above can be reformulated to prove this statement; one may prove $$ u_{n}=v_{n}=\\sum_{\\substack{0=i_{0}0 $$ or observe that $$ \\left(\\begin{array}{c} u_{k+1} \\\\ u_{k} \\end{array}\\right)=\\left(\\begin{array}{cc} a_{k} & 1 \\\\ 1 & 0 \\end{array}\\right)\\left(\\begin{array}{c} u_{k} \\\\ u_{k-1} \\end{array}\\right) \\quad \\text { and } \\quad\\left(v_{k+1} ; v_{k}\\right)=\\left(v_{k} ; v_{k-1}\\right)\\left(\\begin{array}{cc} a_{k} & 1 \\\\ 1 & 0 \\end{array}\\right) . $$ Here we have $$ \\frac{u_{k+1}}{u_{k}}=a_{k}+\\frac{1}{a_{k-1}+\\frac{1}{a_{k-2}+\\ldots+\\frac{1}{a_{1}}}}=\\left[a_{k} ; a_{k-1}, \\ldots, a_{1}\\right] $$ and $$ \\frac{v_{k+1}}{v_{k}}=a_{n-k}+\\frac{1}{a_{n-k+1}+\\frac{1}{a_{n-k+2}+\\ldots+\\frac{1}{a_{n-1}}}}=\\left[a_{n-k} ; a_{n-k+1}, \\ldots, a_{n-1}\\right] $$ so this alternative statement is equivalent to the known fact that the continued fractions $\\left[a_{n-1} ; a_{n-2}, \\ldots, a_{1}\\right]$ and $\\left[a_{1} ; a_{2}, \\ldots, a_{n-1}\\right]$ have the same numerator.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A2", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Prove that in any set of 2000 distinct real numbers there exist two pairs $a>b$ and $c>d$ with $a \\neq c$ or $b \\neq d$, such that $$ \\left|\\frac{a-b}{c-d}-1\\right|<\\frac{1}{100000} $$ (Lithuania)", "solution": "For any set $S$ of $n=2000$ distinct real numbers, let $D_{1} \\leqslant D_{2} \\leqslant \\cdots \\leqslant D_{m}$ be the distances between them, displayed with their multiplicities. Here $m=n(n-1) / 2$. By rescaling the numbers, we may assume that the smallest distance $D_{1}$ between two elements of $S$ is $D_{1}=1$. Let $D_{1}=1=y-x$ for $x, y \\in S$. Evidently $D_{m}=v-u$ is the difference between the largest element $v$ and the smallest element $u$ of $S$. If $D_{i+1} / D_{i}<1+10^{-5}$ for some $i=1,2, \\ldots, m-1$ then the required inequality holds, because $0 \\leqslant D_{i+1} / D_{i}-1<10^{-5}$. Otherwise, the reverse inequality $$ \\frac{D_{i+1}}{D_{i}} \\geqslant 1+\\frac{1}{10^{5}} $$ holds for each $i=1,2, \\ldots, m-1$, and therefore $$ v-u=D_{m}=\\frac{D_{m}}{D_{1}}=\\frac{D_{m}}{D_{m-1}} \\cdots \\frac{D_{3}}{D_{2}} \\cdot \\frac{D_{2}}{D_{1}} \\geqslant\\left(1+\\frac{1}{10^{5}}\\right)^{m-1} . $$ From $m-1=n(n-1) / 2-1=1000 \\cdot 1999-1>19 \\cdot 10^{5}$, together with the fact that for all $n \\geqslant 1$, $\\left(1+\\frac{1}{n}\\right)^{n} \\geqslant 1+\\left(\\begin{array}{l}n \\\\ 1\\end{array}\\right) \\cdot \\frac{1}{n}=2$, we get $$ \\left(1+\\frac{1}{10^{5}}\\right)^{19 \\cdot 10^{5}}=\\left(\\left(1+\\frac{1}{10^{5}}\\right)^{10^{5}}\\right)^{19} \\geqslant 2^{19}=2^{9} \\cdot 2^{10}>500 \\cdot 1000>2 \\cdot 10^{5}, $$ and so $v-u=D_{m}>2 \\cdot 10^{5}$. Since the distance of $x$ to at least one of the numbers $u, v$ is at least $(u-v) / 2>10^{5}$, we have $$ |x-z|>10^{5} . $$ for some $z \\in\\{u, v\\}$. Since $y-x=1$, we have either $z>y>x$ (if $z=v$ ) or $y>x>z$ (if $z=u$ ). If $z>y>x$, selecting $a=z, b=y, c=z$ and $d=x$ (so that $b \\neq d$ ), we obtain $$ \\left|\\frac{a-b}{c-d}-1\\right|=\\left|\\frac{z-y}{z-x}-1\\right|=\\left|\\frac{x-y}{z-x}\\right|=\\frac{1}{z-x}<10^{-5} . $$ Otherwise, if $y>x>z$, we may choose $a=y, b=z, c=x$ and $d=z$ (so that $a \\neq c$ ), and obtain $$ \\left|\\frac{a-b}{c-d}-1\\right|=\\left|\\frac{y-z}{x-z}-1\\right|=\\left|\\frac{y-x}{x-z}\\right|=\\frac{1}{x-z}<10^{-5} $$ The desired result follows. Comment. As the solution shows, the numbers 2000 and $\\frac{1}{100000}$ appearing in the statement of the problem may be replaced by any $n \\in \\mathbb{Z}_{>0}$ and $\\delta>0$ satisfying $$ \\delta(1+\\delta)^{n(n-1) / 2-1}>2 $$", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A3", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $\\mathbb{Q}_{>0}$ be the set of positive rational numbers. Let $f: \\mathbb{Q}_{>0} \\rightarrow \\mathbb{R}$ be a function satisfying the conditions $$ f(x) f(y) \\geqslant f(x y) \\text { and } f(x+y) \\geqslant f(x)+f(y) $$ for all $x, y \\in \\mathbb{Q}_{>0}$. Given that $f(a)=a$ for some rational $a>1$, prove that $f(x)=x$ for all $x \\in \\mathbb{Q}_{>0}$. (Bulgaria)", "solution": "Denote by $\\mathbb{Z}_{>0}$ the set of positive integers. Plugging $x=1, y=a$ into (1) we get $f(1) \\geqslant 1$. Next, by an easy induction on $n$ we get from (2) that $$ f(n x) \\geqslant n f(x) \\text { for all } n \\in \\mathbb{Z}_{>0} \\text { and } x \\in \\mathbb{Q}_{>0} $$ In particular, we have $$ f(n) \\geqslant n f(1) \\geqslant n \\quad \\text { for all } n \\in \\mathbb{Z}_{>0} $$ From (1) again we have $f(m / n) f(n) \\geqslant f(m)$, so $f(q)>0$ for all $q \\in \\mathbb{Q}_{>0}$. Now, (2) implies that $f$ is strictly increasing; this fact together with (4) yields $$ f(x) \\geqslant f(\\lfloor x\\rfloor) \\geqslant\\lfloor x\\rfloor>x-1 \\quad \\text { for all } x \\geqslant 1 $$ By an easy induction we get from (1) that $f(x)^{n} \\geqslant f\\left(x^{n}\\right)$, so $$ f(x)^{n} \\geqslant f\\left(x^{n}\\right)>x^{n}-1 \\quad \\Longrightarrow \\quad f(x) \\geqslant \\sqrt[n]{x^{n}-1} \\text { for all } x>1 \\text { and } n \\in \\mathbb{Z}_{>0} $$ This yields $$ f(x) \\geqslant x \\text { for every } x>1 \\text {. } $$ (Indeed, if $x>y>1$ then $x^{n}-y^{n}=(x-y)\\left(x^{n-1}+x^{n-2} y+\\cdots+y^{n}\\right)>n(x-y)$, so for a large $n$ we have $x^{n}-1>y^{n}$ and thus $f(x)>y$.) Now, (1) and (5) give $a^{n}=f(a)^{n} \\geqslant f\\left(a^{n}\\right) \\geqslant a^{n}$, so $f\\left(a^{n}\\right)=a^{n}$. Now, for $x>1$ let us choose $n \\in \\mathbb{Z}_{>0}$ such that $a^{n}-x>1$. Then by (2) and (5) we get $$ a^{n}=f\\left(a^{n}\\right) \\geqslant f(x)+f\\left(a^{n}-x\\right) \\geqslant x+\\left(a^{n}-x\\right)=a^{n} $$ and therefore $f(x)=x$ for $x>1$. Finally, for every $x \\in \\mathbb{Q}_{>0}$ and every $n \\in \\mathbb{Z}_{>0}$, from (1) and (3) we get $$ n f(x)=f(n) f(x) \\geqslant f(n x) \\geqslant n f(x) $$ which gives $f(n x)=n f(x)$. Therefore $f(m / n)=f(m) / n=m / n$ for all $m, n \\in \\mathbb{Z}_{>0}$. Comment. The condition $f(a)=a>1$ is essential. Indeed, for $b \\geqslant 1$ the function $f(x)=b x^{2}$ satisfies (1) and (2) for all $x, y \\in \\mathbb{Q}_{>0}$, and it has a unique fixed point $1 / b \\leqslant 1$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A4", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer, and consider a sequence $a_{1}, a_{2}, \\ldots, a_{n}$ of positive integers. Extend it periodically to an infinite sequence $a_{1}, a_{2}, \\ldots$ by defining $a_{n+i}=a_{i}$ for all $i \\geqslant 1$. If $$ a_{1} \\leqslant a_{2} \\leqslant \\cdots \\leqslant a_{n} \\leqslant a_{1}+n $$ and $$ a_{a_{i}} \\leqslant n+i-1 \\quad \\text { for } i=1,2, \\ldots, n $$ prove that $$ a_{1}+\\cdots+a_{n} \\leqslant n^{2} . $$ (Germany)", "solution": "First, we claim that $$ a_{i} \\leqslant n+i-1 \\quad \\text { for } i=1,2, \\ldots, n \\text {. } $$ Assume contrariwise that $i$ is the smallest counterexample. From $a_{n} \\geqslant a_{n-1} \\geqslant \\cdots \\geqslant a_{i} \\geqslant n+i$ and $a_{a_{i}} \\leqslant n+i-1$, taking into account the periodicity of our sequence, it follows that $$ a_{i} \\text { cannot be congruent to } i, i+1, \\ldots, n-1 \\text {, or } n(\\bmod n) \\text {. } $$ Thus our assumption that $a_{i} \\geqslant n+i$ implies the stronger statement that $a_{i} \\geqslant 2 n+1$, which by $a_{1}+n \\geqslant a_{n} \\geqslant a_{i}$ gives $a_{1} \\geqslant n+1$. The minimality of $i$ then yields $i=1$, and (4) becomes contradictory. This establishes our first claim. In particular we now know that $a_{1} \\leqslant n$. If $a_{n} \\leqslant n$, then $a_{1} \\leqslant \\cdots \\leqslant \\cdots a_{n} \\leqslant n$ and the desired inequality holds trivially. Otherwise, consider the number $t$ with $1 \\leqslant t \\leqslant n-1$ such that $$ a_{1} \\leqslant a_{2} \\leqslant \\ldots \\leqslant a_{t} \\leqslant na_{a_{i}}$ ) belongs to $\\left\\{a_{i}+1, \\ldots, n\\right\\}$, and for this reason $b_{i} \\leqslant n-a_{i}$. It follows from the definition of the $b_{i} \\mathrm{~s}$ and (5) that $$ a_{t+1}+\\ldots+a_{n} \\leqslant n(n-t)+b_{1}+\\ldots+b_{t} . $$ Adding $a_{1}+\\ldots+a_{t}$ to both sides and using that $a_{i}+b_{i} \\leqslant n$ for $1 \\leqslant i \\leqslant t$, we get $$ a_{1}+a_{2}+\\cdots+a_{n} \\leqslant n(n-t)+n t=n^{2} $$ as we wished to prove.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A4", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer, and consider a sequence $a_{1}, a_{2}, \\ldots, a_{n}$ of positive integers. Extend it periodically to an infinite sequence $a_{1}, a_{2}, \\ldots$ by defining $a_{n+i}=a_{i}$ for all $i \\geqslant 1$. If $$ a_{1} \\leqslant a_{2} \\leqslant \\cdots \\leqslant a_{n} \\leqslant a_{1}+n $$ and $$ a_{a_{i}} \\leqslant n+i-1 \\quad \\text { for } i=1,2, \\ldots, n $$ prove that $$ a_{1}+\\cdots+a_{n} \\leqslant n^{2} . $$ (Germany)", "solution": "In the first quadrant of an infinite grid, consider the increasing \"staircase\" obtained by shading in dark the bottom $a_{i}$ cells of the $i$ th column for $1 \\leqslant i \\leqslant n$. We will prove that there are at most $n^{2}$ dark cells. To do it, consider the $n \\times n$ square $S$ in the first quadrant with a vertex at the origin. Also consider the $n \\times n$ square directly to the left of $S$. Starting from its lower left corner, shade in light the leftmost $a_{j}$ cells of the $j$ th row for $1 \\leqslant j \\leqslant n$. Equivalently, the light shading is obtained by reflecting the dark shading across the line $x=y$ and translating it $n$ units to the left. The figure below illustrates this construction for the sequence $6,6,6,7,7,7,8,12,12,14$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-14.jpg?height=650&width=1052&top_left_y=667&top_left_x=534) We claim that there is no cell in $S$ which is both dark and light. Assume, contrariwise, that there is such a cell in column $i$. Consider the highest dark cell in column $i$ which is inside $S$. Since it is above a light cell and inside $S$, it must be light as well. There are two cases: Case 1. $a_{i} \\leqslant n$ If $a_{i} \\leqslant n$ then this dark and light cell is $\\left(i, a_{i}\\right)$, as highlighted in the figure. However, this is the $(n+i)$-th cell in row $a_{i}$, and we only shaded $a_{a_{i}}0$ such that $f(n)=b-1$; but then $f^{3}(n-1)=f(n)+1=b$, so $b \\in R_{3}$. This yields $$ 3 k=\\left|S_{1} \\cup S_{2} \\cup S_{3}\\right| \\leqslant 1+1+\\left|S_{1}\\right|=k+2, $$ or $k \\leqslant 1$. Therefore $k=1$, and the inequality above comes to equality. So we have $S_{1}=\\{a\\}$, $S_{2}=\\{f(a)\\}$, and $S_{3}=\\left\\{f^{2}(a)\\right\\}$ for some $a \\in \\mathbb{Z}_{\\geqslant 0}$, and each one of the three options (i), (ii), and (iii) should be realized exactly once, which means that $$ \\left\\{a, f(a), f^{2}(a)\\right\\}=\\{0, a+1, f(0)+1\\} . $$ III. From (3), we get $a+1 \\in\\left\\{f(a), f^{2}(a)\\right\\}$ (the case $a+1=a$ is impossible). If $a+1=f^{2}(a)$ then we have $f(a+1)=f^{3}(a)=f(a+1)+1$ which is absurd. Therefore $$ f(a)=a+1 $$ Next, again from (3) we have $0 \\in\\left\\{a, f^{2}(a)\\right\\}$. Let us consider these two cases separately. Case 1. Assume that $a=0$, then $f(0)=f(a)=a+1=1$. Also from (3) we get $f(1)=f^{2}(a)=$ $f(0)+1=2$. Now, let us show that $f(n)=n+1$ by induction on $n$; the base cases $n \\leqslant 1$ are established. Next, if $n \\geqslant 2$ then the induction hypothesis implies $$ n+1=f(n-1)+1=f^{3}(n-2)=f^{2}(n-1)=f(n), $$ establishing the step. In this case we have obtained the first of two answers; checking that is satisfies (*) is straightforward. Case 2. Assume now that $f^{2}(a)=0$; then by (3) we get $a=f(0)+1$. By (4) we get $f(a+1)=$ $f^{2}(a)=0$, then $f(0)=f^{3}(a)=f(a+1)+1=1$, hence $a=f(0)+1=2$ and $f(2)=3$ by (4). To summarize, $$ f(0)=1, \\quad f(2)=3, \\quad f(3)=0 . $$ Now let us prove by induction on $m$ that (1) holds for all $n=4 k, 4 k+2,4 k+3$ with $k \\leqslant m$ and for all $n=4 k+1$ with $k0$ and $B(1)=m+2>0$ since $n=2 m$. Therefore $B(x)=A(x+a+b)$. Writing $c=a+b \\geqslant 1$ we compute $$ 0=A(x+c)-B(x)=(3 c-2 m) x^{2}+c(3 c-2 m) x+c^{2}(c-m) . $$ Then we must have $3 c-2 m=c-m=0$, which gives $m=0$, a contradiction. We conclude that $f(x)=t x$ is the only solution.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A6", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $m \\neq 0$ be an integer. Find all polynomials $P(x)$ with real coefficients such that $$ \\left(x^{3}-m x^{2}+1\\right) P(x+1)+\\left(x^{3}+m x^{2}+1\\right) P(x-1)=2\\left(x^{3}-m x+1\\right) P(x) $$ for all real numbers $x$.", "solution": "Multiplying (1) by $x$, we rewrite it as $$ x\\left(x^{3}-m x^{2}+1\\right) P(x+1)+x\\left(x^{3}+m x^{2}+1\\right) P(x-1)=[(x+1)+(x-1)]\\left(x^{3}-m x+1\\right) P(x) . $$ After regrouping, it becomes $$ \\left(x^{3}-m x^{2}+1\\right) Q(x)=\\left(x^{3}+m x^{2}+1\\right) Q(x-1) \\text {, } $$ where $Q(x)=x P(x+1)-(x+1) P(x)$. If $\\operatorname{deg} P \\geqslant 2$ then $\\operatorname{deg} Q=\\operatorname{deg} P$, so $Q(x)$ has a finite multiset of complex roots, which we denote $R_{Q}$. Each root is taken with its multiplicity. Then the multiset of complex roots of $Q(x-1)$ is $R_{Q}+1=\\left\\{z+1: z \\in R_{Q}\\right\\}$. Let $\\left\\{x_{1}, x_{2}, x_{3}\\right\\}$ and $\\left\\{y_{1}, y_{2}, y_{3}\\right\\}$ be the multisets of roots of the polynomials $A(x)=x^{3}-m x^{2}+1$ and $B(x)=x^{3}+m x^{2}+1$, respectively. From (2) we get the equality of multisets $$ \\left\\{x_{1}, x_{2}, x_{3}\\right\\} \\cup R_{Q}=\\left\\{y_{1}, y_{2}, y_{3}\\right\\} \\cup\\left(R_{Q}+1\\right) . $$ For every $r \\in R_{Q}$, since $r+1$ is in the set of the right hand side, we must have $r+1 \\in R_{Q}$ or $r+1=x_{i}$ for some $i$. Similarly, since $r$ is in the set of the left hand side, either $r-1 \\in R_{Q}$ or $r=y_{i}$ for some $i$. This implies that, possibly after relabelling $y_{1}, y_{2}, y_{3}$, all the roots of (2) may be partitioned into three chains of the form $\\left\\{y_{i}, y_{i}+1, \\ldots, y_{i}+k_{i}=x_{i}\\right\\}$ for $i=1,2,3$ and some integers $k_{1}, k_{2}, k_{3} \\geqslant 0$. Now we analyze the roots of the polynomial $A_{a}(x)=x^{3}+a x^{2}+1$. Using calculus or elementary methods, we find that the local extrema of $A_{a}(x)$ occur at $x=0$ and $x=-2 a / 3$; their values are $A_{a}(0)=1>0$ and $A_{a}(-2 a / 3)=1+4 a^{3} / 27$, which is positive for integers $a \\geqslant-1$ and negative for integers $a \\leqslant-2$. So when $a \\in \\mathbb{Z}, A_{a}$ has three real roots if $a \\leqslant-2$ and one if $a \\geqslant-1$. Now, since $y_{i}-x_{i} \\in \\mathbb{Z}$ for $i=1,2,3$, the cubics $A_{m}$ and $A_{-m}$ must have the same number of real roots. The previous analysis then implies that $m=1$ or $m=-1$. Therefore the real root $\\alpha$ of $A_{1}(x)=x^{3}+x^{2}+1$ and the real root $\\beta$ of $A_{-1}(x)=x^{3}-x^{2}+1$ must differ by an integer. But this is impossible, because $A_{1}\\left(-\\frac{3}{2}\\right)=-\\frac{1}{8}$ and $A_{1}(-1)=1$ so $-1.5<\\alpha<-1$, while $A_{-1}(-1)=-1$ and $A_{-1}\\left(-\\frac{1}{2}\\right)=\\frac{5}{8}$, so $-1<\\beta<-0.5$. It follows that $\\operatorname{deg} P \\leqslant 1$. Then, as shown in Solution 1, we conclude that the solutions are $P(x)=t x$ for all real numbers $t$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C1", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer. Find the smallest integer $k$ with the following property: Given any real numbers $a_{1}, \\ldots, a_{d}$ such that $a_{1}+a_{2}+\\cdots+a_{d}=n$ and $0 \\leqslant a_{i} \\leqslant 1$ for $i=1,2, \\ldots, d$, it is possible to partition these numbers into $k$ groups (some of which may be empty) such that the sum of the numbers in each group is at most 1 . (Poland)", "solution": "If $d=2 n-1$ and $a_{1}=\\cdots=a_{2 n-1}=n /(2 n-1)$, then each group in such a partition can contain at most one number, since $2 n /(2 n-1)>1$. Therefore $k \\geqslant 2 n-1$. It remains to show that a suitable partition into $2 n-1$ groups always exists. We proceed by induction on $d$. For $d \\leqslant 2 n-1$ the result is trivial. If $d \\geqslant 2 n$, then since $$ \\left(a_{1}+a_{2}\\right)+\\ldots+\\left(a_{2 n-1}+a_{2 n}\\right) \\leqslant n $$ we may find two numbers $a_{i}, a_{i+1}$ such that $a_{i}+a_{i+1} \\leqslant 1$. We \"merge\" these two numbers into one new number $a_{i}+a_{i+1}$. By the induction hypothesis, a suitable partition exists for the $d-1$ numbers $a_{1}, \\ldots, a_{i-1}, a_{i}+a_{i+1}, a_{i+2}, \\ldots, a_{d}$. This induces a suitable partition for $a_{1}, \\ldots, a_{d}$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C1", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer. Find the smallest integer $k$ with the following property: Given any real numbers $a_{1}, \\ldots, a_{d}$ such that $a_{1}+a_{2}+\\cdots+a_{d}=n$ and $0 \\leqslant a_{i} \\leqslant 1$ for $i=1,2, \\ldots, d$, it is possible to partition these numbers into $k$ groups (some of which may be empty) such that the sum of the numbers in each group is at most 1 . (Poland)", "solution": "We will show that it is even possible to split the sequence $a_{1}, \\ldots, a_{d}$ into $2 n-1$ contiguous groups so that the sum of the numbers in each groups does not exceed 1. Consider a segment $S$ of length $n$, and partition it into segments $S_{1}, \\ldots, S_{d}$ of lengths $a_{1}, \\ldots, a_{d}$, respectively, as shown below. Consider a second partition of $S$ into $n$ equal parts by $n-1$ \"empty dots\". | $a_{1}$ | $a_{2}$ | $a_{3}$ | $a_{4}$ | $a_{5}$ | $a_{6}$ | $a_{7}$ | $a_{8}, a_{9}, a_{10}$ | | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | | | | | | | | | | Assume that the $n-1$ empty dots are in segments $S_{i_{1}}, \\ldots, S_{i_{n-1}}$. (If a dot is on the boundary of two segments, we choose the right segment). These $n-1$ segments are distinct because they have length at most 1. Consider the partition: $$ \\left\\{a_{1}, \\ldots, a_{i_{1}-1}\\right\\},\\left\\{a_{i_{1}}\\right\\},\\left\\{a_{i_{1}+1}, \\ldots, a_{i_{2}-1}\\right\\},\\left\\{a_{i_{2}}\\right\\}, \\ldots\\left\\{a_{i_{n-1}}\\right\\},\\left\\{a_{i_{n-1}+1}, \\ldots, a_{d}\\right\\} $$ In the example above, this partition is $\\left\\{a_{1}, a_{2}\\right\\},\\left\\{a_{3}\\right\\},\\left\\{a_{4}, a_{5}\\right\\},\\left\\{a_{6}\\right\\}, \\varnothing,\\left\\{a_{7}\\right\\},\\left\\{a_{8}, a_{9}, a_{10}\\right\\}$. We claim that in this partition, the sum of the numbers in this group is at most 1 . For the sets $\\left\\{a_{i_{t}}\\right\\}$ this is obvious since $a_{i_{t}} \\leqslant 1$. For the sets $\\left\\{a_{i_{t}}+1, \\ldots, a_{i_{t+1}-1}\\right\\}$ this follows from the fact that the corresponding segments lie between two neighboring empty dots, or between an endpoint of $S$ and its nearest empty dot. Therefore the sum of their lengths cannot exceed 1.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C1", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer. Find the smallest integer $k$ with the following property: Given any real numbers $a_{1}, \\ldots, a_{d}$ such that $a_{1}+a_{2}+\\cdots+a_{d}=n$ and $0 \\leqslant a_{i} \\leqslant 1$ for $i=1,2, \\ldots, d$, it is possible to partition these numbers into $k$ groups (some of which may be empty) such that the sum of the numbers in each group is at most 1 . (Poland)", "solution": "First put all numbers greater than $\\frac{1}{2}$ in their own groups. Then, form the remaining groups as follows: For each group, add new $a_{i} \\mathrm{~S}$ one at a time until their sum exceeds $\\frac{1}{2}$. Since the last summand is at most $\\frac{1}{2}$, this group has sum at most 1 . Continue this procedure until we have used all the $a_{i}$ s. Notice that the last group may have sum less than $\\frac{1}{2}$. If the sum of the numbers in the last two groups is less than or equal to 1, we merge them into one group. In the end we are left with $m$ groups. If $m=1$ we are done. Otherwise the first $m-2$ have sums greater than $\\frac{1}{2}$ and the last two have total sum greater than 1 . Therefore $n>(m-2) / 2+1$ so $m \\leqslant 2 n-1$ as desired. Comment 1. The original proposal asked for the minimal value of $k$ when $n=2$. Comment 2. More generally, one may ask the same question for real numbers between 0 and 1 whose sum is a real number $r$. In this case the smallest value of $k$ is $k=\\lceil 2 r\\rceil-1$, as Solution 3 shows. Solutions 1 and 2 lead to the slightly weaker bound $k \\leqslant 2\\lceil r\\rceil-1$. This is actually the optimal bound for partitions into consecutive groups, which are the ones contemplated in these two solutions. To see this, assume that $r$ is not an integer and let $c=(r+1-\\lceil r\\rceil) /(1+\\lceil r\\rceil)$. One easily checks that $0N$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C3", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "A crazy physicist discovered a new kind of particle which he called an imon, after some of them mysteriously appeared in his lab. Some pairs of imons in the lab can be entangled, and each imon can participate in many entanglement relations. The physicist has found a way to perform the following two kinds of operations with these particles, one operation at a time. (i) If some imon is entangled with an odd number of other imons in the lab, then the physicist can destroy it. (ii) At any moment, he may double the whole family of imons in his lab by creating a copy $I^{\\prime}$ of each imon $I$. During this procedure, the two copies $I^{\\prime}$ and $J^{\\prime}$ become entangled if and only if the original imons $I$ and $J$ are entangled, and each copy $I^{\\prime}$ becomes entangled with its original imon $I$; no other entanglements occur or disappear at this moment. Prove that the physicist may apply a sequence of such operations resulting in a family of imons, no two of which are entangled. (Japan)", "solution": "Let us consider a graph with the imons as vertices, and two imons being connected if and only if they are entangled. Recall that a proper coloring of a graph $G$ is a coloring of its vertices in several colors so that every two connected vertices have different colors. Lemma. Assume that a graph $G$ admits a proper coloring in $n$ colors $(n>1)$. Then one may perform a sequence of operations resulting in a graph which admits a proper coloring in $n-1$ colors. Proof. Let us apply repeatedly operation $(i)$ to any appropriate vertices while it is possible. Since the number of vertices decreases, this process finally results in a graph where all the degrees are even. Surely this graph also admits a proper coloring in $n$ colors $1, \\ldots, n$; let us fix this coloring. Now apply the operation (ii) to this graph. A proper coloring of the resulting graph in $n$ colors still exists: one may preserve the colors of the original vertices and color the vertex $I^{\\prime}$ in a color $k+1(\\bmod n)$ if the vertex $I$ has color $k$. Then two connected original vertices still have different colors, and so do their two connected copies. On the other hand, the vertices $I$ and $I^{\\prime}$ have different colors since $n>1$. All the degrees of the vertices in the resulting graph are odd, so one may apply operation $(i)$ to delete consecutively all the vertices of color $n$ one by one; no two of them are connected by an edge, so their degrees do not change during the process. Thus, we obtain a graph admitting a proper coloring in $n-1$ colors, as required. The lemma is proved. Now, assume that a graph $G$ has $n$ vertices; then it admits a proper coloring in $n$ colors. Applying repeatedly the lemma we finally obtain a graph admitting a proper coloring in one color, that is - a graph with no edges, as required.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C3", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "A crazy physicist discovered a new kind of particle which he called an imon, after some of them mysteriously appeared in his lab. Some pairs of imons in the lab can be entangled, and each imon can participate in many entanglement relations. The physicist has found a way to perform the following two kinds of operations with these particles, one operation at a time. (i) If some imon is entangled with an odd number of other imons in the lab, then the physicist can destroy it. (ii) At any moment, he may double the whole family of imons in his lab by creating a copy $I^{\\prime}$ of each imon $I$. During this procedure, the two copies $I^{\\prime}$ and $J^{\\prime}$ become entangled if and only if the original imons $I$ and $J$ are entangled, and each copy $I^{\\prime}$ becomes entangled with its original imon $I$; no other entanglements occur or disappear at this moment. Prove that the physicist may apply a sequence of such operations resulting in a family of imons, no two of which are entangled. (Japan)", "solution": "Again, we will use the graph language. I. We start with the following observation. Lemma. Assume that a graph $G$ contains an isolated vertex $A$, and a graph $G^{\\circ}$ is obtained from $G$ by deleting this vertex. Then, if one can apply a sequence of operations which makes a graph with no edges from $G^{\\circ}$, then such a sequence also exists for $G$. Proof. Consider any operation applicable to $G^{\\circ}$ resulting in a graph $G_{1}^{\\circ}$; then there exists a sequence of operations applicable to $G$ and resulting in a graph $G_{1}$ differing from $G_{1}^{\\circ}$ by an addition of an isolated vertex $A$. Indeed, if this operation is of type $(i)$, then one may simply repeat it in $G$. Otherwise, the operation is of type (ii), and one may apply it to $G$ and then delete the vertex $A^{\\prime}$ (it will have degree 1 ). Thus one may change the process for $G^{\\circ}$ into a corresponding process for $G$ step by step. In view of this lemma, if at some moment a graph contains some isolated vertex, then we may simply delete it; let us call this operation (iii). II. Let $V=\\left\\{A_{1}^{0}, \\ldots, A_{n}^{0}\\right\\}$ be the vertices of the initial graph. Let us describe which graphs can appear during our operations. Assume that operation (ii) was applied $m$ times. If these were the only operations applied, then the resulting graph $G_{n}^{m}$ has the set of vertices which can be enumerated as $$ V_{n}^{m}=\\left\\{A_{i}^{j}: 1 \\leqslant i \\leqslant n, 0 \\leqslant j \\leqslant 2^{m}-1\\right\\} $$ where $A_{i}^{0}$ is the common \"ancestor\" of all the vertices $A_{i}^{j}$, and the binary expansion of $j$ (adjoined with some zeroes at the left to have $m$ digits) \"keeps the history\" of this vertex: the $d$ th digit from the right is 0 if at the $d$ th doubling the ancestor of $A_{i}^{j}$ was in the original part, and this digit is 1 if it was in the copy. Next, the two vertices $A_{i}^{j}$ and $A_{k}^{\\ell}$ in $G_{n}^{m}$ are connected with an edge exactly if either (1) $j=\\ell$ and there was an edge between $A_{i}^{0}$ and $A_{k}^{0}$ (so these vertices appeared at the same application of operation (ii)); or (2) $i=k$ and the binary expansions of $j$ and $\\ell$ differ in exactly one digit (so their ancestors became connected as a copy and the original vertex at some application of (ii)). Now, if some operations $(i)$ were applied during the process, then simply some vertices in $G_{n}^{m}$ disappeared. So, in any case the resulting graph is some induced subgraph of $G_{n}^{m}$. III. Finally, we will show that from each (not necessarily induced) subgraph of $G_{n}^{m}$ one can obtain a graph with no vertices by applying operations $(i),(i i)$ and $(i i i)$. We proceed by induction on $n$; the base case $n=0$ is trivial. For the induction step, let us show how to apply several operations so as to obtain a graph containing no vertices of the form $A_{n}^{j}$ for $j \\in \\mathbb{Z}$. We will do this in three steps. Step 1. We apply repeatedly operation (i) to any appropriate vertices while it is possible. In the resulting graph, all vertices have even degrees. Step 2. Apply operation (ii) obtaining a subgraph of $G_{n}^{m+1}$ with all degrees being odd. In this graph, we delete one by one all the vertices $A_{n}^{j}$ where the sum of the binary digits of $j$ is even; it is possible since there are no edges between such vertices, so all their degrees remain odd. After that, we delete all isolated vertices. Step 3. Finally, consider any remaining vertex $A_{n}^{j}$ (then the sum of digits of $j$ is odd). If its degree is odd, then we simply delete it. Otherwise, since $A_{n}^{j}$ is not isolated, we consider any vertex adjacent to it. It has the form $A_{k}^{j}$ for some $k\\sqrt[3]{6 n}$, we will prove that there exist subsets $X$ and $Y$ of $S$ such that $|X|<|Y|$ and $\\sum_{x \\in X} x=\\sum_{y \\in Y} y$. Then, deleting the elements of $Y$ from our partition and adding the elements of $X$ to it, we obtain an $A$-partition of $n$ into less than $k_{\\text {min }}$ parts, which is the desired contradiction. For each positive integer $k \\leqslant s$, we consider the $k$-element subset $$ S_{1,0}^{k}:=\\left\\{b_{1}, \\ldots, b_{k}\\right\\} $$ as well as the following $k$-element subsets $S_{i, j}^{k}$ of $S$ : $$ S_{i, j}^{k}:=\\left\\{b_{1}, \\ldots, b_{k-i}, b_{k-i+j+1}, b_{s-i+2}, \\ldots, b_{s}\\right\\}, \\quad i=1, \\ldots, k, \\quad j=1, \\ldots, s-k $$ Pictorially, if we represent the elements of $S$ by a sequence of dots in increasing order, and represent a subset of $S$ by shading in the appropriate dots, we have: ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-27.jpg?height=124&width=967&top_left_y=1388&top_left_x=579) Denote by $\\Sigma_{i, j}^{k}$ the sum of elements in $S_{i, j}^{k}$. Clearly, $\\Sigma_{1,0}^{k}$ is the minimum sum of a $k$-element subset of $S$. Next, for all appropriate indices $i$ and $j$ we have $$ \\Sigma_{i, j}^{k}=\\Sigma_{i, j+1}^{k}+b_{k-i+j+1}-b_{k-i+j+2}<\\Sigma_{i, j+1}^{k} \\quad \\text { and } \\quad \\sum_{i, s-k}^{k}=\\sum_{i+1,1}^{k}+b_{k-i}-b_{k-i+1}<\\Sigma_{i+1,1}^{k} \\text {. } $$ Therefore $$ 1 \\leqslant \\Sigma_{1,0}^{k}<\\Sigma_{1,1}^{k}<\\Sigma_{1,2}^{k}<\\cdots<\\Sigma_{1, s-k}^{k}<\\Sigma_{2,1}^{k}<\\cdots<\\Sigma_{2, s-k}^{k}<\\Sigma_{3,1}^{k}<\\cdots<\\Sigma_{k, s-k}^{k} \\leqslant n . $$ To see this in the picture, we start with the $k$ leftmost points marked. At each step, we look for the rightmost point which can move to the right, and move it one unit to the right. We continue until the $k$ rightmost points are marked. As we do this, the corresponding sums clearly increase. For each $k$ we have found $k(s-k)+1$ different integers of the form $\\Sigma_{i, j}^{k}$ between 1 and $n$. As we vary $k$, the total number of integers we are considering is $$ \\sum_{k=1}^{s}(k(s-k)+1)=s \\cdot \\frac{s(s+1)}{2}-\\frac{s(s+1)(2 s+1)}{6}+s=\\frac{s\\left(s^{2}+5\\right)}{6}>\\frac{s^{3}}{6}>n . $$ Since they are between 1 and $n$, at least two of these integers are equal. Consequently, there exist $1 \\leqslant k\\sqrt[3]{6 n}>1$. Without loss of generality we assume that $a_{k_{\\min }}=b_{s}$. Let us distinguish two cases. Case 1. $b_{s} \\geqslant \\frac{s(s-1)}{2}+1$. Consider the partition $n-b_{s}=a_{1}+\\cdots+a_{k_{\\min }-1}$, which is clearly a minimum $A$-partition of $n-b_{s}$ with at least $s-1 \\geqslant 1$ different parts. Now, from $n<\\frac{s^{3}}{6}$ we obtain $$ n-b_{s} \\leqslant n-\\frac{s(s-1)}{2}-1<\\frac{s^{3}}{6}-\\frac{s(s-1)}{2}-1<\\frac{(s-1)^{3}}{6} $$ so $s-1>\\sqrt[3]{6\\left(n-b_{s}\\right)}$, which contradicts the choice of $n$. Case 2. $b_{s} \\leqslant \\frac{s(s-1)}{2}$. Set $b_{0}=0, \\Sigma_{0,0}=0$, and $\\Sigma_{i, j}=b_{1}+\\cdots+b_{i-1}+b_{j}$ for $1 \\leqslant i \\leqslant jb_{s}$ such sums; so at least two of them, say $\\Sigma_{i, j}$ and $\\Sigma_{i^{\\prime}, j^{\\prime}}$, are congruent modulo $b_{s}$ (where $(i, j) \\neq\\left(i^{\\prime}, j^{\\prime}\\right)$ ). This means that $\\Sigma_{i, j}-\\Sigma_{i^{\\prime}, j^{\\prime}}=r b_{s}$ for some integer $r$. Notice that for $i \\leqslant ji^{\\prime}$. Next, we observe that $\\Sigma_{i, j}-\\Sigma_{i^{\\prime}, j^{\\prime}}=\\left(b_{i^{\\prime}}-b_{j^{\\prime}}\\right)+b_{j}+b_{i^{\\prime}+1}+\\cdots+b_{i-1}$ and $b_{i^{\\prime}} \\leqslant b_{j^{\\prime}}$ imply $$ -b_{s}<-b_{j^{\\prime}}<\\Sigma_{i, j}-\\Sigma_{i^{\\prime}, j^{\\prime}}<\\left(i-i^{\\prime}\\right) b_{s}, $$ so $0 \\leqslant r \\leqslant i-i^{\\prime}-1$. Thus, we may remove the $i$ terms of $\\Sigma_{i, j}$ in our $A$-partition, and replace them by the $i^{\\prime}$ terms of $\\Sigma_{i^{\\prime}, j^{\\prime}}$ and $r$ terms equal to $b_{s}$, for a total of $r+i^{\\prime}a_{k+1} \\geqslant 1$, which shows that $$ n=a_{1}+\\ldots+a_{k+1} $$ is an $A$-partition of $n$ into $k+1$ different parts. Since $k h3$. Finally, in the sequence $d(a, y), d\\left(a, b_{y}\\right), d\\left(a, c_{y}\\right), d\\left(a, d_{y}\\right)$ the neighboring terms differ by at most 1 , the first term is less than 3 , and the last one is greater than 3 ; thus there exists one which is equal to 3 , as required. Comment 1. The upper bound 2550 is sharp. This can be seen by means of various examples; one of them is the \"Roman Empire\": it has one capital, called \"Rome\", that is connected to 51 semicapitals by internally disjoint paths of length 3. Moreover, each of these semicapitals is connected to 50 rural cities by direct flights. Comment 2. Observe that, under the conditions of the problem, there exists no bound for the size of $S_{1}(x)$ or $S_{2}(x)$. Comment 3. The numbers 100 and 2550 appearing in the statement of the problem may be replaced by $n$ and $\\left\\lfloor\\frac{(n+1)^{2}}{4}\\right\\rfloor$ for any positive integer $n$. Still more generally, one can also replace the pair $(3,4)$ of distances under consideration by any pair $(r, s)$ of positive integers satisfying $rn$ is equivalent to the case $t0$ is very small. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-35.jpg?height=585&width=607&top_left_y=797&top_left_x=756) Figure 3 If $0 \\leqslant a, b, c, d \\leqslant n$ satisfy $a+c=b+d$, then $a \\alpha+c \\alpha=b \\alpha+d \\alpha$, so the chord from $a$ to $c$ is parallel to the chord from $b$ to $d$ in $A(\\alpha)$. Hence in a cyclic arrangement all $k$-chords are parallel. In particular every cyclic arrangement is beautiful. Next we show that there are exactly $N+1$ distinct cyclic arrangements. To see this, let us see how $A(\\alpha)$ changes as we increase $\\alpha$ from 0 to 1 . The order of points $p$ and $q$ changes precisely when we cross a value $\\alpha=f$ such that $\\{p f\\}=\\{q f\\}$; this can only happen if $f$ is one of the $N$ fractions $f_{1}, \\ldots, f_{N}$. Therefore there are at most $N+1$ different cyclic arrangements. To show they are all distinct, recall that $f_{i}=a_{i} / b_{i}$ and let $\\epsilon>0$ be a very small number. In the arrangement $A\\left(f_{i}+\\epsilon\\right)$, point $k$ lands at $\\frac{k a_{i}\\left(\\bmod b_{i}\\right)}{b_{i}}+k \\epsilon$. Therefore the points are grouped into $b_{i}$ clusters next to the points $0, \\frac{1}{b_{i}}, \\ldots, \\frac{b_{i}-1}{b_{i}}$ of the circle. The cluster following $\\frac{k}{b_{i}}$ contains the numbers congruent to $k a_{i}^{-1}$ modulo $b_{i}$, listed clockwise in increasing order. It follows that the first number after 0 in $A\\left(f_{i}+\\epsilon\\right)$ is $b_{i}$, and the first number after 0 which is less than $b_{i}$ is $a_{i}^{-1}\\left(\\bmod b_{i}\\right)$, which uniquely determines $a_{i}$. In this way we can recover $f_{i}$ from the cyclic arrangement. Note also that $A\\left(f_{i}+\\epsilon\\right)$ is not the trivial arrangement where we list $0,1, \\ldots, n$ in order clockwise. It follows that the $N+1$ cyclic arrangements $A(\\epsilon), A\\left(f_{1}+\\epsilon\\right), \\ldots, A\\left(f_{N}+\\epsilon\\right)$ are distinct. Let us record an observation which will be useful later: $$ \\text { if } f_{i}<\\alpha1 / 2^{m}$. Next, any interval blackened by $B$ before the $r$ th move which intersects $\\left(x_{r}, x_{r+1}\\right)$ should be contained in $\\left[x_{r}, x_{r+1}\\right]$; by (ii), all such intervals have different lengths not exceeding $1 / 2^{m}$, so the total amount of ink used for them is less than $2 / 2^{m}$. Thus, the amount of ink used for the segment $\\left[0, x_{r+1}\\right]$ does not exceed the sum of $2 / 2^{m}, 3 x_{r}$ (used for $\\left[0, x_{r}\\right]$ ), and $1 / 2^{m}$ used for the segment $I_{0}^{r}$. In total it gives at most $3\\left(x_{r}+1 / 2^{m}\\right)<3\\left(x_{r}+\\alpha\\right)=3 x_{r+1}$. Thus condition $(i)$ is also verified in this case. The claim is proved. Finally, we can perform the desired estimation. Consider any situation in the game, say after the $(r-1)$ st move; assume that the segment $[0,1]$ is not completely black. By $(i i)$, in the segment $\\left[x_{r}, 1\\right]$ player $B$ has colored several segments of different lengths; all these lengths are negative powers of 2 not exceeding $1-x_{r}$; thus the total amount of ink used for this interval is at most $2\\left(1-x_{r}\\right)$. Using $(i)$, we obtain that the total amount of ink used is at most $3 x_{r}+2\\left(1-x_{r}\\right)<3$. Thus the pot is not empty, and therefore $A$ never wins. Comment 1. Notice that this strategy works even if the pot contains initially only 3 units of ink. Comment 2. There exist other strategies for $B$ allowing him to prevent emptying the pot before the whole interval is colored. On the other hand, let us mention some idea which does not work. Player $B$ could try a strategy in which the set of blackened points in each round is an interval of the type $[0, x]$. Such a strategy cannot work (even if there is more ink available). Indeed, under the assumption that $B$ uses such a strategy, let us prove by induction on $s$ the following statement: For any positive integer $s$, player $A$ has a strategy picking only positive integers $m \\leqslant s$ in which, if player $B$ ever paints a point $x \\geqslant 1-1 / 2^{s}$ then after some move, exactly the interval $\\left[0,1-1 / 2^{s}\\right]$ is blackened, and the amount of ink used up to this moment is at least s/2. For the base case $s=1$, player $A$ just picks $m=1$ in the first round. If for some positive integer $k$ player $A$ has such a strategy, for $s+1$ he can first rescale his strategy to the interval $[0,1 / 2]$ (sending in each round half of the amount of ink he would give by the original strategy). Thus, after some round, the interval $\\left[0,1 / 2-1 / 2^{s+1}\\right]$ becomes blackened, and the amount of ink used is at least $s / 4$. Now player $A$ picks $m=1 / 2$, and player $B$ spends $1 / 2$ unit of ink to blacken the interval [0,1/2]. After that, player $A$ again rescales his strategy to the interval $[1 / 2,1]$, and player $B$ spends at least $s / 4$ units of ink to blacken the interval $\\left[1 / 2,1-1 / 2^{s+1}\\right]$, so he spends in total at least $s / 4+1 / 2+s / 4=(s+1) / 2$ units of ink. Comment 3. In order to avoid finiteness issues, the statement could be replaced by the following one: Players $A$ and $B$ play a paintful game on the real numbers. Player $A$ has a paint pot with four units of black ink. A quantity $p$ of this ink suffices to blacken a (closed) real interval of length $p$. In the beginning of the game, player $A$ chooses (and announces) a positive integer $N$. In every round, player $A$ picks some positive integer $m \\leqslant N$ and provides $1 / 2^{m}$ units of ink from the pot. The player $B$ picks an integer $k$ and blackens the interval from $k / 2^{m}$ to $(k+1) / 2^{m}$ (some parts of this interval may happen to be blackened before). The goal of player $A$ is to reach a situation where the pot is empty and the interval $[0,1]$ is not completely blackened. Decide whether there exists a strategy for player A to win. However, the Problem Selection Committee believes that this version may turn out to be harder than the original one.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G1", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C$ be an acute-angled triangle with orthocenter $H$, and let $W$ be a point on side $B C$. Denote by $M$ and $N$ the feet of the altitudes from $B$ and $C$, respectively. Denote by $\\omega_{1}$ the circumcircle of $B W N$, and let $X$ be the point on $\\omega_{1}$ which is diametrically opposite to $W$. Analogously, denote by $\\omega_{2}$ the circumcircle of $C W M$, and let $Y$ be the point on $\\omega_{2}$ which is diametrically opposite to $W$. Prove that $X, Y$ and $H$ are collinear. (Thaliand)", "solution": "Let $L$ be the foot of the altitude from $A$, and let $Z$ be the second intersection point of circles $\\omega_{1}$ and $\\omega_{2}$, other than $W$. We show that $X, Y, Z$ and $H$ lie on the same line. Due to $\\angle B N C=\\angle B M C=90^{\\circ}$, the points $B, C, N$ and $M$ are concyclic; denote their circle by $\\omega_{3}$. Observe that the line $W Z$ is the radical axis of $\\omega_{1}$ and $\\omega_{2}$; similarly, $B N$ is the radical axis of $\\omega_{1}$ and $\\omega_{3}$, and $C M$ is the radical axis of $\\omega_{2}$ and $\\omega_{3}$. Hence $A=B N \\cap C M$ is the radical center of the three circles, and therefore $W Z$ passes through $A$. Since $W X$ and $W Y$ are diameters in $\\omega_{1}$ and $\\omega_{2}$, respectively, we have $\\angle W Z X=\\angle W Z Y=90^{\\circ}$, so the points $X$ and $Y$ lie on the line through $Z$, perpendicular to $W Z$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-39.jpg?height=770&width=1114&top_left_y=1103&top_left_x=511) The quadrilateral $B L H N$ is cyclic, because it has two opposite right angles. From the power of $A$ with respect to the circles $\\omega_{1}$ and $B L H N$ we find $A L \\cdot A H=A B \\cdot A N=A W \\cdot A Z$. If $H$ lies on the line $A W$ then this implies $H=Z$ immediately. Otherwise, by $\\frac{A Z}{A H}=\\frac{A L}{A W}$ the triangles $A H Z$ and $A W L$ are similar. Then $\\angle H Z A=\\angle W L A=90^{\\circ}$, so the point $H$ also lies on the line $X Y Z$. Comment. The original proposal also included a second statement: Let $P$ be the point on $\\omega_{1}$ such that $W P$ is parallel to $C N$, and let $Q$ be the point on $\\omega_{2}$ such that $W Q$ is parallel to $B M$. Prove that $P, Q$ and $H$ are collinear if and only if $B W=C W$ or $A W \\perp B C$. The Problem Selection Committee considered the first part more suitable for the competition.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G2", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $\\omega$ be the circumcircle of a triangle $A B C$. Denote by $M$ and $N$ the midpoints of the sides $A B$ and $A C$, respectively, and denote by $T$ the midpoint of the $\\operatorname{arc} B C$ of $\\omega$ not containing $A$. The circumcircles of the triangles $A M T$ and $A N T$ intersect the perpendicular bisectors of $A C$ and $A B$ at points $X$ and $Y$, respectively; assume that $X$ and $Y$ lie inside the triangle $A B C$. The lines $M N$ and $X Y$ intersect at $K$. Prove that $K A=K T$. (Iran)", "solution": "Let $O$ be the center of $\\omega$, thus $O=M Y \\cap N X$. Let $\\ell$ be the perpendicular bisector of $A T$ (it also passes through $O$ ). Denote by $r$ the operation of reflection about $\\ell$. Since $A T$ is the angle bisector of $\\angle B A C$, the line $r(A B)$ is parallel to $A C$. Since $O M \\perp A B$ and $O N \\perp A C$, this means that the line $r(O M)$ is parallel to the line $O N$ and passes through $O$, so $r(O M)=O N$. Finally, the circumcircle $\\gamma$ of the triangle $A M T$ is symmetric about $\\ell$, so $r(\\gamma)=\\gamma$. Thus the point $M$ maps to the common point of $O N$ with the arc $A M T$ of $\\gamma$ - that is, $r(M)=X$. Similarly, $r(N)=Y$. Thus, we get $r(M N)=X Y$, and the common point $K$ of $M N$ nd $X Y$ lies on $\\ell$. This means exactly that $K A=K T$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-40.jpg?height=748&width=707&top_left_y=981&top_left_x=709)", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G2", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $\\omega$ be the circumcircle of a triangle $A B C$. Denote by $M$ and $N$ the midpoints of the sides $A B$ and $A C$, respectively, and denote by $T$ the midpoint of the $\\operatorname{arc} B C$ of $\\omega$ not containing $A$. The circumcircles of the triangles $A M T$ and $A N T$ intersect the perpendicular bisectors of $A C$ and $A B$ at points $X$ and $Y$, respectively; assume that $X$ and $Y$ lie inside the triangle $A B C$. The lines $M N$ and $X Y$ intersect at $K$. Prove that $K A=K T$. (Iran)", "solution": "Let $L$ be the second common point of the line $A C$ with the circumcircle $\\gamma$ of the triangle $A M T$. From the cyclic quadrilaterals $A B T C$ and $A M T L$ we get $\\angle B T C=180^{\\circ}-$ $\\angle B A C=\\angle M T L$, which implies $\\angle B T M=\\angle C T L$. Since $A T$ is an angle bisector in these quadrilaterals, we have $B T=T C$ and $M T=T L$. Thus the triangles $B T M$ and $C T L$ are congruent, so $C L=B M=A M$. Let $X^{\\prime}$ be the common point of the line $N X$ with the external bisector of $\\angle B A C$; notice that it lies outside the triangle $A B C$. Then we have $\\angle T A X^{\\prime}=90^{\\circ}$ and $X^{\\prime} A=X^{\\prime} C$, so we get $\\angle X^{\\prime} A M=90^{\\circ}+\\angle B A C / 2=180^{\\circ}-\\angle X^{\\prime} A C=180^{\\circ}-\\angle X^{\\prime} C A=\\angle X^{\\prime} C L$. Thus the triangles $X^{\\prime} A M$ and $X^{\\prime} C L$ are congruent, and therefore $$ \\angle M X^{\\prime} L=\\angle A X^{\\prime} C+\\left(\\angle C X^{\\prime} L-\\angle A X^{\\prime} M\\right)=\\angle A X^{\\prime} C=180^{\\circ}-2 \\angle X^{\\prime} A C=\\angle B A C=\\angle M A L . $$ This means that $X^{\\prime}$ lies on $\\gamma$. Thus we have $\\angle T X N=\\angle T X X^{\\prime}=\\angle T A X^{\\prime}=90^{\\circ}$, so $T X \\| A C$. Then $\\angle X T A=\\angle T A C=$ $\\angle T A M$, so the cyclic quadrilateral MATX is an isosceles trapezoid. Similarly, $N A T Y$ is an isosceles trapezoid, so again the lines $M N$ and $X Y$ are the reflections of each other about the perpendicular bisector of $A T$. Thus $K$ belongs to this perpendicular bisector. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-41.jpg?height=797&width=1001&top_left_y=214&top_left_x=562) Comment. There are several different ways of showing that the points $X$ and $M$ are symmetrical with respect to $\\ell$. For instance, one can show that the quadrilaterals $A M O N$ and $T X O Y$ are congruent. We chose Solution 1 as a simple way of doing it. On the other hand, Solution 2 shows some other interesting properties of the configuration. Let us define $Y^{\\prime}$, analogously to $X^{\\prime}$, as the common point of $M Y$ and the external bisector of $\\angle B A C$. One may easily see that in general the lines $M N$ and $X^{\\prime} Y^{\\prime}$ (which is the external bisector of $\\angle B A C$ ) do not intersect on the perpendicular bisector of $A T$. Thus, any solution should involve some argument using the choice of the intersection points $X$ and $Y$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G3", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "In a triangle $A B C$, let $D$ and $E$ be the feet of the angle bisectors of angles $A$ and $B$, respectively. A rhombus is inscribed into the quadrilateral $A E D B$ (all vertices of the rhombus lie on different sides of $A E D B$ ). Let $\\varphi$ be the non-obtuse angle of the rhombus. Prove that $\\varphi \\leqslant \\max \\{\\angle B A C, \\angle A B C\\}$. (Serbia)", "solution": "Let $K, L, M$, and $N$ be the vertices of the rhombus lying on the sides $A E, E D, D B$, and $B A$, respectively. Denote by $d(X, Y Z)$ the distance from a point $X$ to a line $Y Z$. Since $D$ and $E$ are the feet of the bisectors, we have $d(D, A B)=d(D, A C), d(E, A B)=d(E, B C)$, and $d(D, B C)=d(E, A C)=0$, which implies $$ d(D, A C)+d(D, B C)=d(D, A B) \\quad \\text { and } \\quad d(E, A C)+d(E, B C)=d(E, A B) $$ Since $L$ lies on the segment $D E$ and the relation $d(X, A C)+d(X, B C)=d(X, A B)$ is linear in $X$ inside the triangle, these two relations imply $$ d(L, A C)+d(L, B C)=d(L, A B) . $$ Denote the angles as in the figure below, and denote $a=K L$. Then we have $d(L, A C)=a \\sin \\mu$ and $d(L, B C)=a \\sin \\nu$. Since $K L M N$ is a parallelogram lying on one side of $A B$, we get $$ d(L, A B)=d(L, A B)+d(N, A B)=d(K, A B)+d(M, A B)=a(\\sin \\delta+\\sin \\varepsilon) $$ Thus the condition (1) reads $$ \\sin \\mu+\\sin \\nu=\\sin \\delta+\\sin \\varepsilon $$ ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-42.jpg?height=593&width=653&top_left_y=1384&top_left_x=736) If one of the angles $\\alpha$ and $\\beta$ is non-acute, then the desired inequality is trivial. So we assume that $\\alpha, \\beta<\\pi / 2$. It suffices to show then that $\\psi=\\angle N K L \\leqslant \\max \\{\\alpha, \\beta\\}$. Assume, to the contrary, that $\\psi>\\max \\{\\alpha, \\beta\\}$. Since $\\mu+\\psi=\\angle C K N=\\alpha+\\delta$, by our assumption we obtain $\\mu=(\\alpha-\\psi)+\\delta<\\delta$. Similarly, $\\nu<\\varepsilon$. Next, since $K N \\| M L$, we have $\\beta=\\delta+\\nu$, so $\\delta<\\beta<\\pi / 2$. Similarly, $\\varepsilon<\\pi / 2$. Finally, by $\\mu<\\delta<\\pi / 2$ and $\\nu<\\varepsilon<\\pi / 2$, we obtain $$ \\sin \\mu<\\sin \\delta \\quad \\text { and } \\quad \\sin \\nu<\\sin \\varepsilon $$ This contradicts (2). Comment. One can see that the equality is achieved if $\\alpha=\\beta$ for every rhombus inscribed into the quadrilateral $A E D B$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G4", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C$ be a triangle with $\\angle B>\\angle C$. Let $P$ and $Q$ be two different points on line $A C$ such that $\\angle P B A=\\angle Q B A=\\angle A C B$ and $A$ is located between $P$ and $C$. Suppose that there exists an interior point $D$ of segment $B Q$ for which $P D=P B$. Let the ray $A D$ intersect the circle $A B C$ at $R \\neq A$. Prove that $Q B=Q R$. (Georgia)", "solution": "Denote by $\\omega$ the circumcircle of the triangle $A B C$, and let $\\angle A C B=\\gamma$. Note that the condition $\\gamma<\\angle C B A$ implies $\\gamma<90^{\\circ}$. Since $\\angle P B A=\\gamma$, the line $P B$ is tangent to $\\omega$, so $P A \\cdot P C=P B^{2}=P D^{2}$. By $\\frac{P A}{P D}=\\frac{P D}{P C}$ the triangles $P A D$ and $P D C$ are similar, and $\\angle A D P=\\angle D C P$. Next, since $\\angle A B Q=\\angle A C B$, the triangles $A B C$ and $A Q B$ are also similar. Then $\\angle A Q B=$ $\\angle A B C=\\angle A R C$, which means that the points $D, R, C$, and $Q$ are concyclic. Therefore $\\angle D R Q=$ $\\angle D C Q=\\angle A D P$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-43.jpg?height=594&width=959&top_left_y=923&top_left_x=583) Figure 1 Now from $\\angle A R B=\\angle A C B=\\gamma$ and $\\angle P D B=\\angle P B D=2 \\gamma$ we get $$ \\angle Q B R=\\angle A D B-\\angle A R B=\\angle A D P+\\angle P D B-\\angle A R B=\\angle D R Q+\\gamma=\\angle Q R B $$ so the triangle $Q R B$ is isosceles, which yields $Q B=Q R$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G4", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C$ be a triangle with $\\angle B>\\angle C$. Let $P$ and $Q$ be two different points on line $A C$ such that $\\angle P B A=\\angle Q B A=\\angle A C B$ and $A$ is located between $P$ and $C$. Suppose that there exists an interior point $D$ of segment $B Q$ for which $P D=P B$. Let the ray $A D$ intersect the circle $A B C$ at $R \\neq A$. Prove that $Q B=Q R$. (Georgia)", "solution": "Again, denote by $\\omega$ the circumcircle of the triangle $A B C$. Denote $\\angle A C B=\\gamma$. Since $\\angle P B A=\\gamma$, the line $P B$ is tangent to $\\omega$. Let $E$ be the second intersection point of $B Q$ with $\\omega$. If $V^{\\prime}$ is any point on the ray $C E$ beyond $E$, then $\\angle B E V^{\\prime}=180^{\\circ}-\\angle B E C=180^{\\circ}-\\angle B A C=\\angle P A B$; together with $\\angle A B Q=$ $\\angle P B A$ this shows firstly, that the rays $B A$ and $C E$ intersect at some point $V$, and secondly that the triangle $V E B$ is similar to the triangle $P A B$. Thus we have $\\angle B V E=\\angle B P A$. Next, $\\angle A E V=\\angle B E V-\\gamma=\\angle P A B-\\angle A B Q=\\angle A Q B$; so the triangles $P B Q$ and $V A E$ are also similar. Let $P H$ be an altitude in the isosceles triangle $P B D$; then $B H=H D$. Let $G$ be the intersection point of $P H$ and $A B$. By the symmetry with respect to $P H$, we have $\\angle B D G=\\angle D B G=\\gamma=$ $\\angle B E A$; thus $D G \\| A E$ and hence $\\frac{B G}{G A}=\\frac{B D}{D E}$. Thus the points $G$ and $D$ correspond to each other in the similar triangles $P A B$ and $V E B$, so $\\angle D V B=\\angle G P B=90^{\\circ}-\\angle P B Q=90^{\\circ}-\\angle V A E$. Thus $V D \\perp A E$. Let $T$ be the common point of $V D$ and $A E$, and let $D S$ be an altitude in the triangle $B D R$. The points $S$ and $T$ are the feet of corresponding altitudes in the similar triangles $A D E$ and $B D R$, so $\\frac{B S}{S R}=\\frac{A T}{T E}$. On the other hand, the points $T$ and $H$ are feet of corresponding altitudes in the similar triangles $V A E$ and $P B Q$, so $\\frac{A T}{T E}=\\frac{B H}{H Q}$. Thus $\\frac{B S}{S R}=\\frac{A T}{T E}=\\frac{B H}{H Q}$, and the triangles $B H S$ and $B Q R$ are similar. Finally, $S H$ is a median in the right-angled triangle $S B D$; so $B H=H S$, and hence $B Q=Q R$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-44.jpg?height=848&width=875&top_left_y=584&top_left_x=625) Figure 2", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G4", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C$ be a triangle with $\\angle B>\\angle C$. Let $P$ and $Q$ be two different points on line $A C$ such that $\\angle P B A=\\angle Q B A=\\angle A C B$ and $A$ is located between $P$ and $C$. Suppose that there exists an interior point $D$ of segment $B Q$ for which $P D=P B$. Let the ray $A D$ intersect the circle $A B C$ at $R \\neq A$. Prove that $Q B=Q R$. (Georgia)", "solution": "Denote by $\\omega$ and $O$ the circumcircle of the triangle $A B C$ and its center, respectively. From the condition $\\angle P B A=\\angle B C A$ we know that $B P$ is tangent to $\\omega$. Let $E$ be the second point of intersection of $\\omega$ and $B D$. Due to the isosceles triangle $B D P$, the tangent of $\\omega$ at $E$ is parallel to $D P$ and consequently it intersects $B P$ at some point $L$. Of course, $P D \\| L E$. Let $M$ be the midpoint of $B E$, and let $H$ be the midpoint of $B R$. Notice that $\\angle A E B=\\angle A C B=\\angle A B Q=\\angle A B E$, so $A$ lies on the perpendicular bisector of $B E$; thus the points $L, A, M$, and $O$ are collinear. Let $\\omega_{1}$ be the circle with diameter $B O$. Let $Q^{\\prime}=H O \\cap B E$; since $H O$ is the perpendicular bisector of $B R$, the statement of the problem is equivalent to $Q^{\\prime}=Q$. Consider the following sequence of projections (see Fig. 3). 1. Project the line $B E$ to the line $L B$ through the center $A$. (This maps $Q$ to $P$.) 2. Project the line $L B$ to $B E$ in parallel direction with $L E$. $(P \\mapsto D$.) 3. Project the line $B E$ to the circle $\\omega$ through its point $A .(D \\mapsto R$.) 4. Scale $\\omega$ by the ratio $\\frac{1}{2}$ from the point $B$ to the circle $\\omega_{1} .(R \\mapsto H$. 5. Project $\\omega_{1}$ to the line $B E$ through its point $O$. $\\left(H \\mapsto Q^{\\prime}\\right.$.) We prove that the composition of these transforms, which maps the line $B E$ to itself, is the identity. To achieve this, it suffices to show three fixed points. An obvious fixed point is $B$ which is fixed by all the transformations above. Another fixed point is $M$, its path being $M \\mapsto L \\mapsto$ $E \\mapsto E \\mapsto M \\mapsto M$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-45.jpg?height=800&width=786&top_left_y=218&top_left_x=279) Figure 3 ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-45.jpg?height=786&width=759&top_left_y=233&top_left_x=1125) Figure 4 In order to show a third fixed point, draw a line parallel with $L E$ through $A$; let that line intersect $B E, L B$ and $\\omega$ at $X, Y$ and $Z \\neq A$, respectively (see Fig. 4). We show that $X$ is a fixed point. The images of $X$ at the first three transformations are $X \\mapsto Y \\mapsto X \\mapsto Z$. From $\\angle X B Z=\\angle E A Z=\\angle A E L=\\angle L B A=\\angle B Z X$ we can see that the triangle $X B Z$ is isosceles. Let $U$ be the midpoint of $B Z$; then the last two transformations do $Z \\mapsto U \\mapsto X$, and the point $X$ is fixed. Comment. Verifying that the point $E$ is fixed seems more natural at first, but it appears to be less straightforward. Here we outline a possible proof. Let the images of $E$ at the first three transforms above be $F, G$ and $I$. After comparing the angles depicted in Fig. 5 (noticing that the quadrilateral $A F B G$ is cyclic) we can observe that the tangent $L E$ of $\\omega$ is parallel to $B I$. Then, similarly to the above reasons, the point $E$ is also fixed. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-45.jpg?height=789&width=751&top_left_y=1687&top_left_x=687) Figure 5", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G5", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C D E F$ be a convex hexagon with $A B=D E, B C=E F, C D=F A$, and $\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$. Prove that the diagonals $A D, B E$, and $C F$ are concurrent. (Ukraine)", "solution": "Let $x=A B=D E, y=C D=F A, z=E F=B C$. Consider the points $P, Q$, and $R$ such that the quadrilaterals $C D E P, E F A Q$, and $A B C R$ are parallelograms. We compute $$ \\begin{aligned} \\angle P E Q & =\\angle F E Q+\\angle D E P-\\angle E=\\left(180^{\\circ}-\\angle F\\right)+\\left(180^{\\circ}-\\angle D\\right)-\\angle E \\\\ & =360^{\\circ}-\\angle D-\\angle E-\\angle F=\\frac{1}{2}(\\angle A+\\angle B+\\angle C-\\angle D-\\angle E-\\angle F)=\\theta / 2 \\end{aligned} $$ Similarly, $\\angle Q A R=\\angle R C P=\\theta / 2$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-46.jpg?height=491&width=827&top_left_y=947&top_left_x=649) If $\\theta=0$, since $\\triangle R C P$ is isosceles, $R=P$. Therefore $A B\\|R C=P C\\| E D$, so $A B D E$ is a parallelogram. Similarly, $B C E F$ and $C D F A$ are parallelograms. It follows that $A D, B E$ and $C F$ meet at their common midpoint. Now assume $\\theta>0$. Since $\\triangle P E Q, \\triangle Q A R$, and $\\triangle R C P$ are isosceles and have the same angle at the apex, we have $\\triangle P E Q \\sim \\triangle Q A R \\sim \\triangle R C P$ with ratios of similarity $y: z: x$. Thus $\\triangle P Q R$ is similar to the triangle with sidelengths $y, z$, and $x$. Next, notice that $$ \\frac{R Q}{Q P}=\\frac{z}{y}=\\frac{R A}{A F} $$ and, using directed angles between rays, $$ \\begin{aligned} \\not(R Q, Q P) & =\\Varangle(R Q, Q E)+\\Varangle(Q E, Q P) \\\\ & =\\Varangle(R Q, Q E)+\\Varangle(R A, R Q)=\\Varangle(R A, Q E)=\\Varangle(R A, A F) . \\end{aligned} $$ Thus $\\triangle P Q R \\sim \\triangle F A R$. Since $F A=y$ and $A R=z$, (1) then implies that $F R=x$. Similarly $F P=x$. Therefore $C R F P$ is a rhombus. We conclude that $C F$ is the perpendicular bisector of $P R$. Similarly, $B E$ is the perpendicular bisector of $P Q$ and $A D$ is the perpendicular bisector of $Q R$. It follows that $A D, B E$, and $C F$ are concurrent at the circumcenter of $P Q R$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G5", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C D E F$ be a convex hexagon with $A B=D E, B C=E F, C D=F A$, and $\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$. Prove that the diagonals $A D, B E$, and $C F$ are concurrent. (Ukraine)", "solution": "Let $X=C D \\cap E F, Y=E F \\cap A B, Z=A B \\cap C D, X^{\\prime}=F A \\cap B C, Y^{\\prime}=$ $B C \\cap D E$, and $Z^{\\prime}=D E \\cap F A$. From $\\angle A+\\angle B+\\angle C=360^{\\circ}+\\theta / 2$ we get $\\angle A+\\angle B>180^{\\circ}$ and $\\angle B+\\angle C>180^{\\circ}$, so $Z$ and $X^{\\prime}$ are respectively on the opposite sides of $B C$ and $A B$ from the hexagon. Similar conclusions hold for $X, Y, Y^{\\prime}$, and $Z^{\\prime}$. Then $$ \\angle Y Z X=\\angle B+\\angle C-180^{\\circ}=\\angle E+\\angle F-180^{\\circ}=\\angle Y^{\\prime} Z^{\\prime} X^{\\prime}, $$ and similarly $\\angle Z X Y=\\angle Z^{\\prime} X^{\\prime} Y^{\\prime}$ and $\\angle X Y Z=\\angle X^{\\prime} Y^{\\prime} Z^{\\prime}$, so $\\triangle X Y Z \\sim \\triangle X^{\\prime} Y^{\\prime} Z^{\\prime}$. Thus there is a rotation $R$ which sends $\\triangle X Y Z$ to a triangle with sides parallel to $\\triangle X^{\\prime} Y^{\\prime} Z^{\\prime}$. Since $A B=D E$ we have $R(\\overrightarrow{A B})=\\overrightarrow{D E}$. Similarly, $R(\\overrightarrow{C D})=\\overrightarrow{F A}$ and $R(\\overrightarrow{E F})=\\overrightarrow{B C}$. Therefore $$ \\overrightarrow{0}=\\overrightarrow{A B}+\\overrightarrow{B C}+\\overrightarrow{C D}+\\overrightarrow{D E}+\\overrightarrow{E F}+\\overrightarrow{F A}=(\\overrightarrow{A B}+\\overrightarrow{C D}+\\overrightarrow{E F})+R(\\overrightarrow{A B}+\\overrightarrow{C D}+\\overrightarrow{E F}) $$ If $R$ is a rotation by $180^{\\circ}$, then any two opposite sides of our hexagon are equal and parallel, so the three diagonals meet at their common midpoint. Otherwise, we must have $$ \\overrightarrow{A B}+\\overrightarrow{C D}+\\overrightarrow{E F}=\\overrightarrow{0} $$ or else we would have two vectors with different directions whose sum is $\\overrightarrow{0}$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-47.jpg?height=689&width=1333&top_left_y=1057&top_left_x=388) This allows us to consider a triangle $L M N$ with $\\overrightarrow{L M}=\\overrightarrow{E F}, \\overrightarrow{M N}=\\overrightarrow{A B}$, and $\\overrightarrow{N L}=\\overrightarrow{C D}$. Let $O$ be the circumcenter of $\\triangle L M N$ and consider the points $O_{1}, O_{2}, O_{3}$ such that $\\triangle A O_{1} B, \\triangle C O_{2} D$, and $\\triangle E O_{3} F$ are translations of $\\triangle M O N, \\triangle N O L$, and $\\triangle L O M$, respectively. Since $F O_{3}$ and $A O_{1}$ are translations of $M O$, quadrilateral $A F O_{3} O_{1}$ is a parallelogram and $O_{3} O_{1}=F A=C D=N L$. Similarly, $O_{1} O_{2}=L M$ and $O_{2} O_{3}=M N$. Therefore $\\triangle O_{1} O_{2} O_{3} \\cong \\triangle L M N$. Moreover, by means of the rotation $R$ one may check that these triangles have the same orientation. Let $T$ be the circumcenter of $\\triangle O_{1} O_{2} O_{3}$. We claim that $A D, B E$, and $C F$ meet at $T$. Let us show that $C, T$, and $F$ are collinear. Notice that $C O_{2}=O_{2} T=T O_{3}=O_{3} F$ since they are all equal to the circumradius of $\\triangle L M N$. Therefore $\\triangle T O_{3} F$ and $\\triangle C O_{2} T$ are isosceles. Using directed angles between rays again, we get $$ \\Varangle\\left(T F, T O_{3}\\right)=\\Varangle\\left(F O_{3}, F T\\right) \\quad \\text { and } \\quad \\Varangle\\left(T O_{2}, T C\\right)=\\Varangle\\left(C T, C O_{2}\\right) \\text {. } $$ Also, $T$ and $O$ are the circumcenters of the congruent triangles $\\triangle O_{1} O_{2} O_{3}$ and $\\triangle L M N$ so we have $\\Varangle\\left(T O_{3}, T O_{2}\\right)=\\Varangle(O N, O M)$. Since $C_{2}$ and $F O_{3}$ are translations of $N O$ and $M O$ respectively, this implies $$ \\Varangle\\left(T O_{3}, T O_{2}\\right)=\\Varangle\\left(C O_{2}, F O_{3}\\right) . $$ Adding the three equations in (2) and (3) gives $$ \\Varangle(T F, T C)=\\Varangle(C T, F T)=-\\not(T F, T C) $$ which implies that $T$ is on $C F$. Analogous arguments show that it is on $A D$ and $B E$ also. The desired result follows.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G5", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C D E F$ be a convex hexagon with $A B=D E, B C=E F, C D=F A$, and $\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$. Prove that the diagonals $A D, B E$, and $C F$ are concurrent. (Ukraine)", "solution": "Place the hexagon on the complex plane, with $A$ at the origin and vertices labelled clockwise. Now $A, B, C, D, E, F$ represent the corresponding complex numbers. Also consider the complex numbers $a, b, c, a^{\\prime}, b^{\\prime}, c^{\\prime}$ given by $B-A=a, D-C=b, F-E=c, E-D=a^{\\prime}$, $A-F=b^{\\prime}$, and $C-B=c^{\\prime}$. Let $k=|a| /|b|$. From $a / b^{\\prime}=-k e^{i \\angle A}$ and $a^{\\prime} / b=-k e^{i \\angle D}$ we get that $\\left(a^{\\prime} / a\\right)\\left(b^{\\prime} / b\\right)=e^{-i \\theta}$ and similarly $\\left(b^{\\prime} / b\\right)\\left(c^{\\prime} / c\\right)=e^{-i \\theta}$ and $\\left(c^{\\prime} / c\\right)\\left(a^{\\prime} / a\\right)=e^{-i \\theta}$. It follows that $a^{\\prime}=a r$, $b^{\\prime}=b r$, and $c^{\\prime}=c r$ for a complex number $r$ with $|r|=1$, as shown below. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-48.jpg?height=512&width=1052&top_left_y=823&top_left_x=534) We have $$ 0=a+c r+b+a r+c+b r=(a+b+c)(1+r) . $$ If $r=-1$, then the hexagon is centrally symmetric and its diagonals intersect at its center of symmetry. Otherwise $$ a+b+c=0 \\text {. } $$ Therefore $$ A=0, \\quad B=a, \\quad C=a+c r, \\quad D=c(r-1), \\quad E=-b r-c, \\quad F=-b r . $$ Now consider a point $W$ on $A D$ given by the complex number $c(r-1) \\lambda$, where $\\lambda$ is a real number with $0<\\lambda<1$. Since $D \\neq A$, we have $r \\neq 1$, so we can define $s=1 /(r-1)$. From $r \\bar{r}=|r|^{2}=1$ we get $$ 1+s=\\frac{r}{r-1}=\\frac{r}{r-r \\bar{r}}=\\frac{1}{1-\\bar{r}}=-\\bar{s} . $$ Now, $$ \\begin{aligned} W \\text { is on } B E & \\Longleftrightarrow c(r-1) \\lambda-a\\|a-(-b r-c)=b(r-1) \\Longleftrightarrow c \\lambda-a s\\| b \\\\ & \\Longleftrightarrow-a \\lambda-b \\lambda-a s\\|b \\Longleftrightarrow a(\\lambda+s)\\| b . \\end{aligned} $$ One easily checks that $r \\neq \\pm 1$ implies that $\\lambda+s \\neq 0$ since $s$ is not real. On the other hand, $$ \\begin{aligned} W \\text { on } C F & \\Longleftrightarrow c(r-1) \\lambda+b r\\|-b r-(a+c r)=a(r-1) \\Longleftrightarrow c \\lambda+b(1+s)\\| a \\\\ & \\Longleftrightarrow-a \\lambda-b \\lambda-b \\bar{s}\\|a \\Longleftrightarrow b(\\lambda+\\bar{s})\\| a \\Longleftrightarrow b \\| a(\\lambda+s), \\end{aligned} $$ where in the last step we use that $(\\lambda+s)(\\lambda+\\bar{s})=|\\lambda+s|^{2} \\in \\mathbb{R}_{>0}$. We conclude that $A D \\cap B E=$ $C F \\cap B E$, and the desired result follows.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G6", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let the excircle of the triangle $A B C$ lying opposite to $A$ touch its side $B C$ at the point $A_{1}$. Define the points $B_{1}$ and $C_{1}$ analogously. Suppose that the circumcentre of the triangle $A_{1} B_{1} C_{1}$ lies on the circumcircle of the triangle $A B C$. Prove that the triangle $A B C$ is right-angled. (Russia)", "solution": "Denote the circumcircles of the triangles $A B C$ and $A_{1} B_{1} C_{1}$ by $\\Omega$ and $\\Gamma$, respectively. Denote the midpoint of the arc $C B$ of $\\Omega$ containing $A$ by $A_{0}$, and define $B_{0}$ as well as $C_{0}$ analogously. By our hypothesis the centre $Q$ of $\\Gamma$ lies on $\\Omega$. Lemma. One has $A_{0} B_{1}=A_{0} C_{1}$. Moreover, the points $A, A_{0}, B_{1}$, and $C_{1}$ are concyclic. Finally, the points $A$ and $A_{0}$ lie on the same side of $B_{1} C_{1}$. Similar statements hold for $B$ and $C$. Proof. Let us consider the case $A=A_{0}$ first. Then the triangle $A B C$ is isosceles at $A$, which implies $A B_{1}=A C_{1}$ while the remaining assertions of the Lemma are obvious. So let us suppose $A \\neq A_{0}$ from now on. By the definition of $A_{0}$, we have $A_{0} B=A_{0} C$. It is also well known and easy to show that $B C_{1}=$ $C B_{1}$. Next, we have $\\angle C_{1} B A_{0}=\\angle A B A_{0}=\\angle A C A_{0}=\\angle B_{1} C A_{0}$. Hence the triangles $A_{0} B C_{1}$ and $A_{0} C B_{1}$ are congruent. This implies $A_{0} C_{1}=A_{0} B_{1}$, establishing the first part of the Lemma. It also follows that $\\angle A_{0} C_{1} A=\\angle A_{0} B_{1} A$, as these are exterior angles at the corresponding vertices $C_{1}$ and $B_{1}$ of the congruent triangles $A_{0} B C_{1}$ and $A_{0} C B_{1}$. For that reason the points $A, A_{0}, B_{1}$, and $C_{1}$ are indeed the vertices of some cyclic quadrilateral two opposite sides of which are $A A_{0}$ and $B_{1} C_{1}$. Now we turn to the solution. Evidently the points $A_{1}, B_{1}$, and $C_{1}$ lie interior to some semicircle arc of $\\Gamma$, so the triangle $A_{1} B_{1} C_{1}$ is obtuse-angled. Without loss of generality, we will assume that its angle at $B_{1}$ is obtuse. Thus $Q$ and $B_{1}$ lie on different sides of $A_{1} C_{1}$; obviously, the same holds for the points $B$ and $B_{1}$. So, the points $Q$ and $B$ are on the same side of $A_{1} C_{1}$. Notice that the perpendicular bisector of $A_{1} C_{1}$ intersects $\\Omega$ at two points lying on different sides of $A_{1} C_{1}$. By the first statement from the Lemma, both points $B_{0}$ and $Q$ are among these points of intersection; since they share the same side of $A_{1} C_{1}$, they coincide (see Figure 1). ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-49.jpg?height=781&width=827&top_left_y=1667&top_left_x=649) Figure 1 Now, by the first part of the Lemma again, the lines $Q A_{0}$ and $Q C_{0}$ are the perpendicular bisectors of $B_{1} C_{1}$ and $A_{1} B_{1}$, respectively. Thus $$ \\angle C_{1} B_{0} A_{1}=\\angle C_{1} B_{0} B_{1}+\\angle B_{1} B_{0} A_{1}=2 \\angle A_{0} B_{0} B_{1}+2 \\angle B_{1} B_{0} C_{0}=2 \\angle A_{0} B_{0} C_{0}=180^{\\circ}-\\angle A B C $$ recalling that $A_{0}$ and $C_{0}$ are the midpoints of the arcs $C B$ and $B A$, respectively. On the other hand, by the second part of the Lemma we have $$ \\angle C_{1} B_{0} A_{1}=\\angle C_{1} B A_{1}=\\angle A B C . $$ From the last two equalities, we get $\\angle A B C=90^{\\circ}$, whereby the problem is solved.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G6", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let the excircle of the triangle $A B C$ lying opposite to $A$ touch its side $B C$ at the point $A_{1}$. Define the points $B_{1}$ and $C_{1}$ analogously. Suppose that the circumcentre of the triangle $A_{1} B_{1} C_{1}$ lies on the circumcircle of the triangle $A B C$. Prove that the triangle $A B C$ is right-angled. (Russia)", "solution": "Let $Q$ again denote the centre of the circumcircle of the triangle $A_{1} B_{1} C_{1}$, that lies on the circumcircle $\\Omega$ of the triangle $A B C$. We first consider the case where $Q$ coincides with one of the vertices of $A B C$, say $Q=B$. Then $B C_{1}=B A_{1}$ and consequently the triangle $A B C$ is isosceles at $B$. Moreover we have $B C_{1}=B_{1} C$ in any triangle, and hence $B B_{1}=B C_{1}=B_{1} C$; similarly, $B B_{1}=B_{1} A$. It follows that $B_{1}$ is the centre of $\\Omega$ and that the triangle $A B C$ has a right angle at $B$. So from now on we may suppose $Q \\notin\\{A, B, C\\}$. We start with the following well known fact. Lemma. Let $X Y Z$ and $X^{\\prime} Y^{\\prime} Z^{\\prime}$ be two triangles with $X Y=X^{\\prime} Y^{\\prime}$ and $Y Z=Y^{\\prime} Z^{\\prime}$. (i) If $X Z \\neq X^{\\prime} Z^{\\prime}$ and $\\angle Y Z X=\\angle Y^{\\prime} Z^{\\prime} X^{\\prime}$, then $\\angle Z X Y+\\angle Z^{\\prime} X^{\\prime} Y^{\\prime}=180^{\\circ}$. (ii) If $\\angle Y Z X+\\angle X^{\\prime} Z^{\\prime} Y^{\\prime}=180^{\\circ}$, then $\\angle Z X Y=\\angle Y^{\\prime} X^{\\prime} Z^{\\prime}$. Proof. For both parts, we may move the triangle $X Y Z$ through the plane until $Y=Y^{\\prime}$ and $Z=Z^{\\prime}$. Possibly after reflecting one of the two triangles about $Y Z$, we may also suppose that $X$ and $X^{\\prime}$ lie on the same side of $Y Z$ if we are in case (i) and on different sides if we are in case (ii). In both cases, the points $X, Z$, and $X^{\\prime}$ are collinear due to the angle condition (see Fig. 2). Moreover we have $X \\neq X^{\\prime}$, because in case (i) we assumed $X Z \\neq X^{\\prime} Z^{\\prime}$ and in case (ii) these points even lie on different sides of $Y Z$. Thus the triangle $X X^{\\prime} Y$ is isosceles at $Y$. The claim now follows by considering the equal angles at its base. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-50.jpg?height=304&width=460&top_left_y=1732&top_left_x=518) Figure 2(i) ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-50.jpg?height=304&width=464&top_left_y=1732&top_left_x=1123) Figure 2(ii) Relabeling the vertices of the triangle $A B C$ if necessary we may suppose that $Q$ lies in the interior of the arc $A B$ of $\\Omega$ not containing $C$. We will sometimes use tacitly that the six triangles $Q B A_{1}, Q A_{1} C, Q C B_{1}, Q B_{1} A, Q C_{1} A$, and $Q B C_{1}$ have the same orientation. As $Q$ cannot be the circumcentre of the triangle $A B C$, it is impossible that $Q A=Q B=Q C$ and thus we may also suppose that $Q C \\neq Q B$. Now the above Lemma $(i)$ is applicable to the triangles $Q B_{1} C$ and $Q C_{1} B$, since $Q B_{1}=Q C_{1}$ and $B_{1} C=C_{1} B$, while $\\angle B_{1} C Q=\\angle C_{1} B Q$ holds as both angles appear over the same side of the chord $Q A$ in $\\Omega$ (see Fig. 3). So we get $$ \\angle C Q B_{1}+\\angle B Q C_{1}=180^{\\circ} . $$ We claim that $Q C=Q A$. To see this, let us assume for the sake of a contradiction that $Q C \\neq Q A$. Then arguing similarly as before but now with the triangles $Q A_{1} C$ and $Q C_{1} A$ we get $$ \\angle A_{1} Q C+\\angle C_{1} Q A=180^{\\circ} \\text {. } $$ Adding this equation to (1), we get $\\angle A_{1} Q B_{1}+\\angle B Q A=360^{\\circ}$, which is absurd as both summands lie in the interval $\\left(0^{\\circ}, 180^{\\circ}\\right)$. This proves $Q C=Q A$; so the triangles $Q A_{1} C$ and $Q C_{1} A$ are congruent their sides being equal, which in turn yields $$ \\angle A_{1} Q C=\\angle C_{1} Q A \\text {. } $$ Finally our Lemma (ii) is applicable to the triangles $Q A_{1} B$ and $Q B_{1} A$. Indeed we have $Q A_{1}=Q B_{1}$ and $A_{1} B=B_{1} A$ as usual, and the angle condition $\\angle A_{1} B Q+\\angle Q A B_{1}=180^{\\circ}$ holds as $A$ and $B$ lie on different sides of the chord $Q C$ in $\\Omega$. Consequently we have $$ \\angle B Q A_{1}=\\angle B_{1} Q A \\text {. } $$ From (1) and (3) we get $$ \\left(\\angle B_{1} Q C+\\angle B_{1} Q A\\right)+\\left(\\angle C_{1} Q B-\\angle B Q A_{1}\\right)=180^{\\circ} \\text {, } $$ i.e. $\\angle C Q A+\\angle A_{1} Q C_{1}=180^{\\circ}$. In light of (2) this may be rewritten as $2 \\angle C Q A=180^{\\circ}$ and as $Q$ lies on $\\Omega$ this implies that the triangle $A B C$ has a right angle at $B$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-51.jpg?height=569&width=908&top_left_y=1404&top_left_x=606) Figure 3 Comment 1. One may also check that $Q$ is in the interior of $\\Omega$ if and only if the triangle $A B C$ is acute-angled. Comment 2. The original proposal asked to prove the converse statement as well: if the triangle $A B C$ is right-angled, then the point $Q$ lies on its circumcircle. The Problem Selection Committee thinks that the above simplified version is more suitable for the competition.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N1", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Let $\\mathbb{Z}_{>0}$ be the set of positive integers. Find all functions $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ such that $$ m^{2}+f(n) \\mid m f(m)+n $$ for all positive integers $m$ and $n$. (Malaysia)", "solution": "Setting $m=n=2$ tells us that $4+f(2) \\mid 2 f(2)+2$. Since $2 f(2)+2<2(4+f(2))$, we must have $2 f(2)+2=4+f(2)$, so $f(2)=2$. Plugging in $m=2$ then tells us that $4+f(n) \\mid 4+n$, which implies that $f(n) \\leqslant n$ for all $n$. Setting $m=n$ gives $n^{2}+f(n) \\mid n f(n)+n$, so $n f(n)+n \\geqslant n^{2}+f(n)$ which we rewrite as $(n-1)(f(n)-n) \\geqslant 0$. Therefore $f(n) \\geqslant n$ for all $n \\geqslant 2$. This is trivially true for $n=1$ also. It follows that $f(n)=n$ for all $n$. This function obviously satisfies the desired property.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N1", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Let $\\mathbb{Z}_{>0}$ be the set of positive integers. Find all functions $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ such that $$ m^{2}+f(n) \\mid m f(m)+n $$ for all positive integers $m$ and $n$. (Malaysia)", "solution": "Setting $m=f(n)$ we get $f(n)(f(n)+1) \\mid f(n) f(f(n))+n$. This implies that $f(n) \\mid n$ for all $n$. Now let $m$ be any positive integer, and let $p>2 m^{2}$ be a prime number. Note that $p>m f(m)$ also. Plugging in $n=p-m f(m)$ we learn that $m^{2}+f(n)$ divides $p$. Since $m^{2}+f(n)$ cannot equal 1, it must equal $p$. Therefore $p-m^{2}=f(n) \\mid n=p-m f(m)$. But $p-m f(m)0}$ be the set of positive integers. Find all functions $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ such that $$ m^{2}+f(n) \\mid m f(m)+n $$ for all positive integers $m$ and $n$. (Malaysia)", "solution": "Plugging $m=1$ we obtain $1+f(n) \\leqslant f(1)+n$, so $f(n) \\leqslant n+c$ for the constant $c=$ $f(1)-1$. Assume that $f(n) \\neq n$ for some fixed $n$. When $m$ is large enough (e.g. $m \\geqslant \\max (n, c+1)$ ) we have $$ m f(m)+n \\leqslant m(m+c)+n \\leqslant 2 m^{2}<2\\left(m^{2}+f(n)\\right), $$ so we must have $m f(m)+n=m^{2}+f(n)$. This implies that $$ 0 \\neq f(n)-n=m(f(m)-m) $$ which is impossible for $m>|f(n)-n|$. It follows that $f$ is the identity function.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N2", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Prove that for any pair of positive integers $k$ and $n$ there exist $k$ positive integers $m_{1}, m_{2}, \\ldots, m_{k}$ such that $$ 1+\\frac{2^{k}-1}{n}=\\left(1+\\frac{1}{m_{1}}\\right)\\left(1+\\frac{1}{m_{2}}\\right) \\cdots\\left(1+\\frac{1}{m_{k}}\\right) . $$ (Japan)", "solution": "We proceed by induction on $k$. For $k=1$ the statement is trivial. Assuming we have proved it for $k=j-1$, we now prove it for $k=j$. Case 1. $n=2 t-1$ for some positive integer $t$. Observe that $$ 1+\\frac{2^{j}-1}{2 t-1}=\\frac{2\\left(t+2^{j-1}-1\\right)}{2 t} \\cdot \\frac{2 t}{2 t-1}=\\left(1+\\frac{2^{j-1}-1}{t}\\right)\\left(1+\\frac{1}{2 t-1}\\right) . $$ By the induction hypothesis we can find $m_{1}, \\ldots, m_{j-1}$ such that $$ 1+\\frac{2^{j-1}-1}{t}=\\left(1+\\frac{1}{m_{1}}\\right)\\left(1+\\frac{1}{m_{2}}\\right) \\cdots\\left(1+\\frac{1}{m_{j-1}}\\right) $$ so setting $m_{j}=2 t-1$ gives the desired expression. Case 2. $n=2 t$ for some positive integer $t$. Now we have $$ 1+\\frac{2^{j}-1}{2 t}=\\frac{2 t+2^{j}-1}{2 t+2^{j}-2} \\cdot \\frac{2 t+2^{j}-2}{2 t}=\\left(1+\\frac{1}{2 t+2^{j}-2}\\right)\\left(1+\\frac{2^{j-1}-1}{t}\\right) $$ noting that $2 t+2^{j}-2>0$. Again, we use that $$ 1+\\frac{2^{j-1}-1}{t}=\\left(1+\\frac{1}{m_{1}}\\right)\\left(1+\\frac{1}{m_{2}}\\right) \\cdots\\left(1+\\frac{1}{m_{j-1}}\\right) . $$ Setting $m_{j}=2 t+2^{j}-2$ then gives the desired expression.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N2", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Prove that for any pair of positive integers $k$ and $n$ there exist $k$ positive integers $m_{1}, m_{2}, \\ldots, m_{k}$ such that $$ 1+\\frac{2^{k}-1}{n}=\\left(1+\\frac{1}{m_{1}}\\right)\\left(1+\\frac{1}{m_{2}}\\right) \\cdots\\left(1+\\frac{1}{m_{k}}\\right) . $$ (Japan)", "solution": "Consider the base 2 expansions of the residues of $n-1$ and $-n$ modulo $2^{k}$ : $$ \\begin{aligned} n-1 & \\equiv 2^{a_{1}}+2^{a_{2}}+\\cdots+2^{a_{r}}\\left(\\bmod 2^{k}\\right) & & \\text { where } 0 \\leqslant a_{1}q_{n-1} \\text { and } q_{n}>q_{n+1}\\right\\} $$ is infinite, since for each $n \\in S$ one has $$ p_{n}=\\max \\left\\{q_{n}, q_{n-1}\\right\\}=q_{n}=\\max \\left\\{q_{n}, q_{n+1}\\right\\}=p_{n+1} . $$ Suppose on the contrary that $S$ is finite. Since $q_{2}=7<13=q_{3}$ and $q_{3}=13>7=q_{4}$, the set $S$ is non-empty. Since it is finite, we can consider its largest element, say $m$. Note that it is impossible that $q_{m}>q_{m+1}>q_{m+2}>\\ldots$ because all these numbers are positive integers, so there exists a $k \\geqslant m$ such that $q_{k}q_{\\ell+1}$. By the minimality of $\\ell$ we have $q_{\\ell-1}k \\geqslant m$, this contradicts the maximality of $m$, and hence $S$ is indeed infinite. Comment. Once the factorization of $n^{4}+n^{2}+1$ is found and the set $S$ is introduced, the problem is mainly about ruling out the case that $$ q_{k}0}$. In the above solution, this is done by observing $q_{(k+1)^{2}}=\\max \\left(q_{k}, q_{k+1}\\right)$. Alternatively one may notice that (1) implies that $q_{j+2}-q_{j} \\geqslant 6$ for $j \\geqslant k+1$, since every prime greater than 3 is congruent to -1 or 1 modulo 6 . Then there is some integer $C \\geqslant 0$ such that $q_{n} \\geqslant 3 n-C$ for all $n \\geqslant k$. Now let the integer $t$ be sufficiently large (e.g. $t=\\max \\{k+1, C+3\\}$ ) and set $p=q_{t-1} \\geqslant 2 t$. Then $p \\mid(t-1)^{2}+(t-1)+1$ implies that $p \\mid(p-t)^{2}+(p-t)+1$, so $p$ and $q_{p-t}$ are prime divisors of $(p-t)^{2}+(p-t)+1$. But $p-t>t-1 \\geqslant k$, so $q_{p-t}>q_{t-1}=p$ and $p \\cdot q_{p-t}>p^{2}>(p-t)^{2}+(p-t)+1$, a contradiction.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N4", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine whether there exists an infinite sequence of nonzero digits $a_{1}, a_{2}, a_{3}, \\ldots$ and a positive integer $N$ such that for every integer $k>N$, the number $\\overline{a_{k} a_{k-1} \\ldots a_{1}}$ is a perfect square. (Iran)", "solution": "Assume that $a_{1}, a_{2}, a_{3}, \\ldots$ is such a sequence. For each positive integer $k$, let $y_{k}=$ $\\overline{a_{k} a_{k-1} \\ldots a_{1}}$. By the assumption, for each $k>N$ there exists a positive integer $x_{k}$ such that $y_{k}=x_{k}^{2}$. I. For every $n$, let $5^{\\gamma_{n}}$ be the greatest power of 5 dividing $x_{n}$. Let us show first that $2 \\gamma_{n} \\geqslant n$ for every positive integer $n>N$. Assume, to the contrary, that there exists a positive integer $n>N$ such that $2 \\gamma_{n}N$. II. Consider now any integer $k>\\max \\{N / 2,2\\}$. Since $2 \\gamma_{2 k+1} \\geqslant 2 k+1$ and $2 \\gamma_{2 k+2} \\geqslant 2 k+2$, we have $\\gamma_{2 k+1} \\geqslant k+1$ and $\\gamma_{2 k+2} \\geqslant k+1$. So, from $y_{2 k+2}=a_{2 k+2} \\cdot 10^{2 k+1}+y_{2 k+1}$ we obtain $5^{2 k+2} \\mid y_{2 k+2}-y_{2 k+1}=a_{2 k+2} \\cdot 10^{2 k+1}$ and thus $5 \\mid a_{2 k+2}$, which implies $a_{2 k+2}=5$. Therefore, $$ \\left(x_{2 k+2}-x_{2 k+1}\\right)\\left(x_{2 k+2}+x_{2 k+1}\\right)=x_{2 k+2}^{2}-x_{2 k+1}^{2}=y_{2 k+2}-y_{2 k+1}=5 \\cdot 10^{2 k+1}=2^{2 k+1} \\cdot 5^{2 k+2} . $$ Setting $A_{k}=x_{2 k+2} / 5^{k+1}$ and $B_{k}=x_{2 k+1} / 5^{k+1}$, which are integers, we obtain $$ \\left(A_{k}-B_{k}\\right)\\left(A_{k}+B_{k}\\right)=2^{2 k+1} . $$ Both $A_{k}$ and $B_{k}$ are odd, since otherwise $y_{2 k+2}$ or $y_{2 k+1}$ would be a multiple of 10 which is false by $a_{1} \\neq 0$; so one of the numbers $A_{k}-B_{k}$ and $A_{k}+B_{k}$ is not divisible by 4 . Therefore (1) yields $A_{k}-B_{k}=2$ and $A_{k}+B_{k}=2^{2 k}$, hence $A_{k}=2^{2 k-1}+1$ and thus $$ x_{2 k+2}=5^{k+1} A_{k}=10^{k+1} \\cdot 2^{k-2}+5^{k+1}>10^{k+1}, $$ since $k \\geqslant 2$. This implies that $y_{2 k+2}>10^{2 k+2}$ which contradicts the fact that $y_{2 k+2}$ contains $2 k+2$ digits. The desired result follows.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N4", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine whether there exists an infinite sequence of nonzero digits $a_{1}, a_{2}, a_{3}, \\ldots$ and a positive integer $N$ such that for every integer $k>N$, the number $\\overline{a_{k} a_{k-1} \\ldots a_{1}}$ is a perfect square. (Iran)", "solution": "Again, we assume that a sequence $a_{1}, a_{2}, a_{3}, \\ldots$ satisfies the problem conditions, introduce the numbers $x_{k}$ and $y_{k}$ as in the previous solution, and notice that $$ y_{k+1}-y_{k}=\\left(x_{k+1}-x_{k}\\right)\\left(x_{k+1}+x_{k}\\right)=10^{k} a_{k+1} $$ for all $k>N$. Consider any such $k$. Since $a_{1} \\neq 0$, the numbers $x_{k}$ and $x_{k+1}$ are not multiples of 10 , and therefore the numbers $p_{k}=x_{k+1}-x_{k}$ and $q_{k}=x_{k+1}+x_{k}$ cannot be simultaneously multiples of 20 , and hence one of them is not divisible either by 4 or by 5 . In view of (2), this means that the other one is divisible by either $5^{k}$ or by $2^{k-1}$. Notice also that $p_{k}$ and $q_{k}$ have the same parity, so both are even. On the other hand, we have $x_{k+1}^{2}=x_{k}^{2}+10^{k} a_{k+1} \\geqslant x_{k}^{2}+10^{k}>2 x_{k}^{2}$, so $x_{k+1} / x_{k}>\\sqrt{2}$, which implies that $$ 1<\\frac{q_{k}}{p_{k}}=1+\\frac{2}{x_{k+1} / x_{k}-1}<1+\\frac{2}{\\sqrt{2}-1}<6 . $$ Thus, if one of the numbers $p_{k}$ and $q_{k}$ is divisible by $5^{k}$, then we have $$ 10^{k+1}>10^{k} a_{k+1}=p_{k} q_{k} \\geqslant \\frac{\\left(5^{k}\\right)^{2}}{6} $$ and hence $(5 / 2)^{k}<60$ which is false for sufficiently large $k$. So, assuming that $k$ is large, we get that $2^{k-1}$ divides one of the numbers $p_{k}$ and $q_{k}$. Hence $$ \\left\\{p_{k}, q_{k}\\right\\}=\\left\\{2^{k-1} \\cdot 5^{r_{k}} b_{k}, 2 \\cdot 5^{k-r_{k}} c_{k}\\right\\} \\quad \\text { with nonnegative integers } b_{k}, c_{k}, r_{k} \\text { such that } b_{k} c_{k}=a_{k+1} \\text {. } $$ Moreover, from (3) we get $$ 6>\\frac{2^{k-1} \\cdot 5^{r_{k}} b_{k}}{2 \\cdot 5^{k-r_{k}} c_{k}} \\geqslant \\frac{1}{36} \\cdot\\left(\\frac{2}{5}\\right)^{k} \\cdot 5^{2 r_{k}} \\quad \\text { and } \\quad 6>\\frac{2 \\cdot 5^{k-r_{k}} c_{k}}{2^{k-1} \\cdot 5^{r_{k}} b_{k}} \\geqslant \\frac{4}{9} \\cdot\\left(\\frac{5}{2}\\right)^{k} \\cdot 5^{-2 r_{k}} $$ SO $$ \\alpha k+c_{1}c_{1} \\text {. } $$ Consequently, for $C=c_{2}-c_{1}+1-\\alpha>0$ we have $$ (k+1)-r_{k+1} \\leqslant k-r_{k}+C . $$ Next, we will use the following easy lemma. Lemma. Let $s$ be a positive integer. Then $5^{s+2^{s}} \\equiv 5^{s}\\left(\\bmod 10^{s}\\right)$. Proof. Euler's theorem gives $5^{2^{s}} \\equiv 1\\left(\\bmod 2^{s}\\right)$, so $5^{s+2^{s}}-5^{s}=5^{s}\\left(5^{2^{s}}-1\\right)$ is divisible by $2^{s}$ and $5^{s}$. Now, for every large $k$ we have $$ x_{k+1}=\\frac{p_{k}+q_{k}}{2}=5^{r_{k}} \\cdot 2^{k-2} b_{k}+5^{k-r_{k}} c_{k} \\equiv 5^{k-r_{k}} c_{k} \\quad\\left(\\bmod 10^{r_{k}}\\right) $$ since $r_{k} \\leqslant k-2$ by $(4)$; hence $y_{k+1} \\equiv 5^{2\\left(k-r_{k}\\right)} c_{k}^{2}\\left(\\bmod 10^{r_{k}}\\right)$. Let us consider some large integer $s$, and choose the minimal $k$ such that $2\\left(k-r_{k}\\right) \\geqslant s+2^{s}$; it exists by (4). Set $d=2\\left(k-r_{k}\\right)-\\left(s+2^{s}\\right)$. By (4) we have $2^{s}<2\\left(k-r_{k}\\right)<\\left(\\frac{2}{\\alpha}-2\\right) r_{k}-\\frac{2 c_{1}}{\\alpha}$; if $s$ is large this implies $r_{k}>s$, so (6) also holds modulo $10^{s}$. Then (6) and the lemma give $$ y_{k+1} \\equiv 5^{2\\left(k-r_{k}\\right)} c_{k}^{2}=5^{s+2^{s}} \\cdot 5^{d} c_{k}^{2} \\equiv 5^{s} \\cdot 5^{d} c_{k}^{2} \\quad\\left(\\bmod 10^{s}\\right) . $$ By (5) and the minimality of $k$ we have $d \\leqslant 2 C$, so $5^{d} c_{k}^{2} \\leqslant 5^{2 C} \\cdot 81=D$. Using $5^{4}<10^{3}$ we obtain $$ 5^{s} \\cdot 5^{d} c_{k}^{2}<10^{3 s / 4} D<10^{s-1} $$ for sufficiently large $s$. This, together with (7), shows that the sth digit from the right in $y_{k+1}$, which is $a_{s}$, is zero. This contradicts the problem condition.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N5", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Fix an integer $k \\geqslant 2$. Two players, called Ana and Banana, play the following game of numbers: Initially, some integer $n \\geqslant k$ gets written on the blackboard. Then they take moves in turn, with Ana beginning. A player making a move erases the number $m$ just written on the blackboard and replaces it by some number $m^{\\prime}$ with $k \\leqslant m^{\\prime}m \\geqslant k$ and $\\operatorname{gcd}(m, n)=1$, then $n$ itself is bad, for Ana has the following winning strategy in the game with initial number $n$ : She proceeds by first playing $m$ and then using Banana's strategy for the game with starting number $m$. Otherwise, if some integer $n \\geqslant k$ has the property that every integer $m$ with $n>m \\geqslant k$ and $\\operatorname{gcd}(m, n)=1$ is bad, then $n$ is good. Indeed, if Ana can make a first move at all in the game with initial number $n$, then she leaves it in a position where the first player has a winning strategy, so that Banana can defeat her. In particular, this implies that any two good numbers have a non-trivial common divisor. Also, $k$ itself is good. For brevity, we say that $n \\longrightarrow x$ is a move if $n$ and $x$ are two coprime integers with $n>x \\geqslant k$. Claim 1. If $n$ is good and $n^{\\prime}$ is a multiple of $n$, then $n^{\\prime}$ is also good. Proof. If $n^{\\prime}$ were bad, there would have to be some move $n^{\\prime} \\longrightarrow x$, where $x$ is good. As $n^{\\prime}$ is a multiple of $n$ this implies that the two good numbers $n$ and $x$ are coprime, which is absurd. Claim 2. If $r$ and $s$ denote two positive integers for which $r s \\geqslant k$ is bad, then $r^{2} s$ is also bad. Proof. Since $r s$ is bad, there is a move $r s \\longrightarrow x$ for some good $x$. Evidently $x$ is coprime to $r^{2} s$ as well, and hence the move $r^{2} s \\longrightarrow x$ shows that $r^{2} s$ is indeed bad. Claim 3. If $p>k$ is prime and $n \\geqslant k$ is bad, then $n p$ is also bad. Proof. Otherwise we choose a counterexample with $n$ being as small as possible. In particular, $n p$ is good. Since $n$ is bad, there is a move $n \\longrightarrow x$ for some good $x$. Now $n p \\longrightarrow x$ cannot be a valid move, which tells us that $x$ has to be divisible by $p$. So we can write $x=p^{r} y$, where $r$ and $y$ denote some positive integers, the latter of which is not divisible by $p$. Note that $y=1$ is impossible, for then we would have $x=p^{r}$ and the move $x \\longrightarrow k$ would establish that $x$ is bad. In view of this, there is a least power $y^{\\alpha}$ of $y$ that is at least as large as $k$. Since the numbers $n p$ and $y^{\\alpha}$ are coprime and the former is good, the latter has to be bad. Moreover, the minimality of $\\alpha$ implies $y^{\\alpha}k$, but now we get the same contradiction using Claim 3 instead of Claim 2 . Thereby the problem is solved.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N5", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Fix an integer $k \\geqslant 2$. Two players, called Ana and Banana, play the following game of numbers: Initially, some integer $n \\geqslant k$ gets written on the blackboard. Then they take moves in turn, with Ana beginning. A player making a move erases the number $m$ just written on the blackboard and replaces it by some number $m^{\\prime}$ with $k \\leqslant m^{\\prime}x$. This is clear in case $n=0$, so let us assume $n>0$ from now on. Then we have $x

b$. Applying Claim 4 to $b$ we get an integer $x$ with $b \\geqslant x \\geqslant k$ that is similar to $b$ and has no big prime divisors at all. By our assumption, $b^{\\prime}$ and $x$ are coprime, and as $b^{\\prime}$ is good this implies that $x$ is bad. Consequently there has to be some move $x \\longrightarrow b^{*}$ such that $b^{*}$ is good. But now all the small prime factors of $b$ also appear in $x$ and thus they cannot divide $b^{*}$. Therefore the pair $\\left(b^{*}, b\\right)$ contradicts the supposed minimality of $b^{\\prime}$. From that point, it is easy to complete the solution: assume that there are two similar integers $a$ and $b$ such that $a$ is bad and $b$ is good. Since $a$ is bad, there is a move $a \\longrightarrow b^{\\prime}$ for some good $b^{\\prime}$. By Claim 5, there is a small prime $p$ dividing $b$ and $b^{\\prime}$. Due to the similarity of $a$ and $b$, the prime $p$ has to divide $a$ as well, but this contradicts the fact that $a \\longrightarrow b^{\\prime}$ is a valid move. Thereby the problem is solved. Comment 2. There are infinitely many good numbers, e.g. all multiples of $k$. The increasing sequence $b_{0}, b_{1}, \\ldots$, of all good numbers may be constructed recursively as follows: - Start with $b_{0}=k$. - If $b_{n}$ has just been defined for some $n \\geqslant 0$, then $b_{n+1}$ is the smallest number $b>b_{n}$ that is coprime to none of $b_{0}, \\ldots, b_{n}$. This construction can be used to determine the set of good numbers for any specific $k$ as explained in the next comment. It is already clear that if $k=p^{\\alpha}$ is a prime power, then a number $b \\geqslant k$ is good if and only if it is divisible by $p$. Comment 3. Let $P>1$ denote the product of all small prime numbers. Then any two integers $a, b \\geqslant k$ that are congruent modulo $P$ are similar. Thus the infinite word $W_{k}=\\left(X_{k}, X_{k+1}, \\ldots\\right)$ defined by $$ X_{i}= \\begin{cases}A & \\text { if } i \\text { is bad } \\\\ B & \\text { if } i \\text { is good }\\end{cases} $$ for all $i \\geqslant k$ is periodic and the length of its period divides $P$. As the prime power example shows, the true period can sometimes be much smaller than $P$. On the other hand, there are cases where the period is rather large; e.g., if $k=15$, the sequence of good numbers begins with 15,18,20,24,30,36,40,42, 45 and the period of $W_{15}$ is 30 . Comment 4. The original proposal contained two questions about the game of numbers, namely $(a)$ to show that if two numbers have the same prime factors then either both are good or both are bad, and (b) to show that the word $W_{k}$ introduced in the previous comment is indeed periodic. The Problem Selection Committee thinks that the above version of the problem is somewhat easier, even though it demands to prove a stronger result.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N6", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine all functions $f: \\mathbb{Q} \\longrightarrow \\mathbb{Z}$ satisfying $$ f\\left(\\frac{f(x)+a}{b}\\right)=f\\left(\\frac{x+a}{b}\\right) $$ for all $x \\in \\mathbb{Q}, a \\in \\mathbb{Z}$, and $b \\in \\mathbb{Z}_{>0}$. (Here, $\\mathbb{Z}_{>0}$ denotes the set of positive integers.) (Israel)", "solution": "I. We start by verifying that these functions do indeed satisfy (1). This is clear for all constant functions. Now consider any triple $(x, a, b) \\in \\mathbb{Q} \\times \\mathbb{Z} \\times \\mathbb{Z}_{>0}$ and set $$ q=\\left\\lfloor\\frac{x+a}{b}\\right\\rfloor . $$ This means that $q$ is an integer and $b q \\leqslant x+a0}$. According to the behaviour of the restriction of $f$ to the integers we distinguish two cases. Case 1: There is some $m \\in \\mathbb{Z}$ such that $f(m) \\neq m$. Write $f(m)=C$ and let $\\eta \\in\\{-1,+1\\}$ and $b$ denote the sign and absolute value of $f(m)-m$, respectively. Given any integer $r$, we may plug the triple $(m, r b-C, b)$ into (1), thus getting $f(r)=f(r-\\eta)$. Starting with $m$ and using induction in both directions, we deduce from this that the equation $f(r)=C$ holds for all integers $r$. Now any rational number $y$ can be written in the form $y=\\frac{p}{q}$ with $(p, q) \\in \\mathbb{Z} \\times \\mathbb{Z}_{>0}$, and substituting $(C-p, p-C, q)$ into (1) we get $f(y)=f(0)=C$. Thus $f$ is the constant function whose value is always $C$. Case 2: One has $f(m)=m$ for all integers $m$. Note that now the special case $b=1$ of (1) takes a particularly simple form, namely $$ f(x)+a=f(x+a) \\quad \\text { for all }(x, a) \\in \\mathbb{Q} \\times \\mathbb{Z} $$ Defining $f\\left(\\frac{1}{2}\\right)=\\omega$ we proceed in three steps. Step $A$. We show that $\\omega \\in\\{0,1\\}$. If $\\omega \\leqslant 0$, we may plug $\\left(\\frac{1}{2},-\\omega, 1-2 \\omega\\right)$ into (1), obtaining $0=f(0)=f\\left(\\frac{1}{2}\\right)=\\omega$. In the contrary case $\\omega \\geqslant 1$ we argue similarly using the triple $\\left(\\frac{1}{2}, \\omega-1,2 \\omega-1\\right)$. Step B. We show that $f(x)=\\omega$ for all rational numbers $x$ with $0b \\geqslant k+\\omega$, which is absurd. Similarly, $m \\geqslant r$ leads to $r a-m b0} $$ Now suppose first that $x$ is not an integer but can be written in the form $\\frac{p}{q}$ with $p \\in \\mathbb{Z}$ and $q \\in \\mathbb{Z}_{>0}$ both being odd. Let $d$ denote the multiplicative order of 2 modulo $q$ and let $m$ be any large integer. Plugging $n=d m$ into (6) and using (2) we get $$ f(x)=\\left[\\frac{f\\left(2^{d m} x\\right)}{2^{d m}}\\right]=\\left[\\frac{f(x)+\\left(2^{d m}-1\\right) x}{2^{d m}}\\right]=\\left[x+\\frac{f(x)-x}{2^{d m}}\\right] . $$ Since $x$ is not an integer, the square bracket function is continuous at $x$; hence as $m$ tends to infinity the above fomula gives $f(x)=[x]$. To complete the argument we just need to observe that if some $y \\in \\mathbb{Q}$ satisfies $f(y)=[y]$, then (5) yields $f\\left(\\frac{y}{2}\\right)=f\\left(\\frac{[y]}{2}\\right)=\\left[\\frac{[y]}{2}\\right]=\\left[\\frac{y}{2}\\right]$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N6", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine all functions $f: \\mathbb{Q} \\longrightarrow \\mathbb{Z}$ satisfying $$ f\\left(\\frac{f(x)+a}{b}\\right)=f\\left(\\frac{x+a}{b}\\right) $$ for all $x \\in \\mathbb{Q}, a \\in \\mathbb{Z}$, and $b \\in \\mathbb{Z}_{>0}$. (Here, $\\mathbb{Z}_{>0}$ denotes the set of positive integers.) (Israel)", "solution": "Here we just give another argument for the second case of the above solution. Again we use equation (2). It follows that the set $S$ of all zeros of $f$ contains for each $x \\in \\mathbb{Q}$ exactly one term from the infinite sequence $\\ldots, x-2, x-1, x, x+1, x+2, \\ldots$. Next we claim that $$ \\text { if }(p, q) \\in \\mathbb{Z} \\times \\mathbb{Z}_{>0} \\text { and } \\frac{p}{q} \\in S \\text {, then } \\frac{p}{q+1} \\in S \\text { holds as well. } $$ To see this we just plug $\\left(\\frac{p}{q}, p, q+1\\right)$ into (1), thus getting $f\\left(\\frac{p}{q+1}\\right)=f\\left(\\frac{p}{q}\\right)=0$. From this we get that $$ \\text { if } x, y \\in \\mathbb{Q}, x>y>0 \\text {, and } x \\in S \\text {, then } y \\in S \\text {. } $$ Indeed, if we write $x=\\frac{p}{q}$ and $y=\\frac{r}{s}$ with $p, q, r, s \\in \\mathbb{Z}_{>0}$, then $p s>q r$ and (7) tells us $$ 0=f\\left(\\frac{p}{q}\\right)=f\\left(\\frac{p r}{q r}\\right)=f\\left(\\frac{p r}{q r+1}\\right)=\\ldots=f\\left(\\frac{p r}{p s}\\right)=f\\left(\\frac{r}{s}\\right) $$ Essentially the same argument also establishes that $$ \\text { if } x, y \\in \\mathbb{Q}, x2 m$. Such a pair is necessarily a child of $(c, d-c)$, and thus a descendant of some pair $\\left(c, d^{\\prime}\\right)$ with $m\\{(b+k a) \\nu\\}=\\left\\{\\left(b+k_{0} a\\right) \\nu\\right\\}+\\left(k-k_{0}\\right)\\{a \\nu\\}$ for all $k>k_{0}$, which is absurd. Similarly, one can prove that $S_{m}$ contains finitely many pairs $(c, d)$ with $c>2 m$, thus finitely many elements at all. We are now prepared for proving the following crucial lemma. Lemma. Consider any pair $(a, b)$ with $f(a, b) \\neq m$. Then the number $g(a, b)$ of its $m$-excellent descendants is equal to the number $h(a, b)$ of ways to represent the number $t=m-f(a, b)$ as $t=k a+\\ell b$ with $k$ and $\\ell$ being some nonnegative integers. Proof. We proceed by induction on the number $N$ of descendants of $(a, b)$ in $S_{m}$. If $N=0$ then clearly $g(a, b)=0$. Assume that $h(a, b)>0$; without loss of generality, we have $a \\leqslant b$. Then, clearly, $m-f(a, b) \\geqslant a$, so $f(a, b+a) \\leqslant f(a, b)+a \\leqslant m$ and $a \\leqslant m$, hence $(a, b+a) \\in S_{m}$ which is impossible. Thus in the base case we have $g(a, b)=h(a, b)=0$, as desired. Now let $N>0$. Assume that $f(a+b, b)=f(a, b)+b$ and $f(a, b+a)=f(a, b)$ (the other case is similar). If $f(a, b)+b \\neq m$, then by the induction hypothesis we have $$ g(a, b)=g(a+b, b)+g(a, b+a)=h(a+b, b)+h(a, b+a) $$ Notice that both pairs $(a+b, b)$ and $(a, b+a)$ are descendants of $(a, b)$ and thus each of them has strictly less descendants in $S_{m}$ than $(a, b)$ does. Next, each one of the $h(a+b, b)$ representations of $m-f(a+b, b)=m-b-f(a, b)$ as the sum $k^{\\prime}(a+b)+\\ell^{\\prime} b$ provides the representation $m-f(a, b)=k a+\\ell b$ with $k=k^{\\prime}1} d=\\sum_{d \\mid m} d $$ as required. Comment. Let us present a sketch of an outline of a different solution. The plan is to check that the number of excellent pairs does not depend on the (irrational) number $\\nu$, and to find this number for some appropriate value of $\\nu$. For that, we first introduce some geometrical language. We deal only with the excellent pairs $(a, b)$ with $a \\neq b$. Part I. Given an irrational positive $\\nu$, for every positive integer $n$ we introduce two integral points $F_{\\nu}(n)=$ $(n,\\lfloor n \\nu\\rfloor)$ and $C_{\\nu}(n)=(n,\\lceil n \\nu\\rceil)$ on the coordinate plane $O x y$. Then $(*)$ reads as $\\left[O F_{\\nu}(a) C_{\\nu}(b)\\right]=m / 2$; here $[\\cdot]$ stands for the signed area. Next, we rewrite in these terms the condition on a pair $(a, b)$ to be excellent. Let $\\ell_{\\nu}, \\ell_{\\nu}^{+}$, and $\\ell_{\\nu}^{-}$be the lines determined by the equations $y=\\nu x, y=\\nu x+1$, and $y=\\nu x-1$, respectively. a). Firstly, we deal with all excellent pairs $(a, b)$ with $aa$ is excellent exactly when $p_{\\nu}(a)$ lies between $b-a$ and $b$, and the point of $f_{\\nu}(a)$ with abscissa $b$ is integral (which means that this point is $C_{\\nu}(b)$ ). Notice now that, if $p_{\\nu}(a)>a$, then the number of excellent pairs of the form $(a, b)$ (with $b>a$ ) is $\\operatorname{gcd}(a,\\lfloor a \\nu\\rfloor)$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-67.jpg?height=396&width=422&top_left_y=1274&top_left_x=556) Figure 1 ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-67.jpg?height=431&width=442&top_left_y=1254&top_left_x=1123) Figure 2 b). Analogously, considering the pairs $(a, b)$ with $a>b$, we fix the value of $b$, introduce the line $c_{\\nu}(b)$ containing all the points $F$ with $\\left[O F C_{\\nu}(b)\\right]=m / 2$, assume that this line contains an integral point (which means $\\operatorname{gcd}(b,\\lceil b \\nu\\rceil) \\mid m$ ), and denote the common point of $c_{\\nu}(b)$ and $\\ell_{\\nu}^{-}$by $Q_{\\nu}(b)$, its abscissa being $q_{\\nu}(b)$. Similarly to the previous case, we obtain that the pair $(a, b)$ is excellent exactly when $q_{\\nu}(a)$ lies between $a-b$ and $a$, and the point of $c_{\\nu}(b)$ with abscissa $a$ is integral (see Fig. 2). Again, if $q_{\\nu}(b)>b$, then the number of excellent pairs of the form $(a, b)$ (with $a>b)$ is $\\operatorname{gcd}(b,\\lceil b \\nu\\rceil)$. Part II, sketchy. Having obtained such a description, one may check how the number of excellent pairs changes as $\\nu$ grows. (Having done that, one may find this number for one appropriate value of $\\nu$; for instance, it is relatively easy to make this calculation for $\\nu \\in\\left(1,1+\\frac{1}{m}\\right)$.) Consider, for the initial value of $\\nu$, some excellent pair $(a, t)$ with $a>t$. As $\\nu$ grows, this pair eventually stops being excellent; this happens when the point $Q_{\\nu}(t)$ passes through $F_{\\nu}(a)$. At the same moment, the pair $(a+t, t)$ becomes excellent instead. This process halts when the point $Q_{\\nu}(t)$ eventually disappears, i.e. when $\\nu$ passes through the ratio of the coordinates of the point $T=C_{\\nu}(t)$. Hence, the point $T$ afterwards is regarded as $F_{\\nu}(t)$. Thus, all the old excellent pairs of the form $(a, t)$ with $a>t$ disappear; on the other hand, the same number of excellent pairs with the first element being $t$ just appear. Similarly, if some pair $(t, b)$ with $t0}$ be the set of positive rational numbers. Let $f: \\mathbb{Q}_{>0} \\rightarrow \\mathbb{R}$ be a function satisfying the conditions $$ \\begin{aligned} & f(x) f(y) \\geqslant f(x y) \\\\ & f(x+y) \\geqslant f(x)+f(y) \\end{aligned} $$ for all $x, y \\in \\mathbb{Q}_{>0}$. Given that $f(a)=a$ for some rational $a>1$, prove that $f(x)=x$ for all $x \\in \\mathbb{Q}_{>0}$. (Bulgaria)", "solution": "Denote by $\\mathbb{Z}_{>0}$ the set of positive integers. Plugging $x=1, y=a$ into (1) we get $f(1) \\geqslant 1$. Next, by an easy induction on $n$ we get from (2) that $$ f(n x) \\geqslant n f(x) \\text { for all } n \\in \\mathbb{Z}_{>0} \\text { and } x \\in \\mathbb{Q}_{>0} $$ In particular, we have $$ f(n) \\geqslant n f(1) \\geqslant n \\quad \\text { for all } n \\in \\mathbb{Z}_{>0} $$ From (1) again we have $f(m / n) f(n) \\geqslant f(m)$, so $f(q)>0$ for all $q \\in \\mathbb{Q}_{>0}$. Now, (2) implies that $f$ is strictly increasing; this fact together with (4) yields $$ f(x) \\geqslant f(\\lfloor x\\rfloor) \\geqslant\\lfloor x\\rfloor>x-1 \\quad \\text { for all } x \\geqslant 1 $$ By an easy induction we get from (1) that $f(x)^{n} \\geqslant f\\left(x^{n}\\right)$, so $$ f(x)^{n} \\geqslant f\\left(x^{n}\\right)>x^{n}-1 \\quad \\Longrightarrow \\quad f(x) \\geqslant \\sqrt[n]{x^{n}-1} \\text { for all } x>1 \\text { and } n \\in \\mathbb{Z}_{>0} $$ This yields $$ f(x) \\geqslant x \\text { for every } x>1 \\text {. } $$ (Indeed, if $x>y>1$ then $x^{n}-y^{n}=(x-y)\\left(x^{n-1}+x^{n-2} y+\\cdots+y^{n}\\right)>n(x-y)$, so for a large $n$ we have $x^{n}-1>y^{n}$ and thus $f(x)>y$.) Now, (1) and (5) give $a^{n}=f(a)^{n} \\geqslant f\\left(a^{n}\\right) \\geqslant a^{n}$, so $f\\left(a^{n}\\right)=a^{n}$. Now, for $x>1$ let us choose $n \\in \\mathbb{Z}_{>0}$ such that $a^{n}-x>1$. Then by (2) and (5) we get $$ a^{n}=f\\left(a^{n}\\right) \\geqslant f(x)+f\\left(a^{n}-x\\right) \\geqslant x+\\left(a^{n}-x\\right)=a^{n} $$ and therefore $f(x)=x$ for $x>1$. Finally, for every $x \\in \\mathbb{Q}_{>0}$ and every $n \\in \\mathbb{Z}_{>0}$, from (1) and (3) we get $$ n f(x)=f(n) f(x) \\geqslant f(n x) \\geqslant n f(x) $$ which gives $f(n x)=n f(x)$. Therefore $f(m / n)=f(m) / n=m / n$ for all $m, n \\in \\mathbb{Z}_{>0}$. Comment. The condition $f(a)=a>1$ is essential. Indeed, for $b \\geqslant 1$ the function $f(x)=b x^{2}$ satisfies (1) and (2) for all $x, y \\in \\mathbb{Q}_{>0}$, and it has a unique fixed point $1 / b \\leqslant 1$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A5", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $\\mathbb{Z}_{\\geqslant 0}$ be the set of all nonnegative integers. Find all the functions $f: \\mathbb{Z}_{\\geqslant 0} \\rightarrow \\mathbb{Z}_{\\geqslant 0}$ satisfying the relation $$ f(f(f(n)))=f(n+1)+1 $$ for all $n \\in \\mathbb{Z}_{\\geqslant 0}$. (Serbia) Answer. There are two such functions: $f(n)=n+1$ for all $n \\in \\mathbb{Z}_{\\geqslant 0}$, and $$ f(n)=\\left\\{\\begin{array}{ll} n+1, & n \\equiv 0(\\bmod 4) \\text { or } n \\equiv 2(\\bmod 4), \\\\ n+5, & n \\equiv 1(\\bmod 4), \\\\ n-3, & n \\equiv 3(\\bmod 4) \\end{array} \\quad \\text { for all } n \\in \\mathbb{Z}_{\\geqslant 0}\\right. $$ Throughout all the solutions, we write $h^{k}(x)$ to abbreviate the $k$ th iteration of function $h$, so $h^{0}$ is the identity function, and $h^{k}(x)=\\underbrace{h(\\ldots h}_{k \\text { times }}(x) \\ldots))$ for $k \\geqslant 1$.", "solution": "To start, we get from (*) that $$ f^{4}(n)=f\\left(f^{3}(n)\\right)=f(f(n+1)+1) \\quad \\text { and } \\quad f^{4}(n+1)=f^{3}(f(n+1))=f(f(n+1)+1)+1 $$ thus $$ f^{4}(n)+1=f^{4}(n+1) . $$ I. Let us denote by $R_{i}$ the range of $f^{i}$; note that $R_{0}=\\mathbb{Z}_{\\geqslant 0}$ since $f^{0}$ is the identity function. Obviously, $R_{0} \\supseteq R_{1} \\supseteq \\ldots$ Next, from (2) we get that if $a \\in R_{4}$ then also $a+1 \\in R_{4}$. This implies that $\\mathbb{Z}_{\\geqslant 0} \\backslash R_{4}$ - and hence $\\mathbb{Z}_{\\geqslant 0} \\backslash R_{1}$ - is finite. In particular, $R_{1}$ is unbounded. Assume that $f(m)=f(n)$ for some distinct $m$ and $n$. Then from $(*)$ we obtain $f(m+1)=$ $f(n+1)$; by an easy induction we then get that $f(m+c)=f(n+c)$ for every $c \\geqslant 0$. So the function $f(k)$ is periodic with period $|m-n|$ for $k \\geqslant m$, and thus $R_{1}$ should be bounded, which is false. So, $f$ is injective. II. Denote now $S_{i}=R_{i-1} \\backslash R_{i}$; all these sets are finite for $i \\leqslant 4$. On the other hand, by the injectivity we have $n \\in S_{i} \\Longleftrightarrow f(n) \\in S_{i+1}$. By the injectivity again, $f$ implements a bijection between $S_{i}$ and $S_{i+1}$, thus $\\left|S_{1}\\right|=\\left|S_{2}\\right|=\\ldots$; denote this common cardinality by $k$. If $0 \\in R_{3}$ then $0=f(f(f(n)))$ for some $n$, thus from (*) we get $f(n+1)=-1$ which is impossible. Therefore $0 \\in R_{0} \\backslash R_{3}=S_{1} \\cup S_{2} \\cup S_{3}$, thus $k \\geqslant 1$. Next, let us describe the elements $b$ of $R_{0} \\backslash R_{3}=S_{1} \\cup S_{2} \\cup S_{3}$. We claim that each such element satisfies at least one of three conditions $(i) b=0,(i i) b=f(0)+1$, and (iii) $b-1 \\in S_{1}$. Otherwise $b-1 \\in \\mathbb{Z}_{\\geqslant 0}$, and there exists some $n>0$ such that $f(n)=b-1$; but then $f^{3}(n-1)=f(n)+1=b$, so $b \\in R_{3}$. This yields $$ 3 k=\\left|S_{1} \\cup S_{2} \\cup S_{3}\\right| \\leqslant 1+1+\\left|S_{1}\\right|=k+2, $$ or $k \\leqslant 1$. Therefore $k=1$, and the inequality above comes to equality. So we have $S_{1}=\\{a\\}$, $S_{2}=\\{f(a)\\}$, and $S_{3}=\\left\\{f^{2}(a)\\right\\}$ for some $a \\in \\mathbb{Z}_{\\geqslant 0}$, and each one of the three options (i), (ii), and (iii) should be realized exactly once, which means that $$ \\left\\{a, f(a), f^{2}(a)\\right\\}=\\{0, a+1, f(0)+1\\} . $$ III. From (3), we get $a+1 \\in\\left\\{f(a), f^{2}(a)\\right\\}$ (the case $a+1=a$ is impossible). If $a+1=f^{2}(a)$ then we have $f(a+1)=f^{3}(a)=f(a+1)+1$ which is absurd. Therefore $$ f(a)=a+1 $$ Next, again from (3) we have $0 \\in\\left\\{a, f^{2}(a)\\right\\}$. Let us consider these two cases separately. Case 1. Assume that $a=0$, then $f(0)=f(a)=a+1=1$. Also from (3) we get $f(1)=f^{2}(a)=$ $f(0)+1=2$. Now, let us show that $f(n)=n+1$ by induction on $n$; the base cases $n \\leqslant 1$ are established. Next, if $n \\geqslant 2$ then the induction hypothesis implies $$ n+1=f(n-1)+1=f^{3}(n-2)=f^{2}(n-1)=f(n), $$ establishing the step. In this case we have obtained the first of two answers; checking that is satisfies (*) is straightforward. Case 2. Assume now that $f^{2}(a)=0$; then by (3) we get $a=f(0)+1$. By (4) we get $f(a+1)=$ $f^{2}(a)=0$, then $f(0)=f^{3}(a)=f(a+1)+1=1$, hence $a=f(0)+1=2$ and $f(2)=3$ by (4). To summarize, $$ f(0)=1, \\quad f(2)=3, \\quad f(3)=0 . $$ Now let us prove by induction on $m$ that (1) holds for all $n=4 k, 4 k+2,4 k+3$ with $k \\leqslant m$ and for all $n=4 k+1$ with $k0$ and $B(1)=m+2>0$ since $n=2 m$. Therefore $B(x)=A(x+a+b)$. Writing $c=a+b \\geqslant 1$ we compute $$ 0=A(x+c)-B(x)=(3 c-2 m) x^{2}+c(3 c-2 m) x+c^{2}(c-m) . $$ Then we must have $3 c-2 m=c-m=0$, which gives $m=0$, a contradiction. We conclude that $f(x)=t x$ is the only solution.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "A6", "problem_type": "Algebra", "exam": "IMO-SL", "problem": "Let $m \\neq 0$ be an integer. Find all polynomials $P(x)$ with real coefficients such that $$ \\left(x^{3}-m x^{2}+1\\right) P(x+1)+\\left(x^{3}+m x^{2}+1\\right) P(x-1)=2\\left(x^{3}-m x+1\\right) P(x) $$ for all real numbers $x$. (Serbia) Answer. $P(x)=t x$ for any real number $t$.", "solution": "Multiplying (1) by $x$, we rewrite it as $$ x\\left(x^{3}-m x^{2}+1\\right) P(x+1)+x\\left(x^{3}+m x^{2}+1\\right) P(x-1)=[(x+1)+(x-1)]\\left(x^{3}-m x+1\\right) P(x) . $$ After regrouping, it becomes $$ \\left(x^{3}-m x^{2}+1\\right) Q(x)=\\left(x^{3}+m x^{2}+1\\right) Q(x-1) \\text {, } $$ where $Q(x)=x P(x+1)-(x+1) P(x)$. If $\\operatorname{deg} P \\geqslant 2$ then $\\operatorname{deg} Q=\\operatorname{deg} P$, so $Q(x)$ has a finite multiset of complex roots, which we denote $R_{Q}$. Each root is taken with its multiplicity. Then the multiset of complex roots of $Q(x-1)$ is $R_{Q}+1=\\left\\{z+1: z \\in R_{Q}\\right\\}$. Let $\\left\\{x_{1}, x_{2}, x_{3}\\right\\}$ and $\\left\\{y_{1}, y_{2}, y_{3}\\right\\}$ be the multisets of roots of the polynomials $A(x)=x^{3}-m x^{2}+1$ and $B(x)=x^{3}+m x^{2}+1$, respectively. From (2) we get the equality of multisets $$ \\left\\{x_{1}, x_{2}, x_{3}\\right\\} \\cup R_{Q}=\\left\\{y_{1}, y_{2}, y_{3}\\right\\} \\cup\\left(R_{Q}+1\\right) . $$ For every $r \\in R_{Q}$, since $r+1$ is in the set of the right hand side, we must have $r+1 \\in R_{Q}$ or $r+1=x_{i}$ for some $i$. Similarly, since $r$ is in the set of the left hand side, either $r-1 \\in R_{Q}$ or $r=y_{i}$ for some $i$. This implies that, possibly after relabelling $y_{1}, y_{2}, y_{3}$, all the roots of (2) may be partitioned into three chains of the form $\\left\\{y_{i}, y_{i}+1, \\ldots, y_{i}+k_{i}=x_{i}\\right\\}$ for $i=1,2,3$ and some integers $k_{1}, k_{2}, k_{3} \\geqslant 0$. Now we analyze the roots of the polynomial $A_{a}(x)=x^{3}+a x^{2}+1$. Using calculus or elementary methods, we find that the local extrema of $A_{a}(x)$ occur at $x=0$ and $x=-2 a / 3$; their values are $A_{a}(0)=1>0$ and $A_{a}(-2 a / 3)=1+4 a^{3} / 27$, which is positive for integers $a \\geqslant-1$ and negative for integers $a \\leqslant-2$. So when $a \\in \\mathbb{Z}, A_{a}$ has three real roots if $a \\leqslant-2$ and one if $a \\geqslant-1$. Now, since $y_{i}-x_{i} \\in \\mathbb{Z}$ for $i=1,2,3$, the cubics $A_{m}$ and $A_{-m}$ must have the same number of real roots. The previous analysis then implies that $m=1$ or $m=-1$. Therefore the real root $\\alpha$ of $A_{1}(x)=x^{3}+x^{2}+1$ and the real root $\\beta$ of $A_{-1}(x)=x^{3}-x^{2}+1$ must differ by an integer. But this is impossible, because $A_{1}\\left(-\\frac{3}{2}\\right)=-\\frac{1}{8}$ and $A_{1}(-1)=1$ so $-1.5<\\alpha<-1$, while $A_{-1}(-1)=-1$ and $A_{-1}\\left(-\\frac{1}{2}\\right)=\\frac{5}{8}$, so $-1<\\beta<-0.5$. It follows that $\\operatorname{deg} P \\leqslant 1$. Then, as shown in Solution 1, we conclude that the solutions are $P(x)=t x$ for all real numbers $t$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C1", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer. Find the smallest integer $k$ with the following property: Given any real numbers $a_{1}, \\ldots, a_{d}$ such that $a_{1}+a_{2}+\\cdots+a_{d}=n$ and $0 \\leqslant a_{i} \\leqslant 1$ for $i=1,2, \\ldots, d$, it is possible to partition these numbers into $k$ groups (some of which may be empty) such that the sum of the numbers in each group is at most 1 . (Poland) Answer. $k=2 n-1$.", "solution": "If $d=2 n-1$ and $a_{1}=\\cdots=a_{2 n-1}=n /(2 n-1)$, then each group in such a partition can contain at most one number, since $2 n /(2 n-1)>1$. Therefore $k \\geqslant 2 n-1$. It remains to show that a suitable partition into $2 n-1$ groups always exists. We proceed by induction on $d$. For $d \\leqslant 2 n-1$ the result is trivial. If $d \\geqslant 2 n$, then since $$ \\left(a_{1}+a_{2}\\right)+\\ldots+\\left(a_{2 n-1}+a_{2 n}\\right) \\leqslant n $$ we may find two numbers $a_{i}, a_{i+1}$ such that $a_{i}+a_{i+1} \\leqslant 1$. We \"merge\" these two numbers into one new number $a_{i}+a_{i+1}$. By the induction hypothesis, a suitable partition exists for the $d-1$ numbers $a_{1}, \\ldots, a_{i-1}, a_{i}+a_{i+1}, a_{i+2}, \\ldots, a_{d}$. This induces a suitable partition for $a_{1}, \\ldots, a_{d}$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C1", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer. Find the smallest integer $k$ with the following property: Given any real numbers $a_{1}, \\ldots, a_{d}$ such that $a_{1}+a_{2}+\\cdots+a_{d}=n$ and $0 \\leqslant a_{i} \\leqslant 1$ for $i=1,2, \\ldots, d$, it is possible to partition these numbers into $k$ groups (some of which may be empty) such that the sum of the numbers in each group is at most 1 . (Poland) Answer. $k=2 n-1$.", "solution": "We will show that it is even possible to split the sequence $a_{1}, \\ldots, a_{d}$ into $2 n-1$ contiguous groups so that the sum of the numbers in each groups does not exceed 1. Consider a segment $S$ of length $n$, and partition it into segments $S_{1}, \\ldots, S_{d}$ of lengths $a_{1}, \\ldots, a_{d}$, respectively, as shown below. Consider a second partition of $S$ into $n$ equal parts by $n-1$ \"empty dots\". | $a_{1}$ | $a_{2}$ | $a_{3}$ | $a_{4}$ | $a_{5}$ | $a_{6}$ | $a_{7}$ | $a_{8}, a_{9}, a_{10}$ | | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | | | | | | | | | | Assume that the $n-1$ empty dots are in segments $S_{i_{1}}, \\ldots, S_{i_{n-1}}$. (If a dot is on the boundary of two segments, we choose the right segment). These $n-1$ segments are distinct because they have length at most 1. Consider the partition: $$ \\left\\{a_{1}, \\ldots, a_{i_{1}-1}\\right\\},\\left\\{a_{i_{1}}\\right\\},\\left\\{a_{i_{1}+1}, \\ldots, a_{i_{2}-1}\\right\\},\\left\\{a_{i_{2}}\\right\\}, \\ldots\\left\\{a_{i_{n-1}}\\right\\},\\left\\{a_{i_{n-1}+1}, \\ldots, a_{d}\\right\\} $$ In the example above, this partition is $\\left\\{a_{1}, a_{2}\\right\\},\\left\\{a_{3}\\right\\},\\left\\{a_{4}, a_{5}\\right\\},\\left\\{a_{6}\\right\\}, \\varnothing,\\left\\{a_{7}\\right\\},\\left\\{a_{8}, a_{9}, a_{10}\\right\\}$. We claim that in this partition, the sum of the numbers in this group is at most 1 . For the sets $\\left\\{a_{i_{t}}\\right\\}$ this is obvious since $a_{i_{t}} \\leqslant 1$. For the sets $\\left\\{a_{i_{t}}+1, \\ldots, a_{i_{t+1}-1}\\right\\}$ this follows from the fact that the corresponding segments lie between two neighboring empty dots, or between an endpoint of $S$ and its nearest empty dot. Therefore the sum of their lengths cannot exceed 1.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C1", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $n$ be a positive integer. Find the smallest integer $k$ with the following property: Given any real numbers $a_{1}, \\ldots, a_{d}$ such that $a_{1}+a_{2}+\\cdots+a_{d}=n$ and $0 \\leqslant a_{i} \\leqslant 1$ for $i=1,2, \\ldots, d$, it is possible to partition these numbers into $k$ groups (some of which may be empty) such that the sum of the numbers in each group is at most 1 . (Poland) Answer. $k=2 n-1$.", "solution": "First put all numbers greater than $\\frac{1}{2}$ in their own groups. Then, form the remaining groups as follows: For each group, add new $a_{i} \\mathrm{~S}$ one at a time until their sum exceeds $\\frac{1}{2}$. Since the last summand is at most $\\frac{1}{2}$, this group has sum at most 1 . Continue this procedure until we have used all the $a_{i}$ s. Notice that the last group may have sum less than $\\frac{1}{2}$. If the sum of the numbers in the last two groups is less than or equal to 1, we merge them into one group. In the end we are left with $m$ groups. If $m=1$ we are done. Otherwise the first $m-2$ have sums greater than $\\frac{1}{2}$ and the last two have total sum greater than 1 . Therefore $n>(m-2) / 2+1$ so $m \\leqslant 2 n-1$ as desired. Comment 1. The original proposal asked for the minimal value of $k$ when $n=2$. Comment 2. More generally, one may ask the same question for real numbers between 0 and 1 whose sum is a real number $r$. In this case the smallest value of $k$ is $k=\\lceil 2 r\\rceil-1$, as Solution 3 shows. Solutions 1 and 2 lead to the slightly weaker bound $k \\leqslant 2\\lceil r\\rceil-1$. This is actually the optimal bound for partitions into consecutive groups, which are the ones contemplated in these two solutions. To see this, assume that $r$ is not an integer and let $c=(r+1-\\lceil r\\rceil) /(1+\\lceil r\\rceil)$. One easily checks that $0N$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "C5", "problem_type": "Combinatorics", "exam": "IMO-SL", "problem": "Let $r$ be a positive integer, and let $a_{0}, a_{1}, \\ldots$ be an infinite sequence of real numbers. Assume that for all nonnegative integers $m$ and $s$ there exists a positive integer $n \\in[m+1, m+r]$ such that $$ a_{m}+a_{m+1}+\\cdots+a_{m+s}=a_{n}+a_{n+1}+\\cdots+a_{n+s} $$ Prove that the sequence is periodic, i. e. there exists some $p \\geqslant 1$ such that $a_{n+p}=a_{n}$ for all $n \\geqslant 0$. (India)", "solution": "For every indices $m \\leqslant n$ we will denote $S(m, n)=a_{m}+a_{m+1}+\\cdots+a_{n-1}$; thus $S(n, n)=0$. Let us start with the following lemma. Lemma. Let $b_{0}, b_{1}, \\ldots$ be an infinite sequence. Assume that for every nonnegative integer $m$ there exists a nonnegative integer $n \\in[m+1, m+r]$ such that $b_{m}=b_{n}$. Then for every indices $k \\leqslant \\ell$ there exists an index $t \\in[\\ell, \\ell+r-1]$ such that $b_{t}=b_{k}$. Moreover, there are at most $r$ distinct numbers among the terms of $\\left(b_{i}\\right)$. Proof. To prove the first claim, let us notice that there exists an infinite sequence of indices $k_{1}=k, k_{2}, k_{3}, \\ldots$ such that $b_{k_{1}}=b_{k_{2}}=\\cdots=b_{k}$ and $k_{i}1 / 2^{m}$. Next, any interval blackened by $B$ before the $r$ th move which intersects $\\left(x_{r}, x_{r+1}\\right)$ should be contained in $\\left[x_{r}, x_{r+1}\\right]$; by (ii), all such intervals have different lengths not exceeding $1 / 2^{m}$, so the total amount of ink used for them is less than $2 / 2^{m}$. Thus, the amount of ink used for the segment $\\left[0, x_{r+1}\\right]$ does not exceed the sum of $2 / 2^{m}, 3 x_{r}$ (used for $\\left[0, x_{r}\\right]$ ), and $1 / 2^{m}$ used for the segment $I_{0}^{r}$. In total it gives at most $3\\left(x_{r}+1 / 2^{m}\\right)<3\\left(x_{r}+\\alpha\\right)=3 x_{r+1}$. Thus condition $(i)$ is also verified in this case. The claim is proved. Finally, we can perform the desired estimation. Consider any situation in the game, say after the $(r-1)$ st move; assume that the segment $[0,1]$ is not completely black. By $(i i)$, in the segment $\\left[x_{r}, 1\\right]$ player $B$ has colored several segments of different lengths; all these lengths are negative powers of 2 not exceeding $1-x_{r}$; thus the total amount of ink used for this interval is at most $2\\left(1-x_{r}\\right)$. Using $(i)$, we obtain that the total amount of ink used is at most $3 x_{r}+2\\left(1-x_{r}\\right)<3$. Thus the pot is not empty, and therefore $A$ never wins. Comment 1. Notice that this strategy works even if the pot contains initially only 3 units of ink. Comment 2. There exist other strategies for $B$ allowing him to prevent emptying the pot before the whole interval is colored. On the other hand, let us mention some idea which does not work. Player $B$ could try a strategy in which the set of blackened points in each round is an interval of the type $[0, x]$. Such a strategy cannot work (even if there is more ink available). Indeed, under the assumption that $B$ uses such a strategy, let us prove by induction on $s$ the following statement: For any positive integer $s$, player $A$ has a strategy picking only positive integers $m \\leqslant s$ in which, if player $B$ ever paints a point $x \\geqslant 1-1 / 2^{s}$ then after some move, exactly the interval $\\left[0,1-1 / 2^{s}\\right]$ is blackened, and the amount of ink used up to this moment is at least s/2. For the base case $s=1$, player $A$ just picks $m=1$ in the first round. If for some positive integer $k$ player $A$ has such a strategy, for $s+1$ he can first rescale his strategy to the interval $[0,1 / 2]$ (sending in each round half of the amount of ink he would give by the original strategy). Thus, after some round, the interval $\\left[0,1 / 2-1 / 2^{s+1}\\right]$ becomes blackened, and the amount of ink used is at least $s / 4$. Now player $A$ picks $m=1 / 2$, and player $B$ spends $1 / 2$ unit of ink to blacken the interval [0,1/2]. After that, player $A$ again rescales his strategy to the interval $[1 / 2,1]$, and player $B$ spends at least $s / 4$ units of ink to blacken the interval $\\left[1 / 2,1-1 / 2^{s+1}\\right]$, so he spends in total at least $s / 4+1 / 2+s / 4=(s+1) / 2$ units of ink. Comment 3. In order to avoid finiteness issues, the statement could be replaced by the following one: Players $A$ and $B$ play a paintful game on the real numbers. Player $A$ has a paint pot with four units of black ink. A quantity $p$ of this ink suffices to blacken a (closed) real interval of length $p$. In the beginning of the game, player $A$ chooses (and announces) a positive integer $N$. In every round, player $A$ picks some positive integer $m \\leqslant N$ and provides $1 / 2^{m}$ units of ink from the pot. The player $B$ picks an integer $k$ and blackens the interval from $k / 2^{m}$ to $(k+1) / 2^{m}$ (some parts of this interval may happen to be blackened before). The goal of player $A$ is to reach a situation where the pot is empty and the interval $[0,1]$ is not completely blackened. Decide whether there exists a strategy for player A to win. However, the Problem Selection Committee believes that this version may turn out to be harder than the original one.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G5", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C D E F$ be a convex hexagon with $A B=D E, B C=E F, C D=F A$, and $\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$. Prove that the diagonals $A D, B E$, and $C F$ are concurrent. (Ukraine) In all three solutions, we denote $\\theta=\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$ and assume without loss of generality that $\\theta \\geqslant 0$.", "solution": "Let $x=A B=D E, y=C D=F A, z=E F=B C$. Consider the points $P, Q$, and $R$ such that the quadrilaterals $C D E P, E F A Q$, and $A B C R$ are parallelograms. We compute $$ \\begin{aligned} \\angle P E Q & =\\angle F E Q+\\angle D E P-\\angle E=\\left(180^{\\circ}-\\angle F\\right)+\\left(180^{\\circ}-\\angle D\\right)-\\angle E \\\\ & =360^{\\circ}-\\angle D-\\angle E-\\angle F=\\frac{1}{2}(\\angle A+\\angle B+\\angle C-\\angle D-\\angle E-\\angle F)=\\theta / 2 \\end{aligned} $$ Similarly, $\\angle Q A R=\\angle R C P=\\theta / 2$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-46.jpg?height=491&width=827&top_left_y=947&top_left_x=649) If $\\theta=0$, since $\\triangle R C P$ is isosceles, $R=P$. Therefore $A B\\|R C=P C\\| E D$, so $A B D E$ is a parallelogram. Similarly, $B C E F$ and $C D F A$ are parallelograms. It follows that $A D, B E$ and $C F$ meet at their common midpoint. Now assume $\\theta>0$. Since $\\triangle P E Q, \\triangle Q A R$, and $\\triangle R C P$ are isosceles and have the same angle at the apex, we have $\\triangle P E Q \\sim \\triangle Q A R \\sim \\triangle R C P$ with ratios of similarity $y: z: x$. Thus $\\triangle P Q R$ is similar to the triangle with sidelengths $y, z$, and $x$. Next, notice that $$ \\frac{R Q}{Q P}=\\frac{z}{y}=\\frac{R A}{A F} $$ and, using directed angles between rays, $$ \\begin{aligned} \\not(R Q, Q P) & =\\Varangle(R Q, Q E)+\\Varangle(Q E, Q P) \\\\ & =\\Varangle(R Q, Q E)+\\Varangle(R A, R Q)=\\Varangle(R A, Q E)=\\Varangle(R A, A F) . \\end{aligned} $$ Thus $\\triangle P Q R \\sim \\triangle F A R$. Since $F A=y$ and $A R=z$, (1) then implies that $F R=x$. Similarly $F P=x$. Therefore $C R F P$ is a rhombus. We conclude that $C F$ is the perpendicular bisector of $P R$. Similarly, $B E$ is the perpendicular bisector of $P Q$ and $A D$ is the perpendicular bisector of $Q R$. It follows that $A D, B E$, and $C F$ are concurrent at the circumcenter of $P Q R$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G5", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C D E F$ be a convex hexagon with $A B=D E, B C=E F, C D=F A$, and $\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$. Prove that the diagonals $A D, B E$, and $C F$ are concurrent. (Ukraine) In all three solutions, we denote $\\theta=\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$ and assume without loss of generality that $\\theta \\geqslant 0$.", "solution": "Let $X=C D \\cap E F, Y=E F \\cap A B, Z=A B \\cap C D, X^{\\prime}=F A \\cap B C, Y^{\\prime}=$ $B C \\cap D E$, and $Z^{\\prime}=D E \\cap F A$. From $\\angle A+\\angle B+\\angle C=360^{\\circ}+\\theta / 2$ we get $\\angle A+\\angle B>180^{\\circ}$ and $\\angle B+\\angle C>180^{\\circ}$, so $Z$ and $X^{\\prime}$ are respectively on the opposite sides of $B C$ and $A B$ from the hexagon. Similar conclusions hold for $X, Y, Y^{\\prime}$, and $Z^{\\prime}$. Then $$ \\angle Y Z X=\\angle B+\\angle C-180^{\\circ}=\\angle E+\\angle F-180^{\\circ}=\\angle Y^{\\prime} Z^{\\prime} X^{\\prime}, $$ and similarly $\\angle Z X Y=\\angle Z^{\\prime} X^{\\prime} Y^{\\prime}$ and $\\angle X Y Z=\\angle X^{\\prime} Y^{\\prime} Z^{\\prime}$, so $\\triangle X Y Z \\sim \\triangle X^{\\prime} Y^{\\prime} Z^{\\prime}$. Thus there is a rotation $R$ which sends $\\triangle X Y Z$ to a triangle with sides parallel to $\\triangle X^{\\prime} Y^{\\prime} Z^{\\prime}$. Since $A B=D E$ we have $R(\\overrightarrow{A B})=\\overrightarrow{D E}$. Similarly, $R(\\overrightarrow{C D})=\\overrightarrow{F A}$ and $R(\\overrightarrow{E F})=\\overrightarrow{B C}$. Therefore $$ \\overrightarrow{0}=\\overrightarrow{A B}+\\overrightarrow{B C}+\\overrightarrow{C D}+\\overrightarrow{D E}+\\overrightarrow{E F}+\\overrightarrow{F A}=(\\overrightarrow{A B}+\\overrightarrow{C D}+\\overrightarrow{E F})+R(\\overrightarrow{A B}+\\overrightarrow{C D}+\\overrightarrow{E F}) $$ If $R$ is a rotation by $180^{\\circ}$, then any two opposite sides of our hexagon are equal and parallel, so the three diagonals meet at their common midpoint. Otherwise, we must have $$ \\overrightarrow{A B}+\\overrightarrow{C D}+\\overrightarrow{E F}=\\overrightarrow{0} $$ or else we would have two vectors with different directions whose sum is $\\overrightarrow{0}$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-47.jpg?height=689&width=1333&top_left_y=1057&top_left_x=388) This allows us to consider a triangle $L M N$ with $\\overrightarrow{L M}=\\overrightarrow{E F}, \\overrightarrow{M N}=\\overrightarrow{A B}$, and $\\overrightarrow{N L}=\\overrightarrow{C D}$. Let $O$ be the circumcenter of $\\triangle L M N$ and consider the points $O_{1}, O_{2}, O_{3}$ such that $\\triangle A O_{1} B, \\triangle C O_{2} D$, and $\\triangle E O_{3} F$ are translations of $\\triangle M O N, \\triangle N O L$, and $\\triangle L O M$, respectively. Since $F O_{3}$ and $A O_{1}$ are translations of $M O$, quadrilateral $A F O_{3} O_{1}$ is a parallelogram and $O_{3} O_{1}=F A=C D=N L$. Similarly, $O_{1} O_{2}=L M$ and $O_{2} O_{3}=M N$. Therefore $\\triangle O_{1} O_{2} O_{3} \\cong \\triangle L M N$. Moreover, by means of the rotation $R$ one may check that these triangles have the same orientation. Let $T$ be the circumcenter of $\\triangle O_{1} O_{2} O_{3}$. We claim that $A D, B E$, and $C F$ meet at $T$. Let us show that $C, T$, and $F$ are collinear. Notice that $C O_{2}=O_{2} T=T O_{3}=O_{3} F$ since they are all equal to the circumradius of $\\triangle L M N$. Therefore $\\triangle T O_{3} F$ and $\\triangle C O_{2} T$ are isosceles. Using directed angles between rays again, we get $$ \\Varangle\\left(T F, T O_{3}\\right)=\\Varangle\\left(F O_{3}, F T\\right) \\quad \\text { and } \\quad \\Varangle\\left(T O_{2}, T C\\right)=\\Varangle\\left(C T, C O_{2}\\right) \\text {. } $$ Also, $T$ and $O$ are the circumcenters of the congruent triangles $\\triangle O_{1} O_{2} O_{3}$ and $\\triangle L M N$ so we have $\\Varangle\\left(T O_{3}, T O_{2}\\right)=\\Varangle(O N, O M)$. Since $C_{2}$ and $F O_{3}$ are translations of $N O$ and $M O$ respectively, this implies $$ \\Varangle\\left(T O_{3}, T O_{2}\\right)=\\Varangle\\left(C O_{2}, F O_{3}\\right) . $$ Adding the three equations in (2) and (3) gives $$ \\Varangle(T F, T C)=\\Varangle(C T, F T)=-\\not(T F, T C) $$ which implies that $T$ is on $C F$. Analogous arguments show that it is on $A D$ and $B E$ also. The desired result follows.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "G5", "problem_type": "Geometry", "exam": "IMO-SL", "problem": "Let $A B C D E F$ be a convex hexagon with $A B=D E, B C=E F, C D=F A$, and $\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$. Prove that the diagonals $A D, B E$, and $C F$ are concurrent. (Ukraine) In all three solutions, we denote $\\theta=\\angle A-\\angle D=\\angle C-\\angle F=\\angle E-\\angle B$ and assume without loss of generality that $\\theta \\geqslant 0$.", "solution": "Place the hexagon on the complex plane, with $A$ at the origin and vertices labelled clockwise. Now $A, B, C, D, E, F$ represent the corresponding complex numbers. Also consider the complex numbers $a, b, c, a^{\\prime}, b^{\\prime}, c^{\\prime}$ given by $B-A=a, D-C=b, F-E=c, E-D=a^{\\prime}$, $A-F=b^{\\prime}$, and $C-B=c^{\\prime}$. Let $k=|a| /|b|$. From $a / b^{\\prime}=-k e^{i \\angle A}$ and $a^{\\prime} / b=-k e^{i \\angle D}$ we get that $\\left(a^{\\prime} / a\\right)\\left(b^{\\prime} / b\\right)=e^{-i \\theta}$ and similarly $\\left(b^{\\prime} / b\\right)\\left(c^{\\prime} / c\\right)=e^{-i \\theta}$ and $\\left(c^{\\prime} / c\\right)\\left(a^{\\prime} / a\\right)=e^{-i \\theta}$. It follows that $a^{\\prime}=a r$, $b^{\\prime}=b r$, and $c^{\\prime}=c r$ for a complex number $r$ with $|r|=1$, as shown below. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-48.jpg?height=512&width=1052&top_left_y=823&top_left_x=534) We have $$ 0=a+c r+b+a r+c+b r=(a+b+c)(1+r) . $$ If $r=-1$, then the hexagon is centrally symmetric and its diagonals intersect at its center of symmetry. Otherwise $$ a+b+c=0 \\text {. } $$ Therefore $$ A=0, \\quad B=a, \\quad C=a+c r, \\quad D=c(r-1), \\quad E=-b r-c, \\quad F=-b r . $$ Now consider a point $W$ on $A D$ given by the complex number $c(r-1) \\lambda$, where $\\lambda$ is a real number with $0<\\lambda<1$. Since $D \\neq A$, we have $r \\neq 1$, so we can define $s=1 /(r-1)$. From $r \\bar{r}=|r|^{2}=1$ we get $$ 1+s=\\frac{r}{r-1}=\\frac{r}{r-r \\bar{r}}=\\frac{1}{1-\\bar{r}}=-\\bar{s} . $$ Now, $$ \\begin{aligned} W \\text { is on } B E & \\Longleftrightarrow c(r-1) \\lambda-a\\|a-(-b r-c)=b(r-1) \\Longleftrightarrow c \\lambda-a s\\| b \\\\ & \\Longleftrightarrow-a \\lambda-b \\lambda-a s\\|b \\Longleftrightarrow a(\\lambda+s)\\| b . \\end{aligned} $$ One easily checks that $r \\neq \\pm 1$ implies that $\\lambda+s \\neq 0$ since $s$ is not real. On the other hand, $$ \\begin{aligned} W \\text { on } C F & \\Longleftrightarrow c(r-1) \\lambda+b r\\|-b r-(a+c r)=a(r-1) \\Longleftrightarrow c \\lambda+b(1+s)\\| a \\\\ & \\Longleftrightarrow-a \\lambda-b \\lambda-b \\bar{s}\\|a \\Longleftrightarrow b(\\lambda+\\bar{s})\\| a \\Longleftrightarrow b \\| a(\\lambda+s), \\end{aligned} $$ where in the last step we use that $(\\lambda+s)(\\lambda+\\bar{s})=|\\lambda+s|^{2} \\in \\mathbb{R}_{>0}$. We conclude that $A D \\cap B E=$ $C F \\cap B E$, and the desired result follows.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N1", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Let $\\mathbb{Z}_{>0}$ be the set of positive integers. Find all functions $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ such that $$ m^{2}+f(n) \\mid m f(m)+n $$ for all positive integers $m$ and $n$. (Malaysia) Answer. $f(n)=n$.", "solution": "Setting $m=n=2$ tells us that $4+f(2) \\mid 2 f(2)+2$. Since $2 f(2)+2<2(4+f(2))$, we must have $2 f(2)+2=4+f(2)$, so $f(2)=2$. Plugging in $m=2$ then tells us that $4+f(n) \\mid 4+n$, which implies that $f(n) \\leqslant n$ for all $n$. Setting $m=n$ gives $n^{2}+f(n) \\mid n f(n)+n$, so $n f(n)+n \\geqslant n^{2}+f(n)$ which we rewrite as $(n-1)(f(n)-n) \\geqslant 0$. Therefore $f(n) \\geqslant n$ for all $n \\geqslant 2$. This is trivially true for $n=1$ also. It follows that $f(n)=n$ for all $n$. This function obviously satisfies the desired property.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N1", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Let $\\mathbb{Z}_{>0}$ be the set of positive integers. Find all functions $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ such that $$ m^{2}+f(n) \\mid m f(m)+n $$ for all positive integers $m$ and $n$. (Malaysia) Answer. $f(n)=n$.", "solution": "Setting $m=f(n)$ we get $f(n)(f(n)+1) \\mid f(n) f(f(n))+n$. This implies that $f(n) \\mid n$ for all $n$. Now let $m$ be any positive integer, and let $p>2 m^{2}$ be a prime number. Note that $p>m f(m)$ also. Plugging in $n=p-m f(m)$ we learn that $m^{2}+f(n)$ divides $p$. Since $m^{2}+f(n)$ cannot equal 1, it must equal $p$. Therefore $p-m^{2}=f(n) \\mid n=p-m f(m)$. But $p-m f(m)0}$ be the set of positive integers. Find all functions $f: \\mathbb{Z}_{>0} \\rightarrow \\mathbb{Z}_{>0}$ such that $$ m^{2}+f(n) \\mid m f(m)+n $$ for all positive integers $m$ and $n$. (Malaysia) Answer. $f(n)=n$.", "solution": "Plugging $m=1$ we obtain $1+f(n) \\leqslant f(1)+n$, so $f(n) \\leqslant n+c$ for the constant $c=$ $f(1)-1$. Assume that $f(n) \\neq n$ for some fixed $n$. When $m$ is large enough (e.g. $m \\geqslant \\max (n, c+1)$ ) we have $$ m f(m)+n \\leqslant m(m+c)+n \\leqslant 2 m^{2}<2\\left(m^{2}+f(n)\\right), $$ so we must have $m f(m)+n=m^{2}+f(n)$. This implies that $$ 0 \\neq f(n)-n=m(f(m)-m) $$ which is impossible for $m>|f(n)-n|$. It follows that $f$ is the identity function.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N4", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine whether there exists an infinite sequence of nonzero digits $a_{1}, a_{2}, a_{3}, \\ldots$ and a positive integer $N$ such that for every integer $k>N$, the number $\\overline{a_{k} a_{k-1} \\ldots a_{1}}$ is a perfect square. (Iran) Answer. No.", "solution": "Assume that $a_{1}, a_{2}, a_{3}, \\ldots$ is such a sequence. For each positive integer $k$, let $y_{k}=$ $\\overline{a_{k} a_{k-1} \\ldots a_{1}}$. By the assumption, for each $k>N$ there exists a positive integer $x_{k}$ such that $y_{k}=x_{k}^{2}$. I. For every $n$, let $5^{\\gamma_{n}}$ be the greatest power of 5 dividing $x_{n}$. Let us show first that $2 \\gamma_{n} \\geqslant n$ for every positive integer $n>N$. Assume, to the contrary, that there exists a positive integer $n>N$ such that $2 \\gamma_{n}N$. II. Consider now any integer $k>\\max \\{N / 2,2\\}$. Since $2 \\gamma_{2 k+1} \\geqslant 2 k+1$ and $2 \\gamma_{2 k+2} \\geqslant 2 k+2$, we have $\\gamma_{2 k+1} \\geqslant k+1$ and $\\gamma_{2 k+2} \\geqslant k+1$. So, from $y_{2 k+2}=a_{2 k+2} \\cdot 10^{2 k+1}+y_{2 k+1}$ we obtain $5^{2 k+2} \\mid y_{2 k+2}-y_{2 k+1}=a_{2 k+2} \\cdot 10^{2 k+1}$ and thus $5 \\mid a_{2 k+2}$, which implies $a_{2 k+2}=5$. Therefore, $$ \\left(x_{2 k+2}-x_{2 k+1}\\right)\\left(x_{2 k+2}+x_{2 k+1}\\right)=x_{2 k+2}^{2}-x_{2 k+1}^{2}=y_{2 k+2}-y_{2 k+1}=5 \\cdot 10^{2 k+1}=2^{2 k+1} \\cdot 5^{2 k+2} . $$ Setting $A_{k}=x_{2 k+2} / 5^{k+1}$ and $B_{k}=x_{2 k+1} / 5^{k+1}$, which are integers, we obtain $$ \\left(A_{k}-B_{k}\\right)\\left(A_{k}+B_{k}\\right)=2^{2 k+1} . $$ Both $A_{k}$ and $B_{k}$ are odd, since otherwise $y_{2 k+2}$ or $y_{2 k+1}$ would be a multiple of 10 which is false by $a_{1} \\neq 0$; so one of the numbers $A_{k}-B_{k}$ and $A_{k}+B_{k}$ is not divisible by 4 . Therefore (1) yields $A_{k}-B_{k}=2$ and $A_{k}+B_{k}=2^{2 k}$, hence $A_{k}=2^{2 k-1}+1$ and thus $$ x_{2 k+2}=5^{k+1} A_{k}=10^{k+1} \\cdot 2^{k-2}+5^{k+1}>10^{k+1}, $$ since $k \\geqslant 2$. This implies that $y_{2 k+2}>10^{2 k+2}$ which contradicts the fact that $y_{2 k+2}$ contains $2 k+2$ digits. The desired result follows.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N4", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine whether there exists an infinite sequence of nonzero digits $a_{1}, a_{2}, a_{3}, \\ldots$ and a positive integer $N$ such that for every integer $k>N$, the number $\\overline{a_{k} a_{k-1} \\ldots a_{1}}$ is a perfect square. (Iran) Answer. No.", "solution": "Again, we assume that a sequence $a_{1}, a_{2}, a_{3}, \\ldots$ satisfies the problem conditions, introduce the numbers $x_{k}$ and $y_{k}$ as in the previous solution, and notice that $$ y_{k+1}-y_{k}=\\left(x_{k+1}-x_{k}\\right)\\left(x_{k+1}+x_{k}\\right)=10^{k} a_{k+1} $$ for all $k>N$. Consider any such $k$. Since $a_{1} \\neq 0$, the numbers $x_{k}$ and $x_{k+1}$ are not multiples of 10 , and therefore the numbers $p_{k}=x_{k+1}-x_{k}$ and $q_{k}=x_{k+1}+x_{k}$ cannot be simultaneously multiples of 20 , and hence one of them is not divisible either by 4 or by 5 . In view of (2), this means that the other one is divisible by either $5^{k}$ or by $2^{k-1}$. Notice also that $p_{k}$ and $q_{k}$ have the same parity, so both are even. On the other hand, we have $x_{k+1}^{2}=x_{k}^{2}+10^{k} a_{k+1} \\geqslant x_{k}^{2}+10^{k}>2 x_{k}^{2}$, so $x_{k+1} / x_{k}>\\sqrt{2}$, which implies that $$ 1<\\frac{q_{k}}{p_{k}}=1+\\frac{2}{x_{k+1} / x_{k}-1}<1+\\frac{2}{\\sqrt{2}-1}<6 . $$ Thus, if one of the numbers $p_{k}$ and $q_{k}$ is divisible by $5^{k}$, then we have $$ 10^{k+1}>10^{k} a_{k+1}=p_{k} q_{k} \\geqslant \\frac{\\left(5^{k}\\right)^{2}}{6} $$ and hence $(5 / 2)^{k}<60$ which is false for sufficiently large $k$. So, assuming that $k$ is large, we get that $2^{k-1}$ divides one of the numbers $p_{k}$ and $q_{k}$. Hence $$ \\left\\{p_{k}, q_{k}\\right\\}=\\left\\{2^{k-1} \\cdot 5^{r_{k}} b_{k}, 2 \\cdot 5^{k-r_{k}} c_{k}\\right\\} \\quad \\text { with nonnegative integers } b_{k}, c_{k}, r_{k} \\text { such that } b_{k} c_{k}=a_{k+1} \\text {. } $$ Moreover, from (3) we get $$ 6>\\frac{2^{k-1} \\cdot 5^{r_{k}} b_{k}}{2 \\cdot 5^{k-r_{k}} c_{k}} \\geqslant \\frac{1}{36} \\cdot\\left(\\frac{2}{5}\\right)^{k} \\cdot 5^{2 r_{k}} \\quad \\text { and } \\quad 6>\\frac{2 \\cdot 5^{k-r_{k}} c_{k}}{2^{k-1} \\cdot 5^{r_{k}} b_{k}} \\geqslant \\frac{4}{9} \\cdot\\left(\\frac{5}{2}\\right)^{k} \\cdot 5^{-2 r_{k}} $$ SO $$ \\alpha k+c_{1}c_{1} \\text {. } $$ Consequently, for $C=c_{2}-c_{1}+1-\\alpha>0$ we have $$ (k+1)-r_{k+1} \\leqslant k-r_{k}+C . $$ Next, we will use the following easy lemma. Lemma. Let $s$ be a positive integer. Then $5^{s+2^{s}} \\equiv 5^{s}\\left(\\bmod 10^{s}\\right)$. Proof. Euler's theorem gives $5^{2^{s}} \\equiv 1\\left(\\bmod 2^{s}\\right)$, so $5^{s+2^{s}}-5^{s}=5^{s}\\left(5^{2^{s}}-1\\right)$ is divisible by $2^{s}$ and $5^{s}$. Now, for every large $k$ we have $$ x_{k+1}=\\frac{p_{k}+q_{k}}{2}=5^{r_{k}} \\cdot 2^{k-2} b_{k}+5^{k-r_{k}} c_{k} \\equiv 5^{k-r_{k}} c_{k} \\quad\\left(\\bmod 10^{r_{k}}\\right) $$ since $r_{k} \\leqslant k-2$ by $(4)$; hence $y_{k+1} \\equiv 5^{2\\left(k-r_{k}\\right)} c_{k}^{2}\\left(\\bmod 10^{r_{k}}\\right)$. Let us consider some large integer $s$, and choose the minimal $k$ such that $2\\left(k-r_{k}\\right) \\geqslant s+2^{s}$; it exists by (4). Set $d=2\\left(k-r_{k}\\right)-\\left(s+2^{s}\\right)$. By (4) we have $2^{s}<2\\left(k-r_{k}\\right)<\\left(\\frac{2}{\\alpha}-2\\right) r_{k}-\\frac{2 c_{1}}{\\alpha}$; if $s$ is large this implies $r_{k}>s$, so (6) also holds modulo $10^{s}$. Then (6) and the lemma give $$ y_{k+1} \\equiv 5^{2\\left(k-r_{k}\\right)} c_{k}^{2}=5^{s+2^{s}} \\cdot 5^{d} c_{k}^{2} \\equiv 5^{s} \\cdot 5^{d} c_{k}^{2} \\quad\\left(\\bmod 10^{s}\\right) . $$ By (5) and the minimality of $k$ we have $d \\leqslant 2 C$, so $5^{d} c_{k}^{2} \\leqslant 5^{2 C} \\cdot 81=D$. Using $5^{4}<10^{3}$ we obtain $$ 5^{s} \\cdot 5^{d} c_{k}^{2}<10^{3 s / 4} D<10^{s-1} $$ for sufficiently large $s$. This, together with (7), shows that the sth digit from the right in $y_{k+1}$, which is $a_{s}$, is zero. This contradicts the problem condition.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N6", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine all functions $f: \\mathbb{Q} \\longrightarrow \\mathbb{Z}$ satisfying $$ f\\left(\\frac{f(x)+a}{b}\\right)=f\\left(\\frac{x+a}{b}\\right) $$ for all $x \\in \\mathbb{Q}, a \\in \\mathbb{Z}$, and $b \\in \\mathbb{Z}_{>0}$. (Here, $\\mathbb{Z}_{>0}$ denotes the set of positive integers.) (Israel) Answer. There are three kinds of such functions, which are: all constant functions, the floor function, and the ceiling function.", "solution": "I. We start by verifying that these functions do indeed satisfy (1). This is clear for all constant functions. Now consider any triple $(x, a, b) \\in \\mathbb{Q} \\times \\mathbb{Z} \\times \\mathbb{Z}_{>0}$ and set $$ q=\\left\\lfloor\\frac{x+a}{b}\\right\\rfloor . $$ This means that $q$ is an integer and $b q \\leqslant x+a0}$. According to the behaviour of the restriction of $f$ to the integers we distinguish two cases. Case 1: There is some $m \\in \\mathbb{Z}$ such that $f(m) \\neq m$. Write $f(m)=C$ and let $\\eta \\in\\{-1,+1\\}$ and $b$ denote the sign and absolute value of $f(m)-m$, respectively. Given any integer $r$, we may plug the triple $(m, r b-C, b)$ into (1), thus getting $f(r)=f(r-\\eta)$. Starting with $m$ and using induction in both directions, we deduce from this that the equation $f(r)=C$ holds for all integers $r$. Now any rational number $y$ can be written in the form $y=\\frac{p}{q}$ with $(p, q) \\in \\mathbb{Z} \\times \\mathbb{Z}_{>0}$, and substituting $(C-p, p-C, q)$ into (1) we get $f(y)=f(0)=C$. Thus $f$ is the constant function whose value is always $C$. Case 2: One has $f(m)=m$ for all integers $m$. Note that now the special case $b=1$ of (1) takes a particularly simple form, namely $$ f(x)+a=f(x+a) \\quad \\text { for all }(x, a) \\in \\mathbb{Q} \\times \\mathbb{Z} $$ Defining $f\\left(\\frac{1}{2}\\right)=\\omega$ we proceed in three steps. Step $A$. We show that $\\omega \\in\\{0,1\\}$. If $\\omega \\leqslant 0$, we may plug $\\left(\\frac{1}{2},-\\omega, 1-2 \\omega\\right)$ into (1), obtaining $0=f(0)=f\\left(\\frac{1}{2}\\right)=\\omega$. In the contrary case $\\omega \\geqslant 1$ we argue similarly using the triple $\\left(\\frac{1}{2}, \\omega-1,2 \\omega-1\\right)$. Step B. We show that $f(x)=\\omega$ for all rational numbers $x$ with $0b \\geqslant k+\\omega$, which is absurd. Similarly, $m \\geqslant r$ leads to $r a-m b0} $$ Now suppose first that $x$ is not an integer but can be written in the form $\\frac{p}{q}$ with $p \\in \\mathbb{Z}$ and $q \\in \\mathbb{Z}_{>0}$ both being odd. Let $d$ denote the multiplicative order of 2 modulo $q$ and let $m$ be any large integer. Plugging $n=d m$ into (6) and using (2) we get $$ f(x)=\\left[\\frac{f\\left(2^{d m} x\\right)}{2^{d m}}\\right]=\\left[\\frac{f(x)+\\left(2^{d m}-1\\right) x}{2^{d m}}\\right]=\\left[x+\\frac{f(x)-x}{2^{d m}}\\right] . $$ Since $x$ is not an integer, the square bracket function is continuous at $x$; hence as $m$ tends to infinity the above fomula gives $f(x)=[x]$. To complete the argument we just need to observe that if some $y \\in \\mathbb{Q}$ satisfies $f(y)=[y]$, then (5) yields $f\\left(\\frac{y}{2}\\right)=f\\left(\\frac{[y]}{2}\\right)=\\left[\\frac{[y]}{2}\\right]=\\left[\\frac{y}{2}\\right]$.", "metadata": {"resource_path": "IMO_SL/segmented/en-IMO2013SL.jsonl"}} {"year": "2013", "tier": "T0", "problem_label": "N6", "problem_type": "Number Theory", "exam": "IMO-SL", "problem": "Determine all functions $f: \\mathbb{Q} \\longrightarrow \\mathbb{Z}$ satisfying $$ f\\left(\\frac{f(x)+a}{b}\\right)=f\\left(\\frac{x+a}{b}\\right) $$ for all $x \\in \\mathbb{Q}, a \\in \\mathbb{Z}$, and $b \\in \\mathbb{Z}_{>0}$. (Here, $\\mathbb{Z}_{>0}$ denotes the set of positive integers.) (Israel) Answer. There are three kinds of such functions, which are: all constant functions, the floor function, and the ceiling function.", "solution": "Here we just give another argument for the second case of the above solution. Again we use equation (2). It follows that the set $S$ of all zeros of $f$ contains for each $x \\in \\mathbb{Q}$ exactly one term from the infinite sequence $\\ldots, x-2, x-1, x, x+1, x+2, \\ldots$. Next we claim that $$ \\text { if }(p, q) \\in \\mathbb{Z} \\times \\mathbb{Z}_{>0} \\text { and } \\frac{p}{q} \\in S \\text {, then } \\frac{p}{q+1} \\in S \\text { holds as well. } $$ To see this we just plug $\\left(\\frac{p}{q}, p, q+1\\right)$ into (1), thus getting $f\\left(\\frac{p}{q+1}\\right)=f\\left(\\frac{p}{q}\\right)=0$. From this we get that $$ \\text { if } x, y \\in \\mathbb{Q}, x>y>0 \\text {, and } x \\in S \\text {, then } y \\in S \\text {. } $$ Indeed, if we write $x=\\frac{p}{q}$ and $y=\\frac{r}{s}$ with $p, q, r, s \\in \\mathbb{Z}_{>0}$, then $p s>q r$ and (7) tells us $$ 0=f\\left(\\frac{p}{q}\\right)=f\\left(\\frac{p r}{q r}\\right)=f\\left(\\frac{p r}{q r+1}\\right)=\\ldots=f\\left(\\frac{p r}{p s}\\right)=f\\left(\\frac{r}{s}\\right) $$ Essentially the same argument also establishes that $$ \\text { if } x, y \\in \\mathbb{Q}, x2 m$. Such a pair is necessarily a child of $(c, d-c)$, and thus a descendant of some pair $\\left(c, d^{\\prime}\\right)$ with $m\\{(b+k a) \\nu\\}=\\left\\{\\left(b+k_{0} a\\right) \\nu\\right\\}+\\left(k-k_{0}\\right)\\{a \\nu\\}$ for all $k>k_{0}$, which is absurd. Similarly, one can prove that $S_{m}$ contains finitely many pairs $(c, d)$ with $c>2 m$, thus finitely many elements at all. We are now prepared for proving the following crucial lemma. Lemma. Consider any pair $(a, b)$ with $f(a, b) \\neq m$. Then the number $g(a, b)$ of its $m$-excellent descendants is equal to the number $h(a, b)$ of ways to represent the number $t=m-f(a, b)$ as $t=k a+\\ell b$ with $k$ and $\\ell$ being some nonnegative integers. Proof. We proceed by induction on the number $N$ of descendants of $(a, b)$ in $S_{m}$. If $N=0$ then clearly $g(a, b)=0$. Assume that $h(a, b)>0$; without loss of generality, we have $a \\leqslant b$. Then, clearly, $m-f(a, b) \\geqslant a$, so $f(a, b+a) \\leqslant f(a, b)+a \\leqslant m$ and $a \\leqslant m$, hence $(a, b+a) \\in S_{m}$ which is impossible. Thus in the base case we have $g(a, b)=h(a, b)=0$, as desired. Now let $N>0$. Assume that $f(a+b, b)=f(a, b)+b$ and $f(a, b+a)=f(a, b)$ (the other case is similar). If $f(a, b)+b \\neq m$, then by the induction hypothesis we have $$ g(a, b)=g(a+b, b)+g(a, b+a)=h(a+b, b)+h(a, b+a) $$ Notice that both pairs $(a+b, b)$ and $(a, b+a)$ are descendants of $(a, b)$ and thus each of them has strictly less descendants in $S_{m}$ than $(a, b)$ does. Next, each one of the $h(a+b, b)$ representations of $m-f(a+b, b)=m-b-f(a, b)$ as the sum $k^{\\prime}(a+b)+\\ell^{\\prime} b$ provides the representation $m-f(a, b)=k a+\\ell b$ with $k=k^{\\prime}1} d=\\sum_{d \\mid m} d $$ as required. Comment. Let us present a sketch of an outline of a different solution. The plan is to check that the number of excellent pairs does not depend on the (irrational) number $\\nu$, and to find this number for some appropriate value of $\\nu$. For that, we first introduce some geometrical language. We deal only with the excellent pairs $(a, b)$ with $a \\neq b$. Part I. Given an irrational positive $\\nu$, for every positive integer $n$ we introduce two integral points $F_{\\nu}(n)=$ $(n,\\lfloor n \\nu\\rfloor)$ and $C_{\\nu}(n)=(n,\\lceil n \\nu\\rceil)$ on the coordinate plane $O x y$. Then $(*)$ reads as $\\left[O F_{\\nu}(a) C_{\\nu}(b)\\right]=m / 2$; here $[\\cdot]$ stands for the signed area. Next, we rewrite in these terms the condition on a pair $(a, b)$ to be excellent. Let $\\ell_{\\nu}, \\ell_{\\nu}^{+}$, and $\\ell_{\\nu}^{-}$be the lines determined by the equations $y=\\nu x, y=\\nu x+1$, and $y=\\nu x-1$, respectively. a). Firstly, we deal with all excellent pairs $(a, b)$ with $aa$ is excellent exactly when $p_{\\nu}(a)$ lies between $b-a$ and $b$, and the point of $f_{\\nu}(a)$ with abscissa $b$ is integral (which means that this point is $C_{\\nu}(b)$ ). Notice now that, if $p_{\\nu}(a)>a$, then the number of excellent pairs of the form $(a, b)$ (with $b>a$ ) is $\\operatorname{gcd}(a,\\lfloor a \\nu\\rfloor)$. ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-67.jpg?height=396&width=422&top_left_y=1274&top_left_x=556) Figure 1 ![](https://cdn.mathpix.com/cropped/2024_04_17_e0914cb4f8055c731538g-67.jpg?height=431&width=442&top_left_y=1254&top_left_x=1123) Figure 2 b). Analogously, considering the pairs $(a, b)$ with $a>b$, we fix the value of $b$, introduce the line $c_{\\nu}(b)$ containing all the points $F$ with $\\left[O F C_{\\nu}(b)\\right]=m / 2$, assume that this line contains an integral point (which means $\\operatorname{gcd}(b,\\lceil b \\nu\\rceil) \\mid m$ ), and denote the common point of $c_{\\nu}(b)$ and $\\ell_{\\nu}^{-}$by $Q_{\\nu}(b)$, its abscissa being $q_{\\nu}(b)$. Similarly to the previous case, we obtain that the pair $(a, b)$ is excellent exactly when $q_{\\nu}(a)$ lies between $a-b$ and $a$, and the point of $c_{\\nu}(b)$ with abscissa $a$ is integral (see Fig. 2). Again, if $q_{\\nu}(b)>b$, then the number of excellent pairs of the form $(a, b)$ (with $a>b)$ is $\\operatorname{gcd}(b,\\lceil b \\nu\\rceil)$. Part II, sketchy. Having obtained such a description, one may check how the number of excellent pairs changes as $\\nu$ grows. (Having done that, one may find this number for one appropriate value of $\\nu$; for instance, it is relatively easy to make this calculation for $\\nu \\in\\left(1,1+\\frac{1}{m}\\right)$.) Consider, for the initial value of $\\nu$, some excellent pair $(a, t)$ with $a>t$. As $\\nu$ grows, this pair eventually stops being excellent; this happens when the point $Q_{\\nu}(t)$ passes through $F_{\\nu}(a)$. At the same moment, the pair $(a+t, t)$ becomes excellent instead. This process halts when the point $Q_{\\nu}(t)$ eventually disappears, i.e. when $\\nu$ passes through the ratio of the coordinates of the point $T=C_{\\nu}(t)$. Hence, the point $T$ afterwards is regarded as $F_{\\nu}(t)$. Thus, all the old excellent pairs of the form $(a, t)$ with $a>t$ disappear; on the other hand, the same number of excellent pairs with the first element being $t$ just appear. Similarly, if some pair $(t, b)$ with $t