{"year": "2001", "tier": "T1", "problem_label": "1", "problem_type": null, "problem": "", "solution": "Let us prove that $n=S(n)+9 T(n)$ proceding by induction over the number of digits of $n$.\n1 POINT.\nIf $n$ has one digit then the result is trivial. Suppose that $n=S(n)+9 T(n)$ is true for any integer $n$ of $k$ digits. Now any number $m$ of $k+1$ digits can be writen as $m=10 n+a$ where $n$ is a number of $k$ digits. Obviously,\n\n$$\n\\begin{aligned}\nT(m)=n+T(n) & \\text { and }(m)=S(n)+a \\\\\n& 2 \\text { POINTS (1 POINT for each of the last equalities). }\n\\end{aligned}\n$$\n\nTherefore\n\n$$\n\\begin{aligned}\nm-S(m) & =10 n+a-S(n)-a \\\\\n& =10 n-S(n) \\\\\n& =(n-S(n))+9 n \\\\\n& =9 T(n)+9 n \\\\\n& =9 T(m)\n\\end{aligned}\n$$\n\nas required.\n\\& POINTS.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 1.", "solution_match": "# First solution."}} {"year": "2001", "tier": "T1", "problem_label": "1", "problem_type": null, "problem": "", "solution": "Let $n=\\overline{a_{k} a_{k-1} \\ldots a_{1} a_{0}}=10^{k} a_{k}+10^{k-1} a_{k-1}+\\ldots+10 a_{1}+a_{0}$, where $a_{k}, a_{k-1}, \\ldots, a_{1}, a_{0}$ are digits. The stumps of $n$ are\n\n$$\n\\begin{aligned}\n\\overline{a_{k} a_{k-1} \\cdots a_{1}} & =10^{k-1} a_{k}+10^{k-2} a_{k-1}+\\ldots+10 a_{2}+a_{1} \\\\\n\\overline{a_{k} a_{k-1} \\cdots a_{2}} & =10^{k-2} a_{k}+10^{k-3} a_{k-1}+\\ldots+a_{2} \\\\\n& \\vdots \\\\\n\\overline{a_{k} a_{k-1}} & =10 a_{k}+a_{k-1} \\\\\na_{k} & =a_{k} .\n\\end{aligned}\n$$\n\n1 POINT.\nSince $10^{m-1}+10^{m-2}+\\ldots+10+1=\\frac{10^{m}-1}{9}$ then the sum of all stumps of $n$ is\n\n$$\nT(n)=\\frac{10^{k}-1}{9} a_{k}+\\frac{10^{k-1}-1}{9} a_{k-1}+\\ldots+\\frac{10-1}{9} a_{1}\n$$\n\n3 POINTS.\nand hence\n\n$$\n\\begin{aligned}\n9 T(n) & =10^{k} a_{k}+10^{k-1} a_{k-1}+\\ldots+10 a_{1}+a_{0}-\\left(a_{k}+a_{k-1}+\\ldots+a_{1}+a_{0}\\right) \\\\\n& =n-S(n) .\n\\end{aligned}\n$$\n\nConsequently $n=S(n)+9 T(n)$.\n3 POINTS.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 1.", "solution_match": "# Second solution."}} {"year": "2001", "tier": "T1", "problem_label": "1", "problem_type": null, "problem": "", "solution": "Let $k(n)$ be the number of zeros at the end of the decimal representation of $n$ or, which is the same, the largest power of 10 which divides $n$. The the following two observations are straightforward:\n\n1. $S(n)=S(n-1)-(9 k(n)-1)$,\n2. $k(1)+k(2)+\\ldots+k(n)=T(n)$.\n\n4 POINTS (2 POINTS for each of these equalities).\nThen summing the following equalities up\n\n$$\n\\begin{aligned}\nS(1) & =S(0)-(9 k(1)-1), \\\\\nS(2) & =S(1)-(9 k(2)-1), \\\\\n& \\vdots \\\\\nS(n-1) & =S(n-2)-(9 k(n-1)-1) \\\\\nS(n) & =S(n-1)-(9 k(n-1)-1)\n\\end{aligned}\n$$\n\nwe get $S(n)=n-(k(1)+k(2)+\\ldots+k(n))=n-9 T(n)$.\n3 POINT for concluding.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 1.", "solution_match": "# Third Solution."}} {"year": "2001", "tier": "T1", "problem_label": "2", "problem_type": null, "problem": "", "solution": "This is equivalent to find the largest positive integer solution of the equation\n\n$$\n\\left\\lfloor\\frac{N}{3}\\right\\rfloor=\\left\\lfloor\\frac{N}{5}\\right\\rfloor+\\left\\lfloor\\frac{N}{7}\\right\\rfloor-\\left\\lfloor\\frac{N}{35}\\right\\rfloor\n$$\n\nor\n\n$$\n\\left\\lfloor\\frac{N}{3}\\right\\rfloor+\\left\\lfloor\\frac{N}{35}\\right\\rfloor=\\left\\lfloor\\frac{N}{5}\\right\\rfloor+\\left\\lfloor\\left\\lfloor\\frac{N}{7}\\right\\rfloor .\\right.\n$$\n\n1 POINT for equality (1).\nFor $N$ to be a solution of (1) it is necessary that\n\n$$\n\\frac{N-2}{3}+\\frac{N-34}{35} \\leq \\frac{N}{5}+\\frac{N}{7}\n$$\n\nwhich simplifies to $N \\leq 86$.\n1 POINTS for finding that $N \\leq 86$.\nHowever, if $N \\geq 70$ then because $N \\leq 86$, (1) implies that\n\n$$\n\\frac{N-2}{3}+\\frac{N-16}{35} \\leq \\frac{N}{5}+\\frac{N}{7}\n$$\n\nwhich simplifies to $N \\leq 59$, contradicting $N \\geq 70$. it follows that $N$ must be at most 69 .\n4 POINTS for finding that $N \\leq 69$.\nChecking (1) for $N \\leq 69$ we find that\n\n$$\n\\begin{array}{llll}\n\\text { when } \\quad N=69, & \\text { (1) is } & 23+1=13+9, & \\text { false } \\\\\n\\text { when } N=68,67,66, & \\text { (1) is } 22+1=13+9, & \\text { false } \\\\\n\\text { when } N=65, & \\text { (1) is } 21+1=13+9, & \\text { true. }\n\\end{array}\n$$\n\nThus the answer is $N=65$.\n1 POINT for concluding.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 2.", "solution_match": "# First Solution."}} {"year": "2001", "tier": "T1", "problem_label": "2", "problem_type": null, "problem": "", "solution": "This is equivalent to find the largest positive integer solution of the equation\n\n$$\n\\left\\lfloor\\frac{N}{3}\\right\\rfloor=\\left\\lfloor\\frac{N}{5}\\right\\rfloor+\\left\\lfloor\\frac{N}{7}\\right\\rfloor-\\left\\lfloor\\frac{N}{35}\\right\\rfloor,\n$$\n\nLet $N=35 k+r(0 \\leq r<35)$ be a solution of (1). Then (1) can be writen as\n\n$$\n\\left\\lfloor\\frac{35 k+r}{3}\\right\\rfloor=11 k+\\left\\lfloor\\frac{r}{5}\\right\\rfloor+\\left\\lfloor\\frac{r}{7}\\right\\rfloor .\n$$\n\nNow $\\quad \\frac{35 k+r-2}{3} \\leq\\left\\lfloor\\frac{35 k+r}{3}\\right\\rfloor,\\left\\lfloor\\frac{r}{5}\\right\\rfloor \\leq \\frac{r}{5}$ and $\\left\\lfloor\\frac{r}{7}\\right\\rfloor \\leq \\frac{\\tau}{7}$. Therefore r\n\n$$\n\\frac{35 k+r-2}{3} \\leq 11 k+\\frac{r}{5}+\\frac{r}{7}=\\frac{12 r}{35}\n$$\n\nwhich implies that $70 k \\leq r+70<35+70=105$. Then $k \\leq 1$ or equivalently $N \\leq 69$.\n4 POINTS for finding that $N \\leq 69$.\nAs in the first solution, checking (1) for $N \\leq 69$ we find the answer $N=65$.\n\n## 1 POINT for concluding.\n\n## Remark.\n\n2 POINTS can be given for finding a good upper bound for example $N \\leq 100$ (in the first solution we found $n \\leq 86$ ). 6 POINTS for proving that $N \\leq 69$.\n1 POINT can be given for the correct answer.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 2.", "solution_match": "# Second solution."}} {"year": "2001", "tier": "T1", "problem_label": "3", "problem_type": null, "problem": "", "solution": "It is easy to see that the intersection $S \\cap T$ has $2 n$ sides only if the sides of $S \\cap T$ alternate: blue, red, blue, red, etc.\n\n## 1 POINT.\n\nDenote the vertices of $S \\cap T$ clockwise as $C_{1} D_{1} C_{2} D_{2} \\ldots C_{n} D_{n}$ so that the sides $C_{1} D_{1}, C_{2} D_{2}, \\ldots C_{n} D_{n}$ are blue. Denote the vertices of $S$ by $A_{1}, A_{2}, \\ldots, A_{n}$ and the vertices of $T$ by $B_{1}, B_{2}, \\ldots, B_{n}$ so that $C_{1} D_{1} \\subset B_{1} B_{2}, \\ldots, C_{n} D_{n} \\subset B_{n} B_{1}$ and $D_{n} C_{1} \\subset A_{1} A_{2}, \\ldots, D_{n-1} C_{n} \\subset A_{n} A_{1}$.\nIt is easy to check that all the triangles $D_{n} B_{1} C_{1}, D_{1} B_{2} C_{2}, \\ldots, D_{n-1} B_{n} C_{n}$ and $C_{1} A_{2} D_{1}, C_{2} A_{3} D_{2}, \\ldots, C_{n} A_{1} D_{n}$ are similar.\n\n## 1 POINT.\n\nTherefore,\n\n$$\n\\begin{gathered}\n\\frac{D_{n} C_{1}}{D_{n} B_{1}+B_{1} C_{1}}=\\frac{D_{1} C_{2}}{D_{1} B_{2}+B_{2} C_{2}}=\\ldots=\\frac{D_{n-1} C_{n}}{D_{n-1} B_{n}+B_{n} C_{n}}= \\\\\n=\\frac{C_{1} D_{1}}{C_{1} A_{2}+A_{2} D_{1}}=\\frac{C_{1} D_{2}}{C_{2} A_{3}+A_{3} D_{2}}=\\ldots=\\frac{C_{n} D_{n}}{C_{n} A_{1}+A_{1} D_{n}}\n\\end{gathered}\n$$\n\n1 POINT.\nHence,\n\n$$\n\\frac{D_{n} C_{1}+D_{1} C_{2}+\\ldots+D_{n-1} C_{n}}{D_{n} B_{1}+B_{1} C_{1}+D_{1} B_{2}+B_{2} C_{2}+\\ldots+D_{n-1} B_{n}+B_{n} C_{n}}=\n$$\n\n$$\n=\\frac{C_{1} D_{1}+C_{1} D_{2}+\\ldots+C_{n} D_{n}}{C_{1} A_{2}+A_{2} D_{1}+C_{2} A_{3}+A_{3} D_{2}+\\ldots+C_{n} A_{1}+A_{1} D_{n}}\n$$\n\nLet $x=D_{n} C_{1}+D_{1} C_{2}+\\ldots+D_{n-1} C_{n}$ and $y=C_{1} D_{1}+C_{1} \\tilde{D}_{2}+\\ldots+C_{n} D_{n}$ then $x$ is the sum of the blue sides of $S \\cap T$ and $y$ is the sum of the red sides. If $a$ is the length of a side of $S$ (or $T$ ), then the equality (1) can be written in the following form\n\n$$\n\\frac{x}{n a-y}=\\frac{y}{n a-x} .\n$$\n\nIt follows that\n\n$$\n\\begin{aligned}\nn a x-x^{2} & =n a y-y^{2} \\\\\nn a(x-y) & =(x+y)(x-y) \\\\\n(n a-x-y)(x-y) & =0\n\\end{aligned}\n$$\n\nSince the perimeter $x+y$ of $S \\cap T$ is strictly less than the perimeter $n a$ of $S$ or $T, n a-x-y>0$. We obtain $x-y=0$ and $x=y$ q.e.d.\n\n4 POINTS for concluding.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 3.", "solution_match": "# First Solution."}} {"year": "2001", "tier": "T1", "problem_label": "3", "problem_type": null, "problem": "", "solution": "As in the first solution, $S \\cap T$ has $2 n$ sides only if the sides of $S \\cap T$ alternate.\n1 POINT.\nLabel the vertices of the red $n$-gon $R_{1}, R_{2}, \\ldots R_{n}$ and the vertices of the blue $n$-gon $B_{1}, B_{2}, \\ldots, B_{n}$. Place the $n$-gons so that the vertices are in the following clockwise order: $B_{1}, R_{1}, B_{2}, R_{2}, \\ldots, B_{n}, R_{n}$. Each of these vertices together with the opposite side determines a triangle and all these triangles are similar.\n\n1 POINT.\nFor each $i=1, \\ldots, n$, we let the lengths of the sides of the triangle determined by $B_{i}$ be $b_{i}, c_{i}, d_{i}$ in the clockwise order where $b_{i}$ is the side opposite $B_{i}$ such that $b_{i} / b_{1}=c_{i} / c_{1}=d_{i} / d_{1}=p_{i}$. We also let the lengths of the sides of the triangle determined by $R_{i}$ be $r_{i}, s_{i}, t_{i}$ in the counter clockwise order such that $r_{i} / b_{1}=s_{i} / c_{1}=t_{i} / d_{1}=q_{i}$.\n\n1 POINT.\nThen we want to prove that $b_{1}+\\cdots+b_{n}=r_{1}+\\cdots+r_{n}$ or $b_{1}\\left(p_{1}+\\cdots+p_{n}\\right)=b_{1}\\left(q_{1}+\\cdots+q_{n}\\right)$, where $p_{1}=1$, or $p=q$ where $p=\\left(p_{1}+\\cdots+p_{n}\\right), q=\\left(q_{1}+\\cdots+q_{n}\\right)$. The perimeter of the blue $n$-gon is $c_{1}+d_{1}+r_{1}+\\cdots+c_{n}+d_{n}+r_{n}=p c_{1}+p d_{1}+q b_{1}$. Likewise the perimeter of the red $n$ gon is $p b_{1}+q c_{1}+q d_{1}$. Equating the two we have $p\\left(c_{1}+d_{1}-b_{1}\\right)=q\\left(c_{1}+d_{1}-b_{1}\\right)$, which implies $p=q$ as\nrequired.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d0bd4d1accc9b46debb3g-06.jpg?height=440&width=1134&top_left_y=555&top_left_x=753)", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 3.", "solution_match": "# Second Solution."}} {"year": "2001", "tier": "T1", "problem_label": "4", "problem_type": null, "problem": "Answer. All the polynomials of degree 1 with rational coefficients.", "solution": "Note that a polynomial that satisfies the conditions of the problem takes rational values for rational numbers and irrational values for irrational numbers. Let $f(x)$ be a polynomial of degree $n$ such that $f(r) \\in Q$ for every $r \\in Q$. For distinct rational numbers $r_{0}, r_{1}, \\ldots, r_{n}$, where $n=\\operatorname{deg} f(x)$ let us define the polynomial\n\n$$\n\\begin{aligned}\ng(x)= & c_{0}\\left(x-r_{1}\\right)\\left(x-r_{2}\\right) \\ldots\\left(x-r_{n}\\right)+c_{1}\\left(x-r_{0}\\right)\\left(x-r_{2}\\right) \\ldots\\left(x-r_{n}\\right)+\\ldots \\\\\n& +c_{i}\\left(x-r_{0}\\right) \\ldots\\left(x-r_{i-1}\\right)\\left(x-r_{i+1}\\right) \\ldots\\left(x-r_{n}\\right)+\\ldots \\\\\n& +c_{n}\\left(x-r_{0}\\right)\\left(x-r_{1}\\right) \\ldots\\left(x-r_{n-1}\\right)\n\\end{aligned}\n$$\n\nwhere $c_{0}, c_{1}, \\ldots, c_{n}$ are real numbers.\nSuppose that $g\\left(r_{i}\\right)=f\\left(r_{i}\\right), i=0,1, \\ldots, n$. Since $g\\left(r_{i}\\right)=c_{i}\\left(r_{i}-r_{0}\\right) \\ldots\\left(r_{i}-r_{i-1}\\right)\\left(r_{i}-r_{i+1}\\right) \\ldots\\left(r_{i}-r_{n}\\right)$ then\n\n$$\nc_{i}=\\frac{g\\left(r_{i}\\right)}{\\left(r_{i}-r_{0}\\right) \\ldots\\left(r_{i}-r_{i-1}\\right)\\left(r_{i}-r_{i+1}\\right)}=\\frac{f\\left(r_{i}\\right)}{\\left(r_{i}-r_{0}\\right) \\ldots\\left(r_{i}-r_{i-1}\\right)\\left(r_{i}-r_{i+1}\\right)} .\n$$\n\nClearly $c_{i}$ is a rational number for $i=0,1, \\ldots, n$ and therefore the coefficients of $g(x)$ are rational. The polynomial $g(x)$ defined in (1) with coefficients $c_{0}, c_{1}, \\ldots, c_{n}$ satisfying (2) coincides with $f(x)$ in $n+1$ points and both polynomials $f$ and $g$ have degree $n$. It follows that for every real $x, f(x)=g(x)$. Therefore the coefficients of $f(x)$ are rational.\nThus if a polynomial satisfies the conditions, all its coefficients are rational.\n1 POINT for proving that the polinomial has rational coefficients.\nIt is easy to see that all the polynomials of first degree with rational coefficients satisfy the conditions of the problem and polynomials of degree 0 do not satisfy it. Let us prove that no other polynomials exist.\n\nSuppose that $f(x)=a_{0}+a_{1} x+\\ldots+a_{n} x^{n}$ is a polynomial with rational coefficients and degree $n \\geq 2$ that satisfies the conditions of the problem. We may assume that the coefficients of $f(x)$ are integers, because the sets of solutions of equations $f(x)=r$ and $a f^{\\prime}(x)=a r$, where $a$ is an integer, coincide. Moreover let us denote $g(x)=a_{n}^{n-1} f\\left(\\frac{x}{a_{n}}\\right) \\cdot g(x)$ is a polynomial with integer coefficients whose leading coefficient is 1 . The equation $f(x)=r$ has an irrational root if and only if $g(x)=a_{n}^{n-1} r$ has an irrational root. Therefore, we may assume WLOG that $f(x)$ has integer coefficients and $a_{n}=1$.\n\n1 POINT more for proving that it is suficient to consider polinomials with integer and leading coefficient equal to 1 .\n\nLet $r$ be a sufficiently large prime, such that\n\n$$\nr>\\max \\left\\{f(1)-f(0), x_{1}, x_{2}, \\ldots, x_{k}\\right\\}\n$$\n\nwhere $\\left\\{x_{1}, x_{2}, \\ldots, x_{k}\\right\\}$ denote the set of all real roots of $f(x)-f(0)-x=0$. Putting $q=r+f(0) \\in Z$, and considering the equality\n\n$$\nf(x)-q=f(x)-f(0)-r\n$$\n\nwe then have\n\n$$\nf(1)-q=f(1)-f(0)-r<0 .\n$$\n\nOn the other hand, by the choice of $r$, we have\n\n$$\nf(1)-q=f(r)-f(0)-r>0 .\n$$\n\nIt follows from the intermediate value theorem that there is at least one real root $p$ of $f(x)-q=0$ between 1 and $r$. Notice that from the criterion theorem for rational roots, the possible positive rational roots of the equation $f(x)-q=f(x)-f(0)-r=0$ are 1 and $r$. Thus $p$ must be irrational.\n\n## 5 POINTS for concluding.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 4.", "solution_match": "# First Solution."}} {"year": "2001", "tier": "T1", "problem_label": "4", "problem_type": null, "problem": "Answer. All the polynomials of degree 1 with rational coefficients.", "solution": "As in the first solution we may assume WLOG that $f(x)$ has integer coefficients and the leading coefficient is $a_{n}=1$.\n\n2 POINTS.\nObserving the graph of $f(x)$, it is easy to see that there exists a sufficiently great integer $r$ such that $f(x)=r$ has one possitive root $x_{0}$ and for $x \\geq x_{0}$ the derivative $f^{\\prime}(x)$ is greater than 1 . The equation $f(x)=r+1$ has also one positive root $x_{1}>x_{0}$. Since $a_{n}=1$, rational roots $x_{0}$ and $x_{1}$ must be integers. Then $x_{1}-x_{0} \\geq 1$ and\n\n$$\n\\frac{f\\left(x_{1}\\right)-f\\left(x_{0}\\right)}{x_{1}-x_{0}} \\leq 1\n$$\n\nIt follows that $f^{\\prime}(z)<1$ for $z \\in\\left[x_{0}, x_{1}\\right]$. This contradiction proves that $f(x)=r$ necessarily has an irrational root for at least one integer $r$.\n\n## Remark.\n\nNo points can be given just for the answer.", "metadata": {"resource_path": "APMO/segmented/en-apmo2001_sol.jsonl", "problem_match": "# Problem 4.", "solution_match": "# Second Solution."}} {"year": "2001", "tier": "T1", "problem_label": "5", "problem_type": null, "problem": "", "solution": "One of the sides $A X_{i}$ or $B X_{i}$ is equal to $C D$, thus $X_{i}$ is on one of the circles of radius $C D$ and center $A$ or $B$. In the same way $X_{i}$ is on one of circles of radius $A B$ with center $C$ or $D$. The intersection of these four circles has no more than 8 points so that $n \\leq 8$.\n\n## 1 POINT for finding that $n \\leq 8$.\n\nSuppose that circle $S_{B}$ with center $B$ and radius $C D$ intersects circle $S_{C}$ with center $C$ and radius $A B$ in two points $X_{1}$ and $X_{2}$ which satisfy the conditions of the problem. Then in triangles $A B X_{1}$ and $C D X_{1}$ we have $B X_{1}=C D$ and $C X_{1}=A B$. Since these triangles are congruent then $A X_{1}=$ $D X_{1}$, therefore $X_{1}$ and $X_{2}$ are on the perpendicular bisector of $A D$. On the other hand $X_{1} X_{2}$ is perpendicular to segment $B C$. Then $B C \\| A D$ and $A B$ and $C D$ are the diagonals or nonparallel sides of a trapezoid.\n![](https://cdn.mathpix.com/cropped/2024_11_22_d0bd4d1accc9b46debb3g-08.jpg?height=302&width=513&top_left_y=1193&top_left_x=795)\n\nSuppose that $A BA B=C X_{1}$. It follows that the distance from $A$ to the perpendicular bisector of $B C$ must be less than the distance from $D$ to this line otherwise we obtain a contradiction to the condition $A B