# APMO 1991 - Problems and Solutions ## Problem 1 Let $G$ be the centroid of triangle $A B C$ and $M$ be the midpoint of $B C$. Let $X$ be on $A B$ and $Y$ on $A C$ such that the points $X, Y$, and $G$ are collinear and $X Y$ and $B C$ are parallel. Suppose that $X C$ and $G B$ intersect at $Q$ and $Y B$ and $G C$ intersect at $P$. Show that triangle $M P Q$ is similar to triangle $A B C$. ## Solution 1 Let $R$ be the midpoint of $A C$; so $B R$ is a median and contains the centroid $G$. ![](https://cdn.mathpix.com/cropped/2024_11_22_5347031840c93d3f0aefg-1.jpg?height=558&width=647&top_left_y=663&top_left_x=673) It is well known that $\frac{A G}{A M}=\frac{2}{3}$; thus the ratio of the similarity between $A X Y$ and $A B C$ is $\frac{2}{3}$. Hence $G X=\frac{1}{2} X Y=\frac{1}{3} B C$. Now look at the similarity between triangles $Q B C$ and $Q G X$ : $$ \frac{Q G}{Q B}=\frac{G X}{B C}=\frac{1}{3} \Longrightarrow Q B=3 Q G \Longrightarrow Q B=\frac{3}{4} B G=\frac{3}{4} \cdot \frac{2}{3} B R=\frac{1}{2} B R . $$ Finally, since $\frac{B M}{B C}=\frac{B Q}{B R}, M Q$ is a midline in $B C R$. Therefore $M Q=\frac{1}{2} C R=\frac{1}{4} A C$ and $M Q \| A C$. Similarly, $M P=\frac{1}{4} A B$ and $M P \| A B$. This is sufficient to establish that $M P Q$ and $A B C$ are similar (with similarity ratio $\frac{1}{4}$ ). ## Solution 2 Let $S$ and $R$ be the midpoints of $A B$ and $A C$, respectively. Since $G$ is the centroid, it lies in the medians $B R$ and $C S$. ![](https://cdn.mathpix.com/cropped/2024_11_22_5347031840c93d3f0aefg-1.jpg?height=558&width=647&top_left_y=1971&top_left_x=676) Due to the similarity between triangles $Q B C$ and $Q G X$ (which is true because $G X \| B C$ ), there is an inverse homothety with center $Q$ and ratio $-\frac{X G}{B C}=\frac{X Y}{2 B C}$ that takes $B$ to $G$ and $C$ to $X$. This homothety takes the midpoint $M$ of $B C$ to the midpoint $K$ of $G X$. Now consider the homothety that takes $B$ to $X$ and $C$ to $G$. This new homothety, with ratio $\frac{X Y}{2 B C}$, also takes $M$ to $K$. Hence lines $B X$ (which contains side $A B$ ), $C G$ (which contains the median $C S$ ), and $M K$ have a common point, which is $S$. Thus $Q$ lies on midline $M S$. The same reasoning proves that $P$ lies on midline $M R$. Since all homothety ratios are the same, $\frac{M Q}{M S}=\frac{M P}{M R}$, which shows that $M P Q$ is similar to $M R S$, which in turn is similar to $A B C$, and we are done. ## Problem 2 Suppose there are 997 points given in a plane. If every two points are joined by a line segment with its midpoint coloured in red, show that there are at least 1991 red points in the plane. Can you find a special case with exactly 1991 red points? ## Solution Embed the points in the cartesian plane such that no two points have the same $y$-coordinate. Let $P_{1}, P_{2}, \ldots, P_{997}$ be the points and $y_{1}1$ odd, look at $f(x)$ modulo $m$. Since $m$ is odd, $m|f(x) \Longleftrightarrow m| x(x+1)$. Then, for instance, $f(x) \equiv 0(\bmod m)$ for $x=0$ and $x=m-1$. This means that $f(x)$ is not a bijection modulo $m$, and there exists $t$ such that $f(x) \not \equiv t(\bmod m)$ for all $x$. By the Chinese Remainder Theorem, $$ f(x) \equiv t \quad(\bmod n) \Longleftrightarrow \begin{cases}f(x) \equiv t & \left(\bmod 2^{a}\right) \\ f(x) \equiv t & (\bmod m)\end{cases} $$ Therefore, $f$ is not a bijection modulo $n$. If $n=2^{a}$, then $$ f(x)-f(y)=\frac{1}{2}(x(x+1)-y(y+1))=\frac{1}{2}\left(x^{2}-y^{2}+x-y\right)=\frac{(x-y)(x+y+1)}{2} . $$ and $$ f(x) \equiv f(y) \quad\left(\bmod 2^{a}\right) \Longleftrightarrow(x-y)(x+y+1) \equiv 0 \quad\left(\bmod 2^{a+1}\right) $$ If $x$ and $y$ have the same parity, $x+y+1$ is odd and $(*)$ is equivalent to $x \equiv y\left(\bmod 2^{a+1}\right)$. If $x$ and $y$ have different parity, $$ (*) \Longleftrightarrow x+y+1 \equiv 0 \quad\left(\bmod 2^{a+1}\right) $$ However, $1 \leq x+y+1 \leq 2\left(2^{a}-1\right)+1=2^{a+1}-1$, so $x+y+1$ is not a multiple of $2^{a+1}$. Therefore $f$ is a bijection if $n$ is a power of 2 . ## Solution 2 We give a full description of $a_{n}$, the size of the range of $f$. Since congruences modulo $n$ are defined, via Chinese Remainder Theorem, by congruences modulo $p^{\alpha}$ for all prime divisors $p$ of $n$ and $\alpha$ being the number of factors $p$ in the factorization of $n, a_{n}=\prod_{p^{\alpha} \| n} a_{p^{\alpha}}$. Refer to the first solution to check the case $p=2: a_{2^{\alpha}}=2^{\alpha}$. For an odd prime $p$, $$ f(x)=\frac{x(x+1)}{2}=\frac{(2 x+1)^{2}-1}{8} $$ and since $p$ is odd, there is a bijection between the range of $f$ and the quadratic residues modulo $p^{\alpha}$, namely $t \mapsto 8 t+1$. So $a_{p^{\alpha}}$ is the number of quadratic residues modulo $p^{\alpha}$. Let $g$ be a primitive root of $p^{\alpha}$. Then there are $\frac{1}{2} \phi\left(p^{\alpha}\right)=\frac{p-1}{2} \cdot p^{\alpha-1}$ quadratic residues that are coprime with $p: 1, g^{2}, g^{4}, \ldots, g^{\phi\left(p^{n}\right)-2}$. If $p$ divides a quadratic residue $k p$, that is, $x^{2} \equiv k p$ $\left(\bmod p^{\alpha}\right), \alpha \geq 2$, then $p$ divides $x$ and, therefore, also $k$. Hence $p^{2}$ divides this quadratic residue, and these quadratic residues are $p^{2}$ times each quadratic residue of $p^{\alpha-2}$. Thus $$ a_{p^{\alpha}}=\frac{p-1}{2} \cdot p^{\alpha-1}+a_{p^{\alpha}-2} . $$ Since $a_{p}=\frac{p-1}{2}+1$ and $a_{p^{2}}=\frac{p-1}{2} \cdot p+1$, telescoping yields $$ a_{p^{2 t}}=\frac{p-1}{2}\left(p^{2 t-1}+p^{2 t-3}+\cdots+p\right)+1=\frac{p\left(p^{2 t}-1\right)}{2(p+1)}+1 $$ and $$ a_{p^{2 t-1}}=\frac{p-1}{2}\left(p^{2 t-2}+p^{2 t-4}+\cdots+1\right)+1=\frac{p^{2 t}-1}{2(p+1)}+1 $$ Now the problem is immediate: if $n$ is divisible by an odd prime $p, a_{p^{\alpha}}