{"year": "2006", "tier": "T1", "problem_label": "1", "problem_type": null, "exam": "APMO", "problem": "Let $n$ be a positive integer. Find the largest nonnegative real number $f(n)$ (depending on $n$ ) with the following property: whenever $a_{1}, a_{2}, \\ldots, a_{n}$ are real numbers such that $a_{1}+a_{2}+\\cdots+a_{n}$ is an integer, there exists some $i$ such that $\\left|a_{i}-\\frac{1}{2}\\right| \\geq f(n)$.", "solution": "The answer is\n\n$$\nf(n)=\\left\\{\\begin{array}{cl}\n0 & \\text { if } n \\text { is even, } \\\\\n\\frac{1}{2 n} & \\text { if } n \\text { is odd. }\n\\end{array}\\right.\n$$\n\nFirst, assume that $n$ is even. If $a_{i}=\\frac{1}{2}$ for all $i$, then the sum $a_{1}+a_{2}+\\cdots+a_{n}$ is an integer. Since $\\left|a_{i}-\\frac{1}{2}\\right|=0$ for all $i$, we may conclude $f(n)=0$ for any even $n$.\n\nNow assume that $n$ is odd. Suppose that $\\left|a_{i}-\\frac{1}{2}\\right|<\\frac{1}{2 n}$ for all $1 \\leq i \\leq n$. Then, since $\\sum_{i=1}^{n} a_{i}$ is an integer,\n\n$$\n\\frac{1}{2} \\leq\\left|\\sum_{i=1}^{n} a_{i}-\\frac{n}{2}\\right| \\leq \\sum_{i=1}^{n}\\left|a_{i}-\\frac{1}{2}\\right|<\\frac{1}{2 n} \\cdot n=\\frac{1}{2}\n$$\n\na contradiction. Thus $\\left|a_{i}-\\frac{1}{2}\\right| \\geq \\frac{1}{2 n}$ for some $i$, as required. On the other hand, putting $n=2 m+1$ and $a_{i}=\\frac{m}{2 m+1}$ for all $i$ gives $\\sum a_{i}=m$, while\n\n$$\n\\left|a_{i}-\\frac{1}{2}\\right|=\\frac{1}{2}-\\frac{m}{2 m+1}=\\frac{1}{2(2 m+1)}=\\frac{1}{2 n}\n$$\n\nfor all $i$. Therefore, $f(n)=\\frac{1}{2 n}$ is the best possible for any odd $n$.", "metadata": {"resource_path": "APMO/segmented/en-apmo2006_sol.jsonl", "problem_match": "\nProblem 1.", "solution_match": "(Solution)"}} {"year": "2006", "tier": "T1", "problem_label": "2", "problem_type": null, "exam": "APMO", "problem": "Prove that every positive integer can be written as a finite sum of distinct integral powers of the golden mean $\\tau=\\frac{1+\\sqrt{5}}{2}$. Here, an integral power of $\\tau$ is of the form $\\tau^{i}$, where $i$ is an integer (not necessarily positive).", "solution": "We will prove this statement by induction using the equality\n\n$$\n\\tau^{2}=\\tau+1\n$$\n\nIf $n=1$, then $1=\\tau^{0}$. Suppose that $n-1$ can be written as a finite sum of integral powers of $\\tau$, say\n\n$$\nn-1=\\sum_{i=-k}^{k} a_{i} \\tau^{i}\n$$\n\nwhere $a_{i} \\in\\{0,1\\}$ and $n \\geq 2$. We will write (1) as\n\n$$\nn-1=a_{k} \\cdots a_{1} a_{0} \\cdot a_{-1} a_{-2} \\cdots a_{-k}\n$$\n\nFor example,\n\n$$\n1=1.0=0.11=0.1011=0.101011\n$$\n\nFirstly, we will prove that we may assume that in (2) we have $a_{i} a_{i+1}=0$ for all $i$ with $-k \\leq i \\leq k-1$. Indeed, if we have several occurrences of 11 , then we take the leftmost such occurrence. Since we may assume that it is preceded by a 0 , we can replace 011 with 100 using the identity $\\tau^{i+1}+\\tau^{i}=\\tau^{i+2}$. By doing so repeatedly, if necessary, we will eliminate all occurrences of two 1's standing together. Now we have the representation\n\n$$\nn-1=\\sum_{i=-K}^{K} b_{i} \\tau^{i}\n$$\n\nwhere $b_{i} \\in\\{0,1\\}$ and $b_{i} b_{i+1}=0$.\nIf $b_{0}=0$ in (3), then we just add $1=\\tau^{0}$ to both sides of (3) and we are done.\nSuppose now that there is 1 in the unit position of (3), that is $b_{0}=1$. If there are two 0 's to the right of it, i.e.\n\n$$\nn-1=\\cdots 1.00 \\cdots\n$$\n\nthen we can replace 1.00 with 0.11 because $1=\\tau^{-1}+\\tau^{-2}$, and we are done because we obtain 0 in the unit position. Thus we may assume that\n\n$$\nn-1=\\cdots 1.010 \\cdots\n$$\n\nAgain, if we have $n-1=\\cdots 1.0100 \\cdots$, we may rewrite it as\n\n$$\nn-1=\\cdots 1.0100 \\cdots=\\cdots 1.0011 \\cdots=\\cdots 0.1111 \\cdots\n$$\n\nand obtain 0 in the unit position. Therefore, we may assume that\n\n$$\nn-1=\\cdots 1.01010 \\cdots\n$$\n\nSince the number of 1's is finite, eventually we will obtain an occurrence of 100 at the end, i.e.\n\n$$\nn-1=\\cdots 1.01010 \\cdots 100\n$$\n\nThen we can shift all 1's to the right to obtain 0 in the unit position, i.e.\n\n$$\nn-1=\\cdots 0.11 \\cdots 11\n$$\n\nand we are done.", "metadata": {"resource_path": "APMO/segmented/en-apmo2006_sol.jsonl", "problem_match": "\nProblem 2.", "solution_match": "(Solution)"}} {"year": "2006", "tier": "T1", "problem_label": "3", "problem_type": null, "exam": "APMO", "problem": "Let $p \\geq 5$ be a prime and let $r$ be the number of ways of placing $p$ checkers on a $p \\times p$ checkerboard so that not all checkers are in the same row (but they may all be in the same column). Show that $r$ is divisible by $p^{5}$. Here, we assume that all the checkers are identical.", "solution": "Note that $r=\\binom{p^{2}}{p}-p$. Hence, it suffices to show that\n\n$$\n\\left(p^{2}-1\\right)\\left(p^{2}-2\\right) \\cdots\\left(p^{2}-(p-1)\\right)-(p-1)!\\equiv 0 \\quad\\left(\\bmod p^{4}\\right)\n$$\n\nNow, let\n\n$$\nf(x):=(x-1)(x-2) \\cdots(x-(p-1))=x^{p-1}+s_{p-2} x^{p-2}+\\cdots+s_{1} x+s_{0} .\n$$\n\nThen the congruence equation (1) is same as $f\\left(p^{2}\\right)-s_{0} \\equiv 0\\left(\\bmod p^{4}\\right)$. Therefore, it suffices to show that $s_{1} p^{2} \\equiv 0\\left(\\bmod p^{4}\\right)$ or $s_{1} \\equiv 0\\left(\\bmod p^{2}\\right)$.\n\nSince $a^{p-1} \\equiv 1(\\bmod p)$ for all $1 \\leq a \\leq p-1$, we can factor\n\n$$\nx^{p-1}-1 \\equiv(x-1)(x-2) \\cdots(x-(p-1)) \\quad(\\bmod p)\n$$\n\nComparing the coefficients of the left hand side of (3) with those of the right hand side of (2), we obtain $p \\mid s_{i}$ for all $1 \\leq i \\leq p-2$ and $s_{0} \\equiv-1(\\bmod p)$. On the other hand, plugging $p$ for $x$ in (2), we get\n\n$$\nf(p)=(p-1)!=s_{0}=p^{p-1}+s_{p-2} p^{p-2}+\\cdots+s_{1} p+s_{0}\n$$\n\nwhich implies\n\n$$\np^{p-1}+s_{p-2} p^{p-2}+\\cdots+s_{2} p^{2}=-s_{1} p\n$$\n\nSince $p \\geq 5, p \\mid s_{2}$ and hence $s_{1} \\equiv 0\\left(\\bmod p^{2}\\right)$ as desired.", "metadata": {"resource_path": "APMO/segmented/en-apmo2006_sol.jsonl", "problem_match": "\nProblem 3.", "solution_match": "(Solution)"}} {"year": "2006", "tier": "T1", "problem_label": "4", "problem_type": null, "exam": "APMO", "problem": "Let $A, B$ be two distinct points on a given circle $O$ and let $P$ be the midpoint of the line segment $A B$. Let $O_{1}$ be the circle tangent to the line $A B$ at $P$ and tangent to the circle $O$. Let $\\ell$ be the tangent line, different from the line $A B$, to $O_{1}$ passing through $A$. Let $C$ be the intersection point, different from $A$, of $\\ell$ and $O$. Let $Q$ be the midpoint of the line segment $B C$ and $O_{2}$ be the circle tangent to the line $B C$ at $Q$ and tangent to the line segment $A C$. Prove that the circle $O_{2}$ is tangent to the circle $O$.", "solution": "Let $S$ be the tangent point of the circles $O$ and $O_{1}$ and let $T$ be the intersection point, different from $S$, of the circle $O$ and the line $S P$. Let $X$ be the tangent point of $\\ell$ to $O_{1}$ and let $M$ be the midpoint of the line segment $X P$. Since $\\angle T B P=\\angle A S P$, the triangle $T B P$ is similar to the triangle $A S P$. Therefore,\n\n$$\n\\frac{P T}{P B}=\\frac{P A}{P S}\n$$\n\nSince the line $\\ell$ is tangent to the circle $O_{1}$ at $X$, we have\n\n$$\n\\angle S P X=90^{\\circ}-\\angle X S P=90^{\\circ}-\\angle A P M=\\angle P A M\n$$\n\nwhich implies that the triangle $P A M$ is similar to the triangle $S P X$. Consequently,\n\n$$\n\\frac{X S}{X P}=\\frac{M P}{M A}=\\frac{X P}{2 M A} \\quad \\text { and } \\quad \\frac{X P}{P S}=\\frac{M A}{A P}\n$$\n\nFrom this and the above observation follows\n\n$$\n\\frac{X S}{X P} \\cdot \\frac{P T}{P B}=\\frac{X P}{2 M A} \\cdot \\frac{P A}{P S}=\\frac{X P}{2 M A} \\cdot \\frac{M A}{X P}=\\frac{1}{2} .\n$$\n\nLet $A^{\\prime}$ be the intersection point of the circle $O$ and the perpendicular bisector of the chord $B C$ such that $A, A^{\\prime}$ are on the same side of the line $B C$, and $N$ be the intersection point of the lines $A^{\\prime} Q$ and $C T$. Since\n\n$$\n\\angle N C Q=\\angle T C B=\\angle T C A=\\angle T B A=\\angle T B P\n$$\n\nand\n\n$$\n\\angle C A^{\\prime} Q=\\frac{\\angle C A B}{2}=\\frac{\\angle X A P}{2}=\\angle P A M=\\angle S P X,\n$$\n\nthe triangle $N C Q$ is similar to the triangle $T B P$ and the triangle $C A^{\\prime} Q$ is similar to the triangle $S P X$. Therefore\n\n$$\n\\frac{Q N}{Q C}=\\frac{P T}{P B} \\quad \\text { and } \\quad \\frac{Q C}{Q A^{\\prime}}=\\frac{X S}{X P} .\n$$\n\nand hence $Q A^{\\prime}=2 Q N$ by (1). This implies that $N$ is the midpoint of the line segment $Q A^{\\prime}$. Let the circle $O_{2}$ touch the line segment $A C$ at $Y$. Since\n\n$$\n\\angle A C N=\\angle A C T=\\angle B C T=\\angle Q C N\n$$\n\nand $|C Y|=|C Q|$, the triangles $Y C N$ and $Q C N$ are congruent and hence $N Y \\perp A C$ and $N Y=N Q=N A^{\\prime}$. Therefore, $N$ is the center of the circle $O_{2}$, which completes the proof.\n\nRemark: Analytic solutions are possible: For example, one can prove for a triangle $A B C$ inscribed in a circle $O$ that $A B=k(2+2 t), A C=k(1+2 t), B C=k(1+4 t)$ for some positive numbers $k, t$ if and only if there exists a circle $O_{1}$ such that $O_{1}$ is tangent to the side $A B$ at its midpoint, the side $A C$ and the circle $O$.\n\nOne obtains $A B=k^{\\prime}\\left(1+4 t^{\\prime}\\right), A C=k^{\\prime}\\left(1+2 t^{\\prime}\\right), B C=k^{\\prime}\\left(2+2 t^{\\prime}\\right)$ by substituting $t=1 / 4 t^{\\prime}$ and $k=2 k^{\\prime} t^{\\prime}$. So, there exists a circle $O_{2}$ such that $O_{2}$ is tangent to the side $B C$ at its midpoint, the side $A C$ and the circle $O$.\n\nIn the above, $t=\\tan ^{2} \\alpha$ and $k=\\frac{4 R \\tan \\alpha}{\\left(1+\\tan ^{2} \\alpha\\right)\\left(1+4 \\tan ^{2} \\alpha\\right)}$, where $R$ is the radius of $O$ and $\\angle A=2 \\alpha$. Furthermore, $t^{\\prime}=\\tan ^{2} \\gamma$ and $k^{\\prime}=\\frac{4 R \\tan \\gamma}{\\left(1+\\tan ^{2} \\gamma\\right)\\left(1+4 \\tan ^{2} \\gamma\\right)}$, where $\\angle C=2 \\gamma$. Observe that $\\sqrt{t t^{\\prime}}=\\tan \\alpha \\cdot \\tan \\gamma=\\frac{X S}{X P} \\cdot \\frac{P T}{P B}=\\frac{1}{2}$, which implies $t t^{\\prime}=\\frac{1}{4}$. It is now routine easy to check that $k=2 k^{\\prime} t^{\\prime}$.", "metadata": {"resource_path": "APMO/segmented/en-apmo2006_sol.jsonl", "problem_match": "\nProblem 4.", "solution_match": "(Solution)"}} {"year": "2006", "tier": "T1", "problem_label": "5", "problem_type": null, "exam": "APMO", "problem": "In a circus, there are $n$ clowns who dress and paint themselves up using a selection of 12 distinct colours. Each clown is required to use at least five different colours. One day, the ringmaster of the circus orders that no two clowns have exactly the same set\nof colours and no more than 20 clowns may use any one particular colour. Find the largest number $n$ of clowns so as to make the ringmaster's order possible.", "solution": "Let $C$ be the set of $n$ clowns. Label the colours $1,2,3, \\ldots, 12$. For each $i=1,2, \\ldots, 12$, let $E_{i}$ denote the set of clowns who use colour $i$. For each subset $S$ of $\\{1,2, \\ldots, 12\\}$, let $E_{S}$ be the set of clowns who use exactly those colours in $S$. Since $S \\neq S^{\\prime}$ implies $E_{S} \\cap E_{S^{\\prime}}=\\emptyset$, we have\n\n$$\n\\sum_{S}\\left|E_{S}\\right|=|C|=n\n$$\n\nwhere $S$ runs over all subsets of $\\{1,2, \\ldots, 12\\}$. Now for each $i$,\n\n$$\nE_{S} \\subseteq E_{i} \\quad \\text { if and only if } \\quad i \\in S\n$$\n\nand hence\n\n$$\n\\left|E_{i}\\right|=\\sum_{i \\in S}\\left|E_{S}\\right|\n$$\n\nBy assumption, we know that $\\left|E_{i}\\right| \\leq 20$ and that if $E_{S} \\neq \\emptyset$, then $|S| \\geq 5$. From this we obtain\n\n$$\n20 \\times 12 \\geq \\sum_{i=1}^{12}\\left|E_{i}\\right|=\\sum_{i=1}^{12}\\left(\\sum_{i \\in S}\\left|E_{S}\\right|\\right) \\geq 5 \\sum_{S}\\left|E_{S}\\right|=5 n\n$$\n\nTherefore $n \\leq 48$.\nNow, define a sequence $\\left\\{c_{i}\\right\\}_{i=1}^{52}$ of colours in the following way:\n$1234|5678| 9101112 \\mid$\n$4123|8567| 1291011 \\mid$\n$3412|7856| 1112910 \\mid$\n$2341|6785| 1011129 \\mid 1234$\n\nThe first row lists $c_{1}, \\ldots, c_{12}$ in order, the second row lists $c_{13}, \\ldots, c_{24}$ in order, the third row lists $c_{25}, \\ldots, c_{36}$ in order, and finally the last row lists $c_{37}, \\ldots, c_{52}$ in order. For each $j, 1 \\leq j \\leq 48$, assign colours $c_{j}, c_{j+1}, c_{j+2}, c_{j+3}, c_{j+4}$ to the $j$-th clown. It is easy to check that this assignment satisfies all conditions given above. So, 48 is the largest for $n$.\n\nRemark: The fact that $n \\leq 48$ can be obtained in a much simpler observation that\n\n$$\n5 n \\leq 12 \\times 20=240\n$$\n\nThere are many other ways of constructing 48 distinct sets consisting of 5 colours. For example, consider the sets\n\n$$\n\\begin{array}{cccc}\n\\{1,2,3,4,5,6\\}, & \\{3,4,5,6,7,8\\}, & \\{5,6,7,8,9,10\\}, & \\{7,8,9,10,11,12\\}, \\\\\n\\{9,10,11,12,1,2\\}, & \\{11,12,1,2,3,4\\}, & \\{1,2,5,6,9,10\\}, & \\{3,4,7,8,11,12\\} .\n\\end{array}\n$$\n\nEach of the above 8 sets has 6 distinct subsets consisting of exactly 5 colours. It is easy to check that the 48 subsets obtained in this manner are all distinct.", "metadata": {"resource_path": "APMO/segmented/en-apmo2006_sol.jsonl", "problem_match": "\nProblem 5.", "solution_match": "(Solution)"}}