# APMO 2024 - Problems and Solutions ## Problem 1 Let $A B C$ be an acute triangle. Let $D$ be a point on side $A B$ and $E$ be a point on side $A C$ such that lines $B C$ and $D E$ are parallel. Let $X$ be an interior point of $B C E D$. Suppose rays $D X$ and $E X$ meet side $B C$ at points $P$ and $Q$, respectively such that both $P$ and $Q$ lie between $B$ and $C$. Suppose that the circumcircles of triangles $B Q X$ and $C P X$ intersect at a point $Y \neq X$. Prove that points $A, X$, and $Y$ are collinear. ## Solution 1 ![](https://cdn.mathpix.com/cropped/2024_11_22_0826db6e0d83838635cfg-01.jpg?height=723&width=1003&top_left_y=678&top_left_x=492) Let $\ell$ be the radical axis of circles $B Q X$ and $C P X$. Since $X$ and $Y$ are on $\ell$, it is sufficient to show that $A$ is on $\ell$. Let line $A X$ intersect segments $B C$ and $D E$ at $Z$ and $Z^{\prime}$, respectively. Then it is sufficient to show that $Z$ is on $\ell$. By $B C \| D E$, we obtain $$ \frac{B Z}{Z C}=\frac{D Z^{\prime}}{Z^{\prime} E}=\frac{P Z}{Z Q}, $$ thus $B Z \cdot Q Z=C Z \cdot P Z$, which implies that $Z$ is on $\ell$. ## Solution 2 ![](https://cdn.mathpix.com/cropped/2024_11_22_0826db6e0d83838635cfg-01.jpg?height=721&width=998&top_left_y=1995&top_left_x=492) Let circle $B Q X$ intersect line $A B$ at a point $S$ which is different from $B$. Then $\angle D E X=$ $\angle X Q C=\angle B S X$, thus $S$ is on circle $D E X$. Similarly, let circle $C P X$ intersect line $A C$ at a point $T$ which is different from $C$. Then $T$ is on circle $D E X$. The power of $A$ with respect to the circle $D E X$ is $A S \cdot A D=A T \cdot A E$. Since $\frac{A D}{A B}=\frac{A E}{A C}, A S \cdot A B=A T \cdot A C$. Then $A$ is in the radical axis of circles $B Q X$ and $C P X$, which implies that three points $A, X$ and $Y$ are collinear. ## Solution 3 Consider the (direct) homothety that takes triangle $A D E$ to triangle $A B C$, and let $Y^{\prime}$ be the image of $Y$ under this homothety; in other words, let $Y^{\prime}$ be the intersection of the line parallel to $B Y$ through $D$ and the line parallel to $C Y$ through $E$. ![](https://cdn.mathpix.com/cropped/2024_11_22_0826db6e0d83838635cfg-02.jpg?height=732&width=1008&top_left_y=682&top_left_x=484) The homothety implies that $A, Y$, and $Y^{\prime}$ are collinear, and that $\angle D Y^{\prime} E=\angle B Y C$. Since $B Q X Y$ and $C P X Y$ are cyclic, $\angle D Y^{\prime} E=\angle B Y C=\angle B Y X+\angle X Y C=\angle X Q P+\angle X P Q=180^{\circ}-\angle P X Q=180^{\circ}-\angle D X E$, which implies that $D Y^{\prime} E X$ is cyclic. Therefore $$ \angle D Y^{\prime} X=\angle D E X=\angle P Q X=\angle B Y X $$ which, combined with $D Y^{\prime} \| B Y$, implies $Y^{\prime} X \| Y X$. This proves that $X, Y$, and $Y^{\prime}$ are collinear, which in turn shows that $A, X$, and $Y$ are collinear. ## Problem 2 Consider a $100 \times 100$ table, and identify the cell in row $a$ and column $b, 1 \leq a, b \leq 100$, with the ordered pair $(a, b)$. Let $k$ be an integer such that $51 \leq k \leq 99$. A $k$-knight is a piece that moves one cell vertically or horizontally and $k$ cells to the other direction; that is, it moves from $(a, b)$ to $(c, d)$ such that $(|a-c|,|b-d|)$ is either $(1, k)$ or $(k, 1)$. The $k$-knight starts at cell $(1,1)$, and performs several moves. A sequence of moves is a sequence of cells $\left(x_{0}, y_{0}\right)=(1,1)$, $\left(x_{1}, y_{1}\right),\left(x_{2}, y_{2}\right), \ldots,\left(x_{n}, y_{n}\right)$ such that, for all $i=1,2, \ldots, n, 1 \leq x_{i}, y_{i} \leq 100$ and the $k$-knight can move from $\left(x_{i-1}, y_{i-1}\right)$ to $\left(x_{i}, y_{i}\right)$. In this case, each cell $\left(x_{i}, y_{i}\right)$ is said to be reachable. For each $k$, find $L(k)$, the number of reachable cells. Answer: $L(k)=\left\{\begin{array}{ll}100^{2}-(2 k-100)^{2} & \text { if } k \text { is even } \\ \frac{100^{2}-(2 k-100)^{2}}{2} & \text { if } k \text { is odd }\end{array}\right.$. ## Solution Cell $(x, y)$ is directly reachable from another cell if and only if $x-k \geq 1$ or $x+k \leq 100$ or $y-k \geq 1$ or $y+k \leq 100$, that is, $x \geq k+1$ or $x \leq 100-k$ or $y \geq k+1$ or $y \leq 100-k(*)$. Therefore the cells $(x, y)$ for which $101-k \leq x \leq k$ and $101-k \leq y \leq k$ are unreachable. Let $S$ be this set of unreachable cells in this square, namely the square of cells $(x, y), 101-k \leq x, y \leq k$. If condition $(*)$ is valid for both $(x, y)$ and $(x \pm 2, y \pm 2)$ then one can move from $(x, y)$ to $(x \pm 2, y \pm 2)$, if they are both in the table, with two moves: either $x \leq 50$ or $x \geq 51$; the same is true for $y$. In the first case, move $(x, y) \rightarrow(x+k, y \pm 1) \rightarrow(x, y \pm 2)$ or $(x, y) \rightarrow$ $(x \pm 1, y+k) \rightarrow(x \pm 2, y)$. In the second case, move $(x, y) \rightarrow(x-k, y \pm 1) \rightarrow(x, y \pm 2)$ or $(x, y) \rightarrow(x \pm 1, y-k) \rightarrow(x \pm 2, y)$. Hence if the table is colored in two colors like a chessboard, if $k \leq 50$, cells with the same color as $(1,1)$ are reachable. Moreover, if $k$ is even, every other move changes the color of the occupied cell, and all cells are potentially reachable; otherwise, only cells with the same color as $(1,1)$ can be visited. Therefore, if $k$ is even then the reachable cells consists of all cells except the center square defined by $101-k \leq x \leq k$ and $101-k \leq y \leq k$, that is, $L(k)=100^{2}-(2 k-100)^{2}$; if $k$ is odd, then only half of the cells are reachable: the ones with the same color as $(1,1)$, and $L(k)=\frac{1}{2}\left(100^{2}-(2 k-100)^{2}\right)$. ## Problem 3 Let $n$ be a positive integer and $a_{1}, a_{2}, \ldots, a_{n}$ be positive real numbers. Prove that $$ \sum_{i=1}^{n} \frac{1}{2^{i}}\left(\frac{2}{1+a_{i}}\right)^{2^{i}} \geq \frac{2}{1+a_{1} a_{2} \ldots a_{n}}-\frac{1}{2^{n}} $$ ## Solution We first prove the following lemma: Lemma 1. For $k$ positive integer and $x, y>0$, $$ \left(\frac{2}{1+x}\right)^{2^{k}}+\left(\frac{2}{1+y}\right)^{2^{k}} \geq 2\left(\frac{2}{1+x y}\right)^{2^{k-1}} $$ The proof goes by induction. For $k=1$, we have $$ \left(\frac{2}{1+x}\right)^{2}+\left(\frac{2}{1+y}\right)^{2} \geq 2\left(\frac{2}{1+x y}\right) $$ which reduces to $$ x y(x-y)^{2}+(x y-1)^{2} \geq 0 . $$ For $k>1$, by the inequality $2\left(A^{2}+B^{2}\right) \geq(A+B)^{2}$ applied at $A=\left(\frac{2}{1+x}\right)^{2^{k-1}}$ and $B=\left(\frac{2}{1+y}\right)^{2^{k-1}}$ followed by the induction hypothesis $$ \begin{aligned} 2\left(\left(\frac{2}{1+x}\right)^{2^{k}}+\left(\frac{2}{1+y}\right)^{2^{k}}\right) & \geq\left(\left(\frac{2}{1+x}\right)^{2^{k-1}}+\left(\frac{2}{1+y}\right)^{2^{k-1}}\right)^{2} \\ & \geq\left(2\left(\frac{2}{1+x y}\right)^{2^{k-2}}\right)^{2}=4\left(\frac{2}{1+x y}\right)^{2^{k-1}} \end{aligned} $$ from which the lemma follows. The problem now can be deduced from summing the following applications of the lemma, multiplied by the appropriate factor: $$ \begin{aligned} \frac{1}{2^{n}}\left(\frac{2}{1+a_{n}}\right)^{2^{n}}+\frac{1}{2^{n}}\left(\frac{2}{1+1}\right)^{2^{n}} & \geq \frac{1}{2^{n-1}}\left(\frac{2}{1+a_{n} \cdot 1}\right)^{2^{n-1}} \\ \frac{1}{2^{n-1}}\left(\frac{2}{1+a_{n-1}}\right)^{2^{n-1}}+\frac{1}{2^{n-1}}\left(\frac{2}{1+a_{n}}\right)^{2^{n-1}} & \geq \frac{1}{2^{n-2}}\left(\frac{2}{1+a_{n-1} a_{n}}\right)^{2^{n-2}} \\ \frac{1}{2^{n-2}}\left(\frac{2}{1+a_{n-2}}\right)^{2^{n-2}}+\frac{1}{2^{n-2}}\left(\frac{2}{1+a_{n-1} a_{n}}\right)^{2^{n-2}} & \geq \frac{1}{2^{n-3}}\left(\frac{2}{1+a_{n-2} a_{n-1} a_{n}}\right)^{2^{n-3}} \\ \ldots & )^{2^{k}} \\ \frac{1}{2^{k}}\left(\frac{2}{1+a_{k}}\right)^{2^{k}}+\frac{1}{2^{k}}\left(\frac{2}{1+a_{k+1} \ldots a_{n-1} a_{n}}\right)^{2^{k-1}} & \geq \frac{1}{2^{k-1}}\left(\frac{2}{1+a_{k} \ldots a_{n-2} a_{n-1} a_{n}}\right)^{2} \\ \frac{1}{2}\left(\frac{2}{1+a_{1}}\right)^{2}+\frac{1}{2}\left(\frac{2}{1+a_{2} \ldots a_{n-1} a_{n}}\right)^{2} & \geq \frac{2}{1+a_{1} \ldots a_{n-2} a_{n-1} a_{n}} \end{aligned} $$ Comment: Equality occurs if and only if $a_{1}=a_{2}=\cdots=a_{n}=1$. Comment: The main motivation for the lemma is trying to "telescope" the sum $$ \frac{1}{2^{n}}+\sum_{i=1}^{n} \frac{1}{2^{i}}\left(\frac{2}{1+a_{i}}\right)^{2^{i}} $$ that is, $$ \frac{1}{2}\left(\frac{2}{1+a_{1}}\right)^{2}+\cdots+\frac{1}{2^{n-1}}\left(\frac{2}{1+a_{n-1}}\right)^{2^{n-1}}+\frac{1}{2^{n}}\left(\frac{2}{1+a_{n}}\right)^{2^{n}}+\frac{1}{2^{n}}\left(\frac{2}{1+1}\right)^{2^{n}} $$ to obtain an expression larger than or equal to $$ \frac{2}{1+a_{1} a_{2} \ldots a_{n}} $$ It seems reasonable to obtain a inequality that can be applied from right to left, decreases the exponent of the factor $1 / 2^{k}$ by 1 , and multiplies the variables in the denominator. Given that, the lemma is quite natural: $$ \frac{1}{2^{k}}\left(\frac{2}{1+x}\right)^{2^{k}}+\frac{1}{2^{k}}\left(\frac{2}{1+y}\right)^{2^{k}} \geq \frac{1}{2^{k-1}}\left(\frac{2}{1+x y}\right)^{2^{i-1}} $$ or $$ \left(\frac{2}{1+x}\right)^{2^{k}}+\left(\frac{2}{1+y}\right)^{2^{k}} \geq 2\left(\frac{2}{1+x y}\right)^{2^{k-1}} $$ ## Problem 4 Prove that for every positive integer $t$ there is a unique permutation $a_{0}, a_{1}, \ldots, a_{t-1}$ of $0,1, \ldots, t-$ 1 such that, for every $0 \leq i \leq t-1$, the binomial coefficient $\binom{t+i}{2 a_{i}}$ is odd and $2 a_{i} \neq t+i$. ## Solution We constantly make use of Kummer's theorem which, in particular, implies that $\binom{n}{k}$ is odd if and only if $k$ and $n-k$ have ones in different positions in binary. In other words, if $S(x)$ is the set of positions of the digits 1 of $x$ in binary (in which the digit multiplied by $2^{i}$ is in position $i),\binom{n}{k}$ is odd if and only if $S(k) \subseteq S(n)$. Moreover, if we set $k2 a_{i}$ and $\binom{t+i}{2 a_{i}}$ is odd for all $i, 0 \leq i \leq t-1$, $S\left(2 a_{i}\right) \subset S(t+i)$ with $\left|S\left(2 a_{i}\right)\right| \leq|S(t+i)|-1$. Since the sum of $\left|S\left(2 a_{i}\right)\right|$ is $t$ less than the sum of $|S(t+i)|$, and there are $t$ values of $i$, equality must occur, that is, $\left|S\left(2 a_{i}\right)\right|=|S(t+i)|-1$, which in conjunction with $S\left(2 a_{i}\right) \subset S(t+i)$ means that $t+i-2 a_{i}=2^{k_{i}}$ for every $i, 0 \leq i \leq t-1$, $k_{i} \in S(t+i)$ (more precisely, $\left\{k_{i}\right\}=S(t+i) \backslash S\left(2 a_{i}\right)$.) In particular, for $t+i$ odd, this means that $t+i-2 a_{i}=1$, because the only odd power of 2 is 1. Then $a_{i}=\frac{t+i-1}{2}$ for $t+i$ odd, which takes up all the numbers greater than or equal to $\frac{t-1}{2}$. Now we need to distribute the numbers that are smaller than $\frac{t-1}{2}$ (call these numbers small). If $t+i$ is even then by Lucas' Theorem $\binom{t+i}{2 a_{i}} \equiv\binom{\frac{t+i}{2}}{a_{i}}(\bmod 2)$, so we pair numbers from $\lceil t / 2\rceil$ to $t-1$ (call these numbers big) with the small numbers. Say that a set $A$ is paired with another set $B$ whenever $|A|=|B|$ and there exists a bijection $\pi: A \rightarrow B$ such that $S(a) \subset S(\pi(a))$ and $|S(a)|=|S(\pi(a))|-1$; we also say that $a$ and $\pi(a)$ are paired. We prove by induction in $t$ that $A_{t}=\{0,1,2, \ldots,\lfloor t / 2\rfloor-1\}$ (the set of small numbers) and $B_{t}=\{\lceil t / 2\rceil, \ldots, t-2, t-1\}$ (the set of big numbers) can be uniquely paired. The claim is immediate for $t=1$ and $t=2$. For $t>2$, there is exactly one power of two in $B_{t}$, since $t / 2 \leq 2^{a}