{"year": "2024", "tier": "T3", "problem_label": "1", "problem_type": null, "exam": "INMO", "problem": "In triangle $A B C$ with $C A=C B$, point $E$ lies on the circumcircle of $A B C$ such that $\\angle E C B=90^{\\circ}$. The line through $E$ parallel to $C B$ intersects $C A$ in $F$ and $A B$ in $G$. Prove that the centre of the circumcircle of triangle $E G B$ lies on the circumcircle of triangle $E C F$.", "solution": "![](https://cdn.mathpix.com/cropped/2024_06_05_f7139847dc7ac8d9c391g-1.jpg?height=731&width=1554&top_left_y=834&top_left_x=271)\n\nWe have $F G=F A$ since $F G$ is parallel to $B C$. But also $\\triangle G A E$ is a right angle triangle. Thus, if $F^{\\prime}$ is the midpoint of $G E$, then $\\angle G A F=\\angle F G A=\\angle F^{\\prime} G A=\\angle G A F^{\\prime}$ which implies $F \\equiv F^{\\prime}$. Thus, $F$ is the midpoint of $G E$.\n\nIf $O$ is the circumcenter of $\\triangle E B G$, then\n\n$$\n\\angle F O E=\\angle G B E=\\angle A B E=\\angle A C E=\\angle F C E\n$$\n\nThus, we get $\\angle F O E=\\angle F C E$ as desired.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 1.", "solution_match": "## Solution 1."}} {"year": "2024", "tier": "T3", "problem_label": "1", "problem_type": null, "exam": "INMO", "problem": "In triangle $A B C$ with $C A=C B$, point $E$ lies on the circumcircle of $A B C$ such that $\\angle E C B=90^{\\circ}$. The line through $E$ parallel to $C B$ intersects $C A$ in $F$ and $A B$ in $G$. Prove that the centre of the circumcircle of triangle $E G B$ lies on the circumcircle of triangle $E C F$.", "solution": "( $\\angle B C A$ acute case) Let $O_{1}$ be the circumcenter of $\\triangle A B C, O$ be the circumcenter of $\\triangle E B G$ and $\\omega$ be the circumcircle of $\\triangle E C F$.\n\nFirst, show that $F$ is the midpoint of $E G$ as in Solution 1. Next, we show that $O_{1}$ lies on $\\omega$. This follows from\n\n$$\n\\angle E O_{1} C=2 \\angle E B C=2 \\angle O_{1} B C=2 \\angle B C O_{1}=\\angle B C A=\\angle E F C\n$$\n\nNow, $O_{1}$ is the midpoint of $E B$ and $F$ is the midpoint of $E G$, therefore the homothety at $E$ with ratio $1 / 2$ takes $\\triangle E G B$ to $\\triangle E F O_{1}$. Thus, it takes $O$, the circumcenter of $\\triangle E G B$, to the circumcenter of $\\triangle E F O_{1}$, thus proving that the midpoint of $E O$ is the center of $\\omega$. This immediately implies that $O$ lies on $\\omega$.\n\n## Remark.\n\n- There are two configurations possible in the above problem, one for $C$ acute and one for obtuse. One may replace all the angles in the above solutions by directed angles to obtain a solution which remains invariant in all configurations.\n- There is a direct solution by first proving that $O$ is on $B C$ by calculating $\\angle E B O$ and then proving that $\\angle O C F=\\angle O E F$. However, this needs more care for handling both configurations.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 1.", "solution_match": "\nSolution 2."}} {"year": "2024", "tier": "T3", "problem_label": "2", "problem_type": null, "exam": "INMO", "problem": "All the squares of a $2024 \\times 2024$ board are coloured white. In one move, Mohit can select one row or column whose every square is white, choose exactly 1000 squares in this row or column, and colour all of them red. Find the maximum number of squares that Mohit can colour red in a finite number of moves.", "solution": "Let $n=2024$ and $k=1000$. We claim that the maximum number of squares that can be coloured in this way is $k(2 n-k)$, which evaluates to 3048000 .\n\nIndeed, call a row/column bad if it has at least one red square. After the first move, there are exactly $k+1$ bad rows and columns: if a row was picked, then that row and the $k$ columns corresponding to the chosen squares are all bad. Any subsequent move increases the number of bad rows/columns by at least 1 . Since there are only $2 n$ rows and columns, we can make at most $2 n-(k+1)$ moves after the first one, and so at most $2 n-k$ moves can be made in total. Thus we can have at most $k(2 n-k)$ red squares.\n\nTo prove this is achievable, let's choose each of the $n$ columns in the first $n$ moves, and colour the top $k$ cells in these columns. Then, the bottom $n-k$ rows are still uncoloured, so we can make $n-k$ more moves, colouring $k(n+n-k)$ cells in total.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 2.", "solution_match": "\nSolution."}} {"year": "2024", "tier": "T3", "problem_label": "3", "problem_type": null, "exam": "INMO", "problem": "Let $p$ be an odd prime number and $a, b, c$ be integers so that the integers\n\n$$\na^{2023}+b^{2023}, \\quad b^{2024}+c^{2024}, \\quad c^{2025}+a^{2025}\n$$\n\nare all divisible by $p$. Prove that $p$ divides each of $a, b$, and $c$.", "solution": "Set $k=2023$. If one of $a, b, c$ is divisible by $p$, then all of them are. Indeed, for example, if $p \\mid a$, then $p \\mid a^{k}+b^{k}$ implies $p \\mid b$, and then $p \\mid b^{k+1}+c^{k+1}$ implies $p \\mid c$. The other cases follow similarly.\n\nSo for the sake of contradiction assume none of $a, b, c$ is divisible by $p$. Then\n\n$$\na^{k(k+2)} \\equiv\\left(a^{k}\\right)^{k+2} \\equiv\\left(-b^{k}\\right)^{k+2} \\equiv-b^{k(k+2)} \\quad(\\bmod p)\n$$\n\nand\n\n$$\na^{k(k+2)} \\equiv\\left(a^{k+2}\\right)^{k}=\\left(-c^{k+2}\\right)^{k} \\equiv-c^{k(k+2)} \\quad(\\bmod p)\n$$\n\nSo $b^{k(k+2)} \\equiv c^{k(k+2)}(\\bmod p)$. But then\n\n$$\nc^{k(k+2)} \\cdot c \\equiv c^{(k+1)^{2}} \\equiv\\left(-b^{k+1}\\right)^{k+1} \\equiv b^{(k+1)^{2}} \\equiv b^{k(k+2)} \\cdot b \\equiv c^{k(k+2)} \\cdot b \\quad(\\bmod p)\n$$\n\nwhich forces $b \\equiv c(\\bmod p)$. Thus\n\n$$\n0 \\equiv b^{k+1}+c^{k+1}=2 b^{k+1} \\quad(\\bmod p)\n$$\n\nimplying $p \\mid b$, a contradiction. Thus the proof is complete.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution 1."}} {"year": "2024", "tier": "T3", "problem_label": "3", "problem_type": null, "exam": "INMO", "problem": "Let $p$ be an odd prime number and $a, b, c$ be integers so that the integers\n\n$$\na^{2023}+b^{2023}, \\quad b^{2024}+c^{2024}, \\quad c^{2025}+a^{2025}\n$$\n\nare all divisible by $p$. Prove that $p$ divides each of $a, b$, and $c$.", "solution": "As before, we may assume $p$ divides none of $a, b$, and $c$ and set $k=2023$. Then\n\n$$\n\\begin{aligned}\na^{k} & \\equiv-b^{k} \\quad(\\bmod p) \\\\\nb^{k+1} & \\equiv-c^{k+1} \\quad(\\bmod p) \\\\\nc^{k+2} & \\equiv-a^{k+2} \\quad(\\bmod p)\n\\end{aligned}\n$$\n\nand multiplying these three equations yields $a^{k} b^{k+1} c^{k+2} \\equiv-b^{k} c^{k+1} a^{k+2}(\\bmod p)$. By cancelling the factor $a^{k} b^{k} c^{k+1}$, we get $a^{2} \\equiv-b c(\\bmod p)$. Now\n\n$$\np \\mid a^{k}+b^{k} \\Longrightarrow a^{4 k} \\equiv b^{4 k} \\quad(\\bmod p) \\Longrightarrow c^{2 k} \\equiv b^{2 k} \\quad(\\bmod p)\n$$\n\nso\n\n$$\np \\mid b^{k+1}+c^{k+1} \\Longrightarrow b^{2(k+1)} \\equiv c^{2(k+1)} \\quad(\\bmod p) \\Longrightarrow b^{2} \\equiv c^{2} \\quad(\\bmod p)\n$$\n\nso either $b \\equiv c(\\bmod p)$ or $b \\equiv-c(\\bmod p)$. In the latter case, $a^{2} \\equiv c^{2}(\\bmod p)$ so $a \\equiv c$ $(\\bmod p)$ or $a \\equiv-c(\\bmod p)$. In any case, two out of $\\{a, b, c\\}$ are the same $\\bmod p$, so one of the equations gives $p \\mid 2 x^{y}$ where $x \\in\\{a, b, c\\}$ and $y \\in\\{k, k+1, k+2\\}$, hence $p$ odd implies $p \\mid x$ so $p \\mid a b c$, the desired contradiction.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution 2."}} {"year": "2024", "tier": "T3", "problem_label": "3", "problem_type": null, "exam": "INMO", "problem": "Let $p$ be an odd prime number and $a, b, c$ be integers so that the integers\n\n$$\na^{2023}+b^{2023}, \\quad b^{2024}+c^{2024}, \\quad c^{2025}+a^{2025}\n$$\n\nare all divisible by $p$. Prove that $p$ divides each of $a, b$, and $c$.", "solution": "We have\n\n$$\n\\begin{aligned}\na^{2023} & \\equiv-b^{2023} \\quad(\\bmod p) \\\\\nb^{2024} & \\equiv-c^{2024} \\quad(\\bmod p) \\\\\nc^{2025} & \\equiv-a^{2025} \\quad(\\bmod p)\n\\end{aligned}\n$$\n\nThus,\n\n$$\n\\begin{aligned}\na^{2023 \\cdot 2024 \\cdot 2025} & \\equiv b^{2023 \\cdot 2024 \\cdot 2025} \\quad(\\bmod p) \\quad \\text { by }(1) \\\\\n& \\equiv-c^{2023 \\cdot 2024 \\cdot 2025} \\quad(\\bmod p) \\quad \\text { by }(2) \\\\\n& \\equiv-a^{2023 \\cdot 2024 \\cdot 2025} \\quad(\\bmod p) \\quad \\text { by }(3)\n\\end{aligned}\n$$\n\nThus, $p \\mid 2 \\cdot a^{2023 \\cdot 2024 \\cdot 2025}$ and hence $p \\mid a$ since $p$ is odd. Now, finish as before.\n\n## Remark.\n\n- Solution 3 is the shortest, and seems to crucially relies on 2024 being even but it can be modified to always work. In particular, instead of raising to power $k(k+1)(k+2)$, we raise it to $\\operatorname{lcm}(k, k+1, k+2)$. This method even works if we have a longer chain of equations and more variables i.e. $p \\mid a_{i}^{k+i}+a_{i+1}^{k+i}$ for all $i$ in $0, \\cdots, n-1$ and $a_{n}=a_{0}$.\n- There are other possible approaches: one using primitive roots and another using orders. These proceed by considering the highest power of 2 dividing the exponents of the primitive root or order of $a b^{-1} \\bmod p$ respectively.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 3.", "solution_match": "\nSolution 3."}} {"year": "2024", "tier": "T3", "problem_label": "4", "problem_type": null, "exam": "INMO", "problem": "A finite set $S$ of positive integers is called cardinal if $S$ contains the integer $|S|$, where $|S|$ denotes the number of distinct elements in $S$. Let $f$ be a function from the set of positive integers to itself, such that for any cardinal set $S$, the set $f(S)$ is also cardinal. Here $f(S)$ denotes the set of all integers that can be expressed as $f(a)$ for some $a$ in $S$. Find all possible values of $f(2024)$.\n\nNote: As an example, $\\{1,3,5\\}$ is a cardinal set because it has exactly 3 distinct elements, and the set contains 3 .", "solution": "The possible values are 1, 2, and 2024 .\n\nConstruction. The function $f(x)=1$ for all $x \\in \\mathbb{N}$ works. Also, $f(x)=1$ for all $x \\neq 2024$ and $f(2024)=2$, works. Finally, $f(x)=x$ for all $x \\in \\mathbb{N}$ works as well.\n\nIt remains to show these are the only possible values for $f(2024)$.\n\nProof. Denote $\\operatorname{Im}(f)=\\{f(x) \\mid x \\in \\mathbb{N}\\}$. The cardinal set $\\{1\\}$ gives $f(1)=1$. Consider the following two cases:\n\n- $\\operatorname{Im}(f)$ is unbounded. Fix any $n \\in \\mathbb{N}$, with $n>1$. Pick $n-1$ distinct integers $k_{1}, \\ldots, k_{n-1}$ such that $f\\left(k_{i}\\right) \\notin\\{n, f(n)\\}$ and $f\\left(k_{i}\\right)$ are all pairwise distinct, for $1 \\leq i0$.\n\nClaim. For any integer $a$ satisfying $1 \\leq a \\leq M$, if there are infinitely many integers $n \\in \\mathbb{N}$ such that $f(n)=a$, then $a=1$.\n\nProof. Let $b>1$ be one of the integers with $f(b)=a$. Consider $b-1$ other integers $c_{1}, \\ldots, c_{b-1}$, such that $f\\left(c_{i}\\right)=a$ for $1 \\leq i1$ such that for all $n \\geq N, f(n)=1$. Now for every $1A C-A B$. But this is clear because $K C B A$ is an isosceles trapezium, so $A B=K C$, and then triangle inequality on $\\triangle K A C$ to get $K A+K C>A C$.\n\nThus, $U \\in \\overline{A K}$, and similarly $V \\in \\overline{B L}, W \\in \\overline{C M}$. We claim that for any $U, V, W$ on the segments $A K, B L, C M$ respectively, the circumradius of $\\triangle U V W$ is less than or equal to the radius of $\\Gamma$.\n\nNow let $X, Y$ be two fixed points on the same side of a line $\\ell$. Fix a side of $\\overleftarrow{X Y}$, and let $Z$ be a variable point on $\\ell$ which always remains on this fixed side of $\\overleftarrow{X Y}$. Then the circumradius of $\\triangle X Y Z$ is minimized at the unique point $Z_{0}$ (on this fixed side of $\\overleftrightarrow{X Y}$ ) for which the circumcircle of $\\triangle X Y Z_{0}$ is tangent to $\\ell$ and it is a increasing function as one goes further away from this unique point $Z_{0}$. Thus, the maximum circumradius of $\\triangle U V W$ is achieved only if $U \\in\\{A, K\\}, V \\in\\{B, L\\}, W \\in\\{C, M\\}$. For each of these, the circumradius is the radius of $\\Gamma$, hence we are done.\n\n## Remark.\n\n- The conclusion of Solution 1 used the fact that in a triangle $A B C$ with incentre $I$ and inradius $r$, and circumcentre $O$ and circumradius $R$, we have the inequality $R \\geq 2 r$. This is called Euler's Inequality. The standard proof is that $0 \\leq O I^{2}=$ $R^{2}-\\operatorname{Pow}(I,(O, R))=R^{2}-2 R r$. The last equality holds as $\\operatorname{Pow}(I,(O, R))=I A \\cdot I M$ where $M$ is the midpoint of minor arc $\\widehat{B C}$ in the circumcircle of $A B C$, and because $I A=\\frac{r}{\\sin \\frac{A}{2}}$ and $I M=M B=\\frac{a}{2 \\cos \\frac{A}{2}}=\\frac{2 R \\sin A}{2 \\cos \\frac{A}{2}}=2 R \\sin \\frac{A}{2}$ by using \"the trident lemma\" and the double-angle sine formulas.\n- After proving that the circumradius is independent of $P$, one can take $P=I$, for which $P_{1}$ is easily seen to be the point such that $D_{1}$ is the midpoint of $I P_{1}$. Now we again finish by Euler's Inequality.", "metadata": {"resource_path": "INMO/segmented/en-INMO_2024_final_solutions.jsonl", "problem_match": "\nProblem 5.", "solution_match": "\nSolution 2."}} {"year": "2024", "tier": "T3", "problem_label": "6", "problem_type": null, "exam": "INMO", "problem": "For each positive integer $n \\geq 3$, define $A_{n}$ and $B_{n}$ as\n\n$$\n\\begin{gathered}\nA_{n}=\\sqrt{n^{2}+1}+\\sqrt{n^{2}+3}+\\cdots+\\sqrt{n^{2}+2 n-1} \\\\\nB_{n}=\\sqrt{n^{2}+2}+\\sqrt{n^{2}+4}+\\cdots+\\sqrt{n^{2}+2 n}\n\\end{gathered}\n$$\n\nDetermine all positive integers $n \\geq 3$ for which $\\left\\lfloor A_{n}\\right\\rfloor=\\left\\lfloor B_{n}\\right\\rfloor$.\n\nNote. For any real number $x,\\lfloor x\\rfloor$ denotes the largest integer $N$ such that $N \\leq x$.", "solution": "Let $M=n^{2}+\\frac{1}{2} n$.\n\nLemma 1. $B_{n}-A_{n}<\\frac{1}{2}$.\n\nIndeed,\n\n$$\n\\begin{array}{r}\n\\left(B_{n}-A_{n}\\right)=\\sum_{k=1}^{n}\\left(\\sqrt{n^{2}+2 k}-\\sqrt{n^{2}+2 k-1}\\right)=\\sum_{k=1}^{n} \\frac{1}{\\sqrt{n^{2}+2 k}+\\sqrt{n^{2}+2 k-1}}<\\sum_{k=1}^{n} \\frac{1}{2 n} \\\\\n=\\frac{n}{2 n}=\\frac{1}{2}\n\\end{array}\n$$\n\nproving the lemma.\n\nLemma 2. $A_{n}\\sum_{k=1}^{n} \\frac{2 k}{(n+1)+n} \\\\\n=\\frac{n(n+1)}{2 n+1}>\\frac{n}{2}\n\\end{array}\n$$\n\nas $\\sum_{k=1}^{n}(2 k)=n(n+1)$, so $B_{n}-n^{2}>\\frac{n}{2}$ hence $B_{n}>M$, as desired.\n\nBy Lemma 2, we see that $A_{n}$ and $B_{n}$ are positive real numbers containing $M$ between them. When $n$ is even, $M$ is an integer. This implies $\\left\\lfloor A_{n}\\right\\rfloor