{"year": "1991", "tier": "T1", "problem_label": "1", "problem_type": null, "exam": "APMO", "problem": "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": "Let $R$ be the midpoint of $A C$; so $B R$ is a median and contains the centroid $G$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_5347031840c93d3f0aefg-1.jpg?height=558&width=647&top_left_y=663&top_left_x=673)\n\nIt 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$.\nNow look at the similarity between triangles $Q B C$ and $Q G X$ :\n\n$$\n\\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 .\n$$\n\nFinally, 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}$ ).", "metadata": {"resource_path": "APMO/segmented/en-apmo1991_sol.jsonl", "problem_match": "# Problem 1", "solution_match": "# Solution 1"}} {"year": "1991", "tier": "T1", "problem_label": "1", "problem_type": null, "exam": "APMO", "problem": "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": "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$.\n![](https://cdn.mathpix.com/cropped/2024_11_22_5347031840c93d3f0aefg-1.jpg?height=558&width=647&top_left_y=1971&top_left_x=676)\n\nDue 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$.\n\nNow 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$.\nThe 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.", "metadata": {"resource_path": "APMO/segmented/en-apmo1991_sol.jsonl", "problem_match": "# Problem 1", "solution_match": "# Solution 2"}} {"year": "1991", "tier": "T1", "problem_label": "2", "problem_type": null, "exam": "APMO", "problem": "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,\n\n$$\nf(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}\n$$\n\nTherefore, $f$ is not a bijection modulo $n$.\nIf $n=2^{a}$, then\n\n$$\nf(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} .\n$$\n\nand\n\n$$\nf(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)\n$$\n\nIf $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,\n\n$$\n(*) \\Longleftrightarrow x+y+1 \\equiv 0 \\quad\\left(\\bmod 2^{a+1}\\right)\n$$\n\nHowever, $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 .", "metadata": {"resource_path": "APMO/segmented/en-apmo1991_sol.jsonl", "problem_match": "# Problem 4", "solution_match": "# Solution 1"}} {"year": "1991", "tier": "T1", "problem_label": "4", "problem_type": null, "exam": "APMO", "problem": "During a break, $n$ children at school sit in a circle around their teacher to play a game. The teacher walks clockwise close to the children and hands out candies to some of them according to the following rule. He selects one child and gives him a candy, then he skips the next child and gives a candy to the next one, then he skips 2 and gives a candy to the next one, then he skips 3, and soon. Determine the values of $n$ for which eventually, perhaps after many rounds, all children will have at least one candy each.\n\nAnswer: All powers of 2 .", "solution": "We give a full description of $a_{n}$, the size of the range of $f$.\nSince 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}}$.\nRefer to the first solution to check the case $p=2: a_{2^{\\alpha}}=2^{\\alpha}$.\nFor an odd prime $p$,\n\n$$\nf(x)=\\frac{x(x+1)}{2}=\\frac{(2 x+1)^{2}-1}{8}\n$$\n\nand 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}$.\nLet $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\n\n$$\na_{p^{\\alpha}}=\\frac{p-1}{2} \\cdot p^{\\alpha-1}+a_{p^{\\alpha}-2} .\n$$\n\nSince $a_{p}=\\frac{p-1}{2}+1$ and $a_{p^{2}}=\\frac{p-1}{2} \\cdot p+1$, telescoping yields\n\n$$\na_{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\n$$\n\nand\n\n$$\na_{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\n$$\n\nNow the problem is immediate: if $n$ is divisible by an odd prime $p, a_{p^{\\alpha}}